Torchmodders

Modding => HUD & UI => Topic started by: Wolven on August 27, 2014, 10:59:53 am


Title: Player select menu
Post by: Wolven on August 27, 2014, 10:59:53 am
Does anyone know which menu item(s) makes up the interface where you select which class (and gender) to play? I can't seem to find it.

I'm asking because I want to see how they filter out the genders in the character selection. I want to do something similar for TLA, but where you can also filter by team. Right now the class selection in TLA is a mess, because there are three player units of each class to choose from. Blue Team, Red Team and No Team. So I'd like to change the UI, so you can have buttons for which team to be on when you select class, just like you can select which gender to play.
Title: Re: Player select menu
Post by: RnF on August 27, 2014, 03:51:11 pm
Looked through every single UI folder, twice with no luck and looked in other folders thinking it might be misplaced.  I am thinking it's hardcoded.
Title: Re: Player select menu
Post by: Wolven on August 27, 2014, 04:22:09 pm
OK, that's a bummer.  >:(
Title: Re: Player select menu
Post by: Kva3imoda on September 28, 2014, 11:48:22 pm
Does anyone know which menu item(s) makes up the interface where you select which class (and gender) to play? I can't seem to find it.
I think you need this file: MAINMENUMOD.LAYOUT.

Spoiler (hover to show)

UPD: But I'm not sure whether it is possible to implement what you need. I think you can try.  :)
Title: Re: Player select menu
Post by: Wolven on September 29, 2014, 01:06:57 am
Thank you Kva.  :) I'll give it a try.  ;)
Title: Re: Player select menu
Post by: RnF on September 29, 2014, 08:16:51 am
Good to know, looks like that's it!
Title: Re: Player select menu
Post by: gytfunke on September 29, 2014, 10:14:47 am
I was looking at this the other night.

Unfortunately, the actual Player Creation window is a Widget, which is hardcoded.  Or so I believe.  You need to find that widget to modify it.  Searching for it in the TL2 Media folder returns nothing.

Or, it might be possible to do away with the widget if you have a limited set of class choices.  You could recreate the widget with UI elements and logic.  Might be worth a try.
Title: Re: Player select menu
Post by: lolesch on February 07, 2017, 10:54:30 am
this is way old! nevertheless I found the answer to your filter problem.
Open that mainmenue in guts UI -> expand to:
Character Create -> LeftSide -> LeftPlateCharacter -> LeftBackground -> ActualCharacters

Inside this there are 2 ListWindows: CharacterListFemale and -Male
under Properties you can find something called Filters -> allowed Unittypes

doubleclick it and you can set all Unittypes you wat to show up (at least in theory, I havn't tested it for example to show weapons or some)

Now give your Characters Unittypes the prefered Team as a sub Inheritance and it should sort them by team.
clone the female genderbutton for your 3rd team and link it in the Gendertoggling logic
Title: Re: Player select menu
Post by: Phanjam on February 08, 2017, 04:02:56 am
This is god info lolesch! thanks mucho! (crosses his fingers hoping this will bring @Wolven  back to modding :D )