Installer Steam
log på
|
sprog
简体中文 (forenklet kinesisk)
繁體中文 (traditionelt kinesisk)
日本語 (japansk)
한국어 (koreansk)
ไทย (thai)
Български (bulgarsk)
Čeština (tjekkisk)
Deutsch (tysk)
English (engelsk)
Español – España (spansk – Spanien)
Español – Latinoamérica (spansk – Latinamerika)
Ελληνικά (græsk)
Français (fransk)
Italiano (italiensk)
Bahasa indonesia (indonesisk)
Magyar (ungarsk)
Nederlands (hollandsk)
Norsk
Polski (polsk)
Português (portugisisk – Portugal)
Português – Brasil (portugisisk – Brasilien)
Română (rumænsk)
Русский (russisk)
Suomi (finsk)
Svenska (svensk)
Türkçe (tyrkisk)
Tiếng Việt (Vietnamesisk)
Українська (ukrainsk)
Rapporter et oversættelsesproblem
https://github.com/long-war-2/lwotc/wiki/Play-testing-Long-War-2-%5BWOTC%5D
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1504969791
Conditionalizing the OnRemoved event with the same conditions as the focus and initialization events (which I probably should have already done, as you did with your screen listener) seems to solve the issue.
Thanks for the help. Sorry to have taken up your time (and all this space on your comment page). Should have figured that out earlier. Feel free to delete these comments to free up space if you want.
Seems like the mod might be working but it's still failing to access the ParentScreen when the callback function executes so the ParentScreen is still not passed to the choose class screen. The only thing the choose class screen does with the ParentScreen is use it to populate data one everything is done so that might not be the end of the world. Still weird though.
If anything it seems like my screen listener is crashing after initialization and another instance is picking up and taking over but since the ParentScreen global variable is assigned in initialization and/or when receiving focus it's undefinded when it gets called by the button callback function.
I am not doing anything with the UIScreen (other than listening for the Focus event), so the only way I can imagine that possibly happening is if my screen listener is crashing before yours gets called. Maybe UIArmory(screen).GetUnit() is returning None?
My screen listener is able to access the parent screen (UIArmory_MainMenu) on initialisation and on recieving focus but not once the Commader's Choice button is selected (highlighted) or clicked. Consequently it cannot access the Unit nor pass it or the parent screen to the class selection screen, thus it cannot promote said unit.
I've messed around with my code and have been unable to fix the issue. Are there any changes you would recommend or changes you can make to this to fix the issue? Or is this a basic incompatibilty we'll need to advise users of?
it seems to override any customization done to soldiers.
i mean, i like the whole one color per class thing, but i like to customize soldiers, for example my rangers are all colored in shades of orange. but the thing with this mod is that it sets one color to one class, and you can't change it afterwards.
when i go to customization and change the color of an outfit, it goes back to "preset" color.
any chance you could change that ?
https://yangsu.github.io/pull-request-tutorial/
https://help.github.com/articles/about-pull-requests/
The main difficulty in adding that feature would be adding the ability to specify "don't change" (maybe use -1 or something) so that people (like me) who want random patterns using 'Rookie Customization Options' don't have their patterns overwritten.