Commits

Jason MacWilliams committed dc79aee

removed the last of the template usages, should be ready for next stage

  • Participants
  • Parent commits f7a76f9

Comments (0)

Files changed (3)

File MAX/scenes/buildgui.xml

   </Element>
 
   <!-- show unit description -->
-  <CheckButton Template="Templ.CheckButtonCheckmark" Rect="292,264,18,17" ID="description">
+  <CheckButton Image="GUIData/upgrademenu.png" Rect="292,264,18,17" ID="description">
+    <State Type="n" TexRect="752,927,18,17"/>
+    <State Type="h" TexRect="752,927,18,17"/>
+    <State Type="p" TexRect="752,944,18,17"/>
+    <State Type="d" TexRect="752,927,18,17"/>
+    <State Type="N" TexRect="752,944,18,17"/>
+    <State Type="H" TexRect="752,944,18,17"/>
+    <State Type="P" TexRect="752,944,18,17"/>
+    <State Type="D" TexRect="752,944,18,17"/>
     <OnClick callback="toggleDescription" sound="sounds/UI/HudButton.ogg"/>
   </CheckButton>
 
   <!-- scroll the purchased item list -->
-  <Button Template="Templ.ArrowUpSmall" Rect="327,240,18,17" ID="purchaseUp">
+  <!-- if we get listboxes then this will be incorporated into the "loadout" element above -->
+  <Button Image="GUIData/upgrademenu.png" Rect="327,240,18,17" ID="purchaseUp">
+    <State Type="n" TexRect="790,927,18,17"/>
+    <State Type="h" TexRect="790,927,18,17"/>
+    <State Type="p" TexRect="790,944,18,17"/>
+    <State Type="d" TexRect="790,944,18,17"/>
     <OnClick callback="scrollPurchasedMenuUp" sound="sounds/UI/HudButton.ogg"/>
   </Button>
 
-  <Button Template="Templ.ArrowDownSmall" Rect="348,240,18,17" ID="purchaseDown">
+  <Button Image="GUIData/upgrademenu.png" Rect="348,240,18,17" ID="purchaseDown">
+    <State Type="n" TexRect="809,927,18,17"/>
+    <State Type="h" TexRect="809,927,18,17"/>
+    <State Type="p" TexRect="809,944,18,17"/>
+    <State Type="d" TexRect="809,944,18,17"/>
     <OnClick callback="scrollPurchasedMenuDown" sound="sounds/UI/HudButton.ogg"/>
   </Button>
 
   <!-- scroll the buyable list -->
-  <Button Template="Templ.ArrowUpSmall" Rect="471,387,18,17" ID="materialUp">
-    <OnClick callback="scrollMaterialUp" sound="sounds/UI/HudButton.ogg"/>
+  <!-- if we get listboxes then this will be incorporated into the "unitlist" element above -->
+  <Button Image="GUIData/upgrademenu.png" Rect="471,387,18,17" ID="buyUp">
+    <State Type="n" TexRect="790,927,18,17"/>
+    <State Type="h" TexRect="790,927,18,17"/>
+    <State Type="p" TexRect="790,944,18,17"/>
+    <State Type="d" TexRect="790,944,18,17"/>
+    <OnClick callback="scrollBuyUp" sound="sounds/UI/HudButton.ogg"/>
   </Button>
 
-  <Button Template="Templ.ArrowDownSmall" Rect="491,387,18,17" ID="purchaseDown">
-    <OnClick callback="scrollMaterialDown" sound="sounds/UI/HudButton.ogg"/>
+  <Button Image="GUIData/upgrademenu.png" Rect="491,387,18,17" ID="buyDown">
+    <State Type="n" TexRect="809,927,18,17"/>
+    <State Type="h" TexRect="809,927,18,17"/>
+    <State Type="p" TexRect="809,944,18,17"/>
+    <State Type="d" TexRect="809,944,18,17"/>
+    <OnClick callback="scrollBuyDown" sound="sounds/UI/HudButton.ogg"/>
   </Button>
 
-  <!-- forward and back buttons -->
-  <Button Template="Templ.ButtonDarkSmall" Rect="447,452,77,23" ID="accept" Text="Accept" TextAlign="Top" Padding="0,2">
+  <!-- accept and cancel buttons -->
+  <Button Image="GUIData/upgrademenu.png" Rect="427,452,77,23" ID="accept" Text="Accept" TextAlign="Top" Padding="0,2">
+    <State Type="n" TexRect="866,838,77,23" TextColor="255,255,255"/>
+    <State Type="h" TexRect="866,838,77,23" TextColor="255,255,255"/>
+    <State Type="p" TexRect="866,861,77,23" TextColor="192,192,192"/>
+    <State Type="d" TexRect="866,861,77,23" TextColor="127,127,127"/>
     <OnClick callback="accept" sound="sounds/UI/HudButton.ogg"/>
   </Button>
-  <Button Template="Templ.ButtonDarkSmall" Rect="342,452,77,23" ID="cancel" Text="Cancel" TextAlign="Top" Padding="0,2">
+  <Button Image="GUIData/upgrademenu.png" Rect="322,452,77,23" ID="cancel" Text="Cancel" TextAlign="Top" Padding="0,2">
+    <State Type="n" TexRect="866,838,77,23" TextColor="255,255,255"/>
+    <State Type="h" TexRect="866,838,77,23" TextColor="255,255,255"/>
+    <State Type="p" TexRect="866,861,77,23" TextColor="192,192,192"/>
+    <State Type="d" TexRect="866,861,77,23" TextColor="127,127,127"/>
     <OnClick callback="popScene" sound="sounds/UI/HudButton.ogg"/>
   </Button>
 

File MAX/scenes/customcreategui.xml

     <Label Image="GUIData/customgamemenu.png" TexRect="1023,0,1,1" Text="An error occurred" Rect="0,40,300,24" TextAlign="center"/>
     <Label Image="GUIData/customgamemenu.png" TexRect="1023,0,1,1" Text="Check your log for " Rect="0,64,300,24" TextAlign="center"/>
     <Label Image="GUIData/customgamemenu.png" TexRect="1023,0,1,1" Text="details." Rect="0,88,300,24" TextAlign="center"/>
-    <Button Template="Templ.ButtonDarkSmall" Rect="111,192,77,23" Text="Back">
+    <Button Image="GUIData/customgamemenu.png" Rect="866,838,77,23" Text="Back" TextAlign="top" Padding="0,2">
+      <State Type="n" TexRect="866,838,77,23" TextColor="255,255,255"/>
+      <State Type="h" TexRect="866,838,77,23" TextColor="255,255,255"/>
+      <State Type="p" TexRect="866,861,77,23" TextColor="192,192,192"/>
+      <State Type="d" TexRect="866,861,77,23" TextColor="127,127,127"/>
       <OnClick callback="cancel" sound="sounds/UI/HudButton.ogg"/>
     </Button>
   </Element>

File MAX/scenes/upgradegui.xml

 
   <Element Image="GUIData/upgrademenu.png" TexRect="640,54,31,122" Rect="366,298,31,122" ID="gold">
   </Element>
+
   <!-- scroll the buyable list -->
   <!-- if we get listboxes then this will be incorporated into the "unitlist" element above -->
   <Button Image="GUIData/upgrademenu.png" Rect="471,387,18,17" ID="buyUp">