Advertisement
Guest User

MainMenu.xml

a guest
Oct 25th, 2016
3,157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 6.52 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <ContextDefaults ColorSet="BodyTextCool" Style="FontNormal22" FontStyle="Stroke" Name="MainMenu" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="..\..\ForgeUI_Assets\Controls.xsd">
  3.  
  4.  
  5.   <Stack                  ID="ShellMenuAndLogo" StackGrowth="Down" Anchor="C,C">
  6.     <Image ID="Logo"                Anchor="C,T"    Offset="0,0" Texture="MainLogo.dds" StretchMode="Auto"/>
  7.    
  8.     <SlideAnim            ID="SubMenuSlide" Begin="200,0"   End="0,0" Size="640,450" Anchor="C,T" Speed="2" Cycle="Once" Function="OutQuad" Stopped="1" FunctionPower="5" Hidden="0">
  9.       <Stack              ID="ShellStack" StackGrowth="Right" StackPadding="20">
  10.         <Container Size="300,400">
  11.           <ScrollPanel    ID="MainMenuClip" Anchor="L,C"    Size="400,450" FullClip="1" Disabled="1">
  12.             <Image Texture="Controls_DivVertical" Size="14,20" StretchMode="None" AnchorSide="I,O" Anchor="T,L" Color="90,139,190"/>
  13.             <SlideAnim    ID="MainButtonTrackAnim" Begin="0,-390"   End="0,-20" Size="full,full" Speed="1" Pause=".5" Cycle="Once" Function="Root" Stopped="1">
  14.               <Grid         ID="MainButtonTrack" Style="DividerVertical" Size="14,390" Color="90,139,190"/>
  15.             </SlideAnim>
  16.             <ScrollPanel    ID="MainButtonClip" Anchor="L,T" Offset="9,0"   Size="parent-10,parent" FullClip="1" Disabled="1">
  17.               <AlphaAnim Pause="1.6" AlphaBegin="0" AlphaEnd="1" Cycle="Once" Function="Root" Speed="1">
  18.                 <Stack      ID="MainMenuOptionStack" StackGrowth="Down" StackPadding="-2" Offset="0,4"/>
  19.               </AlphaAnim>
  20.             </ScrollPanel>
  21.           </ScrollPanel>
  22.         </Container>
  23.  
  24.         <Container          ID="SubMenuContainer" Size="300,400">
  25.           <AlphaAnim        ID="SubMenuAlpha" Pause="0" AlphaBegin="0" AlphaEnd="1" Cycle="Once" Function="Root" Speed="3" Size="400,450" Stopped="1" Offset="0,40" Anchor="L,C">
  26.             <ScrollPanel      ID="SubMenuClip" Anchor="L,C" Size="400,450" FullClip="1" Disabled="1">
  27.               <Image Texture="Controls_DivVertical" Size="14,20" StretchMode="None" AnchorSide="I,O" Anchor="T,L" Color="90,139,190"/>
  28.               <SlideAnim      ID="SubButtonTrackAnim" Begin="0,-390"    End="0,-20" Size="full,full" Speed="3" Cycle="Once" Function="Root" Stopped="1">
  29.                 <Grid       ID="SubButtonTrack" Style="DividerVertical" Size="14,390" Color="90,139,190"/>
  30.               </SlideAnim>
  31.               <ScrollPanel  ID="SubButtonClip" Anchor="L,T" Offset="9,0"    Size="parent-10,parent" FullClip="1" Disabled="1">
  32.                 <AlphaAnim  Pause="0" AlphaBegin="0" AlphaEnd="1" Cycle="Once" Function="Root" Speed="3">
  33.                   <Stack    ID="SubMenuOptionStack" StackGrowth="Down" StackPadding="-2" Offset="0,4"/>
  34.                 </AlphaAnim>
  35.               </ScrollPanel>
  36.             </ScrollPanel>
  37.           </AlphaAnim>
  38.         </Container>
  39.       </Stack>
  40.     </SlideAnim>
  41.   </Stack>
  42.  
  43.   <!-- Dialog Support -->
  44.   <Box Style="PopupDialogBox"/>
  45.   <Instance Name="PopupButtonInstance">
  46.     <GridButton ID="Button" Style="MainButton" Size="200,41" />
  47.   </Instance>
  48.   <Instance Name="PopupButtonAltInstance">
  49.     <GridButton ID="Button" Style="ButtonRed" Size="200,41" />
  50.   </Instance>
  51.   <Instance Name="PopupTextInstance">
  52.     <Label        ID="Text"       Anchor="C,T" Style="BodyTextDark18" Align="Center" WrapWidth="400"/>
  53.   </Instance>
  54.   <Instance Name="RowInstance">
  55.     <Stack ID="Row" Anchor="C,T" StackGrowth="Right" StackWrap="Bottom" StackPadding="10" />
  56.   </Instance>
  57.  
  58.   <Instance Name="MenuOption">
  59.     <Container Size="300,40" ID="Top">
  60.       <SlideAnim          ID="FlagAnim" Begin="-300,0"  End="-10,0"     Size="300,32" Speed="4" Cycle="Bounce" Function="OutQuad" Stopped="1" FunctionPower="1">
  61.         <GridButton       ID="OptionButton" Style="ShellFlag" Size="300,32">
  62.           <AlphaAnim      ID="LabelAlphaAnim" Pause="2.0" AlphaBegin="0" AlphaEnd="1" Cycle="Once" Function="Root" Speed="1" Size="parent,parent">
  63.             <Label        ID="ButtonLabel" Style="ShellFlagButtonFont" Anchor="L,C" Offset="30,0" String="Button Text"/>
  64.           </AlphaAnim>
  65.         </GridButton>
  66.       </SlideAnim>
  67.       <AlphaAnim          ID="SelectionAnimAlpha" AlphaBegin="0"    AlphaEnd="1" Size="parent,parent" Speed="2" Cycle="Once" Function="OutQuad" Stopped="1" FunctionPower="5">
  68.         <SlideAnim        ID="SelectionAnimSlide" Begin="-300,-4"   End="0,-4"      Size="parent,parent" Speed="2" Cycle="Once" Function="OutQuad" Stopped="1" FunctionPower="5">
  69.           <Image Texture="Shell_ButtonOrnateSelected" StretchMode="Auto">
  70.             <Label      ID="SelectedLabel" Style="ShellFlagButtonFont" Anchor="C,C" String="Button Text"/>
  71.           </Image>
  72.         </SlideAnim>
  73.       </AlphaAnim>
  74.     </Container>
  75.   </Instance>
  76.  
  77.     <Container  ID="My2KContents"   Anchor="R,B"    Offset="5,5"                Size="128,75">
  78.         <Image                                          Anchor="R,B"    Offset="-345,-195"  Size="700,400"      Texture="Controls_Glow" Color="9,57,93,255" />
  79.     <Grid                                               Anchor="C,B"    Offset="0,-10"          Size="parent,32"    Style="DropShadow2"         Color="0,0,0,100"/>
  80.     <Button     ID="My2KLogin"      Anchor="C,T"                                            Size="128,64"           Style="My2KLogoButton"  Disabled="1" />
  81.     <Label      ID="My2KStatus"     Anchor="C,B"  Style="FontNormal12" ColorSet="ButtonCS"  String="TXT_KEY_MY2K_MODE_ANONYMOUS"/>
  82.   </Container>
  83.    
  84.   <Label                ID="VersionLabel" Anchor="L,B"  Offset="2,2" Style="FontNormal12" ColorSet="ButtonCS"  />
  85.     <LuaContext     ID="Options"                            DeferLoad="1"   FileName="Options"                      Hidden="1" />
  86.     <LuaContext     ID="ModsContext"                    DeferLoad="1"   FileName="Mods"                             Hidden="1" />
  87.     <LuaContext     ID="AdvancedSetup"              DeferLoad="1"   FileName="AdvancedSetup"            Hidden="1" />
  88.     <LuaContext     ID="CreditsScreen"                                          FileName="CreditsScreen"            Hidden="1" />
  89.     <LuaContext     ID="Civilopedia"                            FileName="CivilopediaScreen"                Hidden="1"  />
  90.     <LuaContext     ID="My2K"                                                   FileName="My2K"                             Hidden="1" />
  91.   <LuaContext       ID="WorldBuilder"                   DeferLoad="1" FileName="WorldBuilderMenu"       Hidden="1" />
  92.     <LuaContext     ID="TutorialSetup"              DeferLoad="1" FileName="TutorialSetup"        Hidden="1" />
  93.     <LuaContext     ID="FrontEndPopup"                                          FileName="FrontEndPopup"            Hidden="1" />
  94.     <LuaContext     ID="Lobby"                                                          FileName="Lobby"                            Hidden="1" />
  95.     <LuaContext     ID="HostGame"                                                       FileName="HostGame"                     Hidden="1" />
  96.     <LuaContext     ID="StagingRoom"                                                FileName="StagingRoom"              Hidden="1" />
  97.     <LuaContext     ID="LoadGameMenu"                                               FileName="LoadGameMenu"             Hidden="1" />
  98. </ContextDefaults>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement