ShowUIScreen

Modders can post their questions on scripting and more.

Moderators: Slitherine Core, BA Moderators

Post Reply
enric
Brigadier-General - 8.8 cm Pak 43/41
Brigadier-General - 8.8 cm Pak 43/41
Posts: 1855
Joined: Sun May 15, 2011 8:47 am

ShowUIScreen

Post by enric »

When an UI object (like a button) is added to the Battle window , I noticed that the object is erased from the window if you open the advanced panel. This not happens if you click on other buttons as Toggle mission info, or options, etc. Is it normal?

Where is the documentation on this subject?
pipfromslitherine
Site Admin
Site Admin
Posts: 9863
Joined: Wed Mar 23, 2005 10:35 pm

Re: ShowUIScreen

Post by pipfromslitherine »

What file are you adding the button to? If the screen you add has the same level as the advanced panel then it would be swapped out. You might also look at what you are using as the parent of your new button, as there is some special hide/show code for the advanced panel buttons.

Cheers

Pip
follow me on Twitter here
enric
Brigadier-General - 8.8 cm Pak 43/41
Brigadier-General - 8.8 cm Pak 43/41
Posts: 1855
Joined: Sun May 15, 2011 8:47 am

Re: ShowUIScreen

Post by enric »

Thanks, as always you gave me the clue.
Post Reply

Return to “Battle Academy 2: Modders Corner”