Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

defaultproperties not properly assigned? #1

Closed
robojumper opened this issue Jun 12, 2016 · 1 comment
Closed

defaultproperties not properly assigned? #1

robojumper opened this issue Jun 12, 2016 · 1 comment

Comments

@robojumper
Copy link
Collaborator

UIAddToBlackmarket.uc

defaultproperties {
    ScreenClass = class'UIBlackMarket_Sell';
}

The opening brace must be on a new line. However, if you fix it that way, it won't work with Grimy's Loot Mod. I suggest the following:

event OnInit(UIScreen Screen) {
    if (UIBlackMarket_Sell(Screen) != none) {
        Maketh(UIBlackMarket_Sell(Screen));
    }
}

Event OnReceiveFocus(UIScreen Screen) { 
    if (UIBlackMarket_Sell(Screen) != none) {
        Maketh(UIBlackMarket_Sell(Screen));
    }

} 
// ...
defaultproperties
{
    ScreenClass = none
}

This way, it will retain compatibility (and also get rid of the hundreds of Accessed none: 'screen' messages your mod throws).

davenonymous added a commit that referenced this issue Jun 22, 2016
As suggested in #1. Thanks for that!
@davenonymous
Copy link
Owner

Implemented as suggested. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants