Jump to content

GiftItemPopUp screen overrides screen's base name variable


CarlZalph
  • Fixed

In the constructor and use of the screen "GiftItemPopUp" it uses a variable "self.name" which is already defined in the ctor for screens to denote the screen name as a string value.

 

This breaks playerhud's function:

function PlayerHud:IsItemManagerScreenOpen()
    local active_screen = TheFrontEnd:GetActiveScreen()
    return active_screen ~= nil and active_screen.name == "GiftItemPopUp"
end

As the screen name won't be that ever, instead being a table to the Text UI widget thing.

 

 

This can be fixed by doing a find+replace of:

data/scripts/screens/giftitempopup.lua

Find: "self.name"

Replace: "self.name_text"


Steps to Reproduce
Get a gift and check out the top most screen's name on the FrontEnd's screen stack. It will be the text UI element instead of an expected string value.



User Feedback


A developer has marked this issue as fixed. This means that the issue has been addressed in the current development build and will likely be in the next update.


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
  • Create New...