ww2commander
Emperor
I will try and word this as carefully as possible as Ui coding is confusing enough!
I have a UI screen that displays a list of info in rows. In order to minimize size and not overload the user with info, I have broken up the results across 5 'stacks' within the 'instance'.
The question is, how do I show or hide these stacks of each instance after I have built the list without having to rebuild it again?
Incase I am not making sense, here is an outline of the UI screen code. The stacks in red are located outside the main grid and are a part of the instance section. I need to know how to show/hide them after building the list of entries.
I have a UI screen that displays a list of info in rows. In order to minimize size and not overload the user with info, I have broken up the results across 5 'stacks' within the 'instance'.
The question is, how do I show or hide these stacks of each instance after I have built the list without having to rebuild it again?
Incase I am not making sense, here is an outline of the UI screen code. The stacks in red are located outside the main grid and are a part of the instance section. I need to know how to show/hide them after building the list of entries.
Code:
<Context ColorSet="Beige_Black_Alpha" Font="TwCenMT18" FontStyle="Shadow" >
<Grid ID="BackgroundBox" Size="1200,600" Offset="10,0" Anchor="C,C" Style="Grid9DetailFive140" ConsumeMouse="1">
<!-- Main Heading -->
<Label ID="MainHeadingLabel" Anchor="C,T" Offset="0,15" Font="TwCenMT24" FontStyle="Shadow" String="TXT_KEY_REGIONINFO_HEADING"/>
<!--======================================================================================================================================-->
<!-- Info Selection Stack -->
<!--======================================================================================================================================-->
<Stack ID="InfoButtonStack" Anchor="C,T" StackGrowth="Right" Offset="0,60" Padding="0" Hidden="0">
<!-- General Info Button -->
<Button ID="GeneralInfoButton" Anchor="L,C" Size="220,24" Style="BoxButton" Font="TwCenMT18" String="TXT_KEY_CITYINFO_GENERAL_INFO" ToolTip="TXT_KEY_REGIONINFO_TOOLTIP_GENERAL" >
....
</Button>
<!-- Military Forces Info Button -->
<Button ID="MilitaryInfoButton" Anchor="L,C" Size="260,24" Style="BoxButton" Font="TwCenMT18" String="TXT_KEY_REGIONINFO_MILITARY_FORCES" ToolTip="TXT_KEY_REGIONINFO_TOOLTIP_MILITARY_FORCES" >
....
</Button>
<!-- Industrial Info Button -->
<Button ID="IndustrialInfoButton" Anchor="L,C" Size="220,24" Style="BoxButton" Font="TwCenMT18" String="TXT_KEY_REGIONINFO_INDUSTRIAL" ToolTip="TXT_KEY_REGIONINFO_TOOLTIP_INDUSTRIAL" >
....
</Button>
<!-- War Industry Info Button -->
<Button ID="MilitaryProdInfoButton" Anchor="L,C" Size="220,24" Style="BoxButton" Font="TwCenMT18" String="TXT_KEY_REGIONINFO_MILITARY_PRODUCTION" ToolTip="TXT_KEY_REGIONINFO_TOOLTIP_MILITARY_PRODUCTION" >
....
</Button>
<!-- Agricultural Info Button -->
<Button ID="AgriculturalInfoButton" Anchor="L,C" Size="220,24" Style="BoxButton" Font="TwCenMT18" String="TXT_KEY_REGIONINFO_AGRICULTURAL" ToolTip="TXT_KEY_REGIONINFO_TOOLTIP_AGRICULTURAL" >
....
</Button>
</Stack>
<!--======================================================================================================================================-->
<!-- Header -->
<!--======================================================================================================================================-->
<Box ID="RegionHeader" Offset="-40,132" Anchor="C,T" Size="1070,24" Color="255.255.200.0" Hidden="0" >
<!--======================================================================================================================================-->
<!-- Region Scroll Panel -->
<!--======================================================================================================================================-->
<ScrollPanel ID="RegionScrollPanel" Anchor="C,T" Offset="0,40" Size="1070,330" Vertical="1" ID="ScrollPanel" >
.... scroll panel stuff here
</ScrollPanel>
</Box>
</Grid>
<!--======================================================================================================================================-->
<!-- Region Instance-->
<!--======================================================================================================================================-->
<Instance Name="RegionInstance" >
<Box ID="Root" Offset="0,0" Anchor="L,T" Size="690,34" Color="255,255,255,0" >
<!--======================================================================================================================================-->
<!-- Static Instance Stack -->
<!--======================================================================================================================================-->
<Stack Anchor="L,C" StackGrowth="Right" Offset="0,0" Padding="0" >
....bunch of main boxes that always display when opening the UI screen
<!--=====================================================================================================-->
<!-- POPULATION AND CONSCRIPTION INFO ===================================================================-->
<!--=====================================================================================================-->
[COLOR="Red"] <Stack ID="RegionGeneralInfoStack" Anchor="L,C" StackGrowth="Right" Offset="0,0" Padding="0" >[/COLOR]
.... bunch of boxes that are shows on clicking GeneralInfoButton
</Stack>
<!--=====================================================================================================-->
<!-- MILITARY UNITS IN REGION INFO ===================================================================-->
<!--=====================================================================================================-->
[COLOR="Red"] <Stack ID="RegionMilitaryInfoStack" Anchor="L,C" StackGrowth="Right" Offset="0,0" Padding="0" >[/COLOR]
.... bunch of boxes that are shows on clicking MilitaryInfoButton
</Stack>
<!--=====================================================================================================-->
<!-- INDUSTRIAL PRODUCTION INFO ===================================================================-->
<!--=====================================================================================================-->
[COLOR="Red"] <Stack ID="RegionIndustrialInfoStack" Anchor="L,C" StackGrowth="Right" Offset="0,0" Padding="0" >[/COLOR]
.... bunch of boxes that are shows on clicking IndustrialInfoButton
</Stack>
<!--=====================================================================================================-->
<!-- WAR INDUSTRY PRODUCTION INFO ===================================================================-->
<!--=====================================================================================================-->
[COLOR="Red"] <Stack ID="RegionMilitaryProdInfoStack" Anchor="L,C" StackGrowth="Right" Offset="0,0" Padding="0" >[/COLOR]
.... bunch of boxes that are shows on clicking MilitaryProdInfoButton
</Stack>
<!--=====================================================================================================-->
<!-- AGRICULTURAL PRODUCTION INFO ===================================================================-->
<!--=====================================================================================================-->
[COLOR="Red"] <Stack ID="RegionAgriculturalInfoStack" Anchor="L,C" StackGrowth="Right" Offset="0,0" Padding="0" >[/COLOR]
.... bunch of boxes that are shows on clicking AgriculturalInfoButton
</Stack>
</Stack>
</Box>
</Instance>
</Context>