different faction selection besides scroll menu possible?

Information and discussion for custom maps and mods.
Post Reply
User avatar
Zeruel87
Posts: 56
Joined: Mon Oct 15, 2018 8:18 pm
Location: Austria
Contact:

different faction selection besides scroll menu possible?

Post by Zeruel87 »

Greetings,

i wonder if it is possible to change the faction selection from 1 drop down menu with a scrollbar to for example a dropdownmenu with 2 rows and/or without a scrollbar.
iam a modmaker and my mod features so many factions that the scrollbar is getting very long.

i think i found regarding settings in the "lobby-players.yaml" but i have no clue in what language or so these settings are written or if it is possible to archieve what i imagine. :?
Check out my CnC mod at:
https://www.moddb.com/mods/cameo

User avatar
Sleipnir
Posts: 878
Joined: Wed Apr 10, 2002 11:52 pm
Contact:

Re: different faction selection besides scroll menu possible?

Post by Sleipnir »

Yes, but you will need to include custom C# code as part of your mod.

User avatar
Zeruel87
Posts: 56
Joined: Mon Oct 15, 2018 8:18 pm
Location: Austria
Contact:

Re: different faction selection besides scroll menu possible?

Post by Zeruel87 »

oh okay, i have no idea how to do that or where to even start looking how to do that. (besides to look how C# works and how it is written)

Is it also only possible with a custom C# code to make the dropdown Menu for the faction choosing bigger?
Check out my CnC mod at:
https://www.moddb.com/mods/cameo

User avatar
Zeruel87
Posts: 56
Joined: Mon Oct 15, 2018 8:18 pm
Location: Austria
Contact:

Re: different faction selection besides scroll menu possible?

Post by Zeruel87 »

i dont know if this is a stupid question or not.
my understanding of C# is limited to say the least, is it possible to change at least the size of the dropdown menus anywhere like in .cs files?
i'am just experimenting with .cs files for another reason regarding the loading screen that is hardcoded in the CncLoadScreen.cs and wondered if the dropdown menug sizes could at least be changed in a similar way.
Check out my CnC mod at:
https://www.moddb.com/mods/cameo

User avatar
Zeruel87
Posts: 56
Joined: Mon Oct 15, 2018 8:18 pm
Location: Austria
Contact:

Re: different faction selection besides scroll menu possible?

Post by Zeruel87 »

FOUND IT :)

in the "LobbyUtils.cs" in the Line 197: dropdown.ShowDropDown("FACTION_DROPDOWN_TEMPLATE", 154, options, setupItem);
Check out my CnC mod at:
https://www.moddb.com/mods/cameo

Remuneration
Posts: 52
Joined: Sun Mar 09, 2014 3:49 pm

Re: different faction selection besides scroll menu possible?

Post by Remuneration »

i think You may use conditon or upgrade traits to make drone to transform into buildings, to make SC races more like original buildstyle

Post Reply