Changeset 818 for trunk/game/gui


Ignore:
Timestamp:
03/14/11 18:34:49 (9 years ago)
Author:
aspidites
Message:

Patch by Aspidites et al:

  • squashed all commits that happened during the active_sprint before merging
Location:
trunk/game/gui
Files:
83 added
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/game/gui/character_screen.xml

    r693 r818  
    1 <!-- 
    2  * Buttons have a dimension of 95x20 pixels 
    3  * 3 pixels vertical spacing is foreseen between buttons 
    4  * 7 pixels spacing is foreseen above and below the buttons 
    5  * Total height should be num_button*20 + (num_button-1)*3 + 2*7 
    6 --> 
    7 <VBox name="CharacterScreen" padding="0" background_image="gui/main_menu/main_menu_background_under_buttons.png" position_technique="center:center" size="320,340"> 
    8   <ImageButton name="startButton" up_image="gui/main_menu/new_game_plain.png" hover_image="gui/main_menu/new_game_hovered.png" down_image="gui/main_menu/new_game_pressed.png"/> 
    9   <ImageButton name="cancelButton"  up_image="gui/main_menu/exit_plain.png" hover_image="gui/main_menu/exit_hovered.png" down_image="gui/main_menu/exit_pressed.png"/> 
     1<VBox name="CharacterScreen" 
     2      background_image="gui/notebook/notebook_background.png" opaque="0" 
     3      min_size="800,600" max_size="800,600" 
     4      position_technique="center:center"> 
     5  <HBox vexpand="1" min_size="800,560" max_size="800,560" padding="0" opaque="0"> 
     6    <VBox min_size="22,0" max_size="22,9999" padding="0" opaque="0"> 
     7      <Spacer fixed_size="50"/> 
     8      <VBox name="leftTabs" min_size="22,0" max_size="22,9999" 
     9            padding="0" opaque="0"></VBox> 
     10      <Spacer fixed_size="40"/> 
     11    </VBox> 
     12    <VBox hexpand="1" min_size="734,560" max_size="734,560" padding="0" 
     13          opaque="0"> 
     14      <HBox name="topTabs" min_size="0,28" max_size="0,28" 
     15            opaque="0"> 
     16      </HBox> 
     17      <HBox min_size="732,517" max_size="732,517" opaque="0"> 
     18        <VBox name="leftPage" max_size="358,9999" min_size="358,0" 
     19              margins="5,5" opaque="0"> 
     20          <Spacer fixed_size="15"/> 
     21          <HBox opaque="0"> 
     22            <Spacer fixed_size="20"/> 
     23            <Icon name="portrait" image="gui/portraits/camilla.png" 
     24                  max_size="100,123"/> 
     25            <VBox hexpand="1" min_size="110,0" padding="1" opaque="0"> 
     26              <TextField name="characterName" text="Name" 
     27                         font="OldTypewriter" background_color="255,255,255"/> 
     28              <HBox opaque="0" padding="0"> 
     29                <Spacer/> 
     30                <Label text="Age" font="OldTypewriter_10"/> 
     31                <Spacer/> 
     32              </HBox> 
     33              <HBox opaque="0"> 
     34                <Spacer/> 
     35                <IntSpinner name="age" lower_limit="18" upper_limit="60" 
     36                            font="OldTypewriter_8" background_color="0,0,0,0" 
     37                            min_size="100,12" max_size="100,12"/> 
     38                <Spacer/> 
     39              </HBox> 
     40              <HBox opaque="0" padding="0"> 
     41                <Spacer/> 
     42                <Label text="Sex" font="OldTypewriter_10"/> 
     43                <Spacer/> 
     44              </HBox> 
     45              <HBox opaque="0"> 
     46                <Spacer/> 
     47                <Spinner name="sex" items="Male,Female" 
     48                         font="OldTypewriter_8" background_color="0,0,0,0" 
     49                         min_size="100,12" max_size="100,12"/> 
     50                <Spacer/> 
     51              </HBox> 
     52              <HBox opaque="0" padding="0"> 
     53                <Spacer/> 
     54                <Label text="Origin" font="OldTypewriter_10"/> 
     55                <Spacer/> 
     56              </HBox> 
     57              <HBox opaque="0"> 
     58                <Spacer/> 
     59                <Spinner name="origin" items="Oldster,Young Blood" 
     60                         font="OldTypewriter_8" background_color="0,0,0,0" 
     61                         min_size="100,12" max_size="100,12"/> 
     62                <Spacer/> 
     63              </HBox> 
     64              <HBox opaque="0" padding="0"> 
     65                <Spacer/> 
     66                <Label text="Portrait" font="OldTypewriter_10"/> 
     67                <Spacer/> 
     68              </HBox> 
     69              <HBox opaque="0"> 
     70                <Spacer/> 
     71                <Spinner name="portrait" items="" 
     72                         font="OldTypewriter_10" background_color="0,0,0,0" 
     73                         min_size="100,12" max_size="100,12"/> 
     74                <Spacer/> 
     75              </HBox> 
     76            </VBox> 
     77            <Icon name="model" image="gui/character_model.png" 
     78                  max_size="100,123"/> 
     79          </HBox> 
     80          <Spacer fixed_size="20"/> 
     81          <HBox opaque="0"> 
     82            <Spacer fixed_size="6"/> 
     83            <VBox min_size="200,0" max_size="200,9999" opaque="0"> 
     84              <HBox padding="0" opaque="0"> 
     85                <Label text="Primary Stats" font="OldTypewriter"/> 
     86                <Label name="statisticsPoints" text="(0)" 
     87                       font="OldTypewriter"/> 
     88              </HBox> 
     89              <VBox name="primaryStatisticsList" hexpand="1" 
     90                    opaque="0"> 
     91              </VBox> 
     92            </VBox> 
     93            <VBox hexpand="1" opaque="0"> 
     94              <HBox padding="0" opaque="0"> 
     95                <Label text="Traits" font="OldTypewriter"/> 
     96                <Label name="traitsPoints" text="(0)" font="OldTypewriter"/> 
     97                <Spacer/> 
     98              </HBox> 
     99              <ScrollArea> 
     100                <VBox name="traitsList" opaque="0"> 
     101                </VBox> 
     102              </ScrollArea> 
     103            </VBox> 
     104          </HBox> 
     105          <Spacer/> 
     106          <ScrollArea min_size="0,100" max_size="999,300" 
     107                      background_color="0,0,0,0"> 
     108            <TextField name="messageArea" base_color="0,0,0,0" 
     109                       background_color="0,0,0,0" font="OldTypewriter"/> 
     110          </ScrollArea> 
     111        </VBox> 
     112        <Spacer fixed_size="14"/> 
     113        <VBox name="rightPages" min_size="360,0" max_size="360,9999" 
     114              margins="10,20" hexpand="1" opaque="0"> 
     115          <TabWidget min_size="325,300" max_size="350,300" opaque="0" 
     116                     border_size="1"> 
     117            <VBox name="Secondary Stats" opaque="0"/> 
     118            <VBox name="Skills" opaque="0"/> 
     119          </TabWidget> 
     120          <Spacer fixed_size="25"/> 
     121          <HBox opaque="0"> 
     122            <Spacer fixed_size="14"/> 
     123            <InventoryGrid name="inventory" grid_size="6,2"/> 
     124          </HBox> 
     125          <HBox opaque="0"> 
     126            <Spacer/> 
     127            <VBox opaque="0" margins="1,1" min_size="100,50" max_size="100,50"> 
     128              <PercentageBar name="weightBar" value="25" border_size="1" 
     129                             foreground_color="50,50,50" min_size="80,20" 
     130                             max_size="80,20"/> 
     131              <HBox opaque="0"> 
     132                <Spacer/> 
     133                <Label text="weight:" font="OldTypewriter_8"/> 
     134                <Label name="weightPoints" text="50/200" font="OldTypewriter_8"/> 
     135                <Spacer/> 
     136              </HBox> 
     137            </VBox> 
     138            <Spacer fixed_size="10"/> 
     139            <VBox opaque="0" margins="1,1" min_size="100,50" max_size="100,50"> 
     140              <PercentageBar name="bulkBar" value="52" border_size="1" 
     141                             foreground_color="50,50,50" min_size="80,20" 
     142                             max_size="80,20"/> 
     143              <HBox opaque="0"> 
     144                <Spacer/> 
     145                <Label text="bulk:" font="OldTypewriter_8"/> 
     146                <Label name="bulkPoints" text="78/150" font="OldTypewriter_8"/> 
     147                <Spacer/> 
     148              </HBox> 
     149            </VBox> 
     150            <Spacer/> 
     151          </HBox> 
     152        </VBox> 
     153      </HBox> 
     154      <HBox name="bottomTabs" min_size="0,24" max_size="9999,24" opaque="0"> 
     155        <Spacer fixed_size="70"/> 
     156        <ImageButton name="cancelButton" text="Cancel" font="OldTypewriter_10" 
     157                     min_size="101,0" max_size="101,9999" 
     158                     up_image="gui/notebook/tabs/tab3_bg_normal_bottom.png" 
     159                     hover_image="gui/notebook/tabs/tab3_bg_normal_bottom.png" 
     160                     down_image="gui/notebook/tabs/tab3_bg_dark_bottom.png"/> 
     161        <Spacer fixed_size="100"/> 
     162        <ImageButton name="clearButton" text="Clear" font="OldTypewriter_10" 
     163                     min_size="52,0" max_size="52,9999" 
     164                     up_image="gui/notebook/tabs/tab5_bg_normal_bottom.png" 
     165                     hover_image="gui/notebook/tabs/tab5_bg_normal_bottom.png" 
     166                     down_image="gui/notebook/tabs/tab5_bg_dark_bottom.png"/> 
     167        <Spacer fixed_size="225"/> 
     168        <ImageButton name="startButton" text="Start Game" font="OldTypewriter_10" 
     169                     min_size="101,0" max_size="101,9999" 
     170                     up_image="gui/notebook/tabs/tab2_bg_normal_bottom.png" 
     171                     hover_image="gui/notebook/tabs/tab2_bg_normal_bottom.png" 
     172                     down_image="gui/notebook/tabs/tab2_bg_dark_bottom.png"/> 
     173      </HBox> 
     174    </VBox> 
     175    <VBox min_size="22,0" max_size="22,9999" padding="0" opaque="0"> 
     176      <Spacer fixed_size="50"/> 
     177      <VBox name="rightTabs" min_size="22,0" max_size="22,9999" 
     178            opaque="0"> 
     179      </VBox> 
     180      <Spacer fixed_size="40"/> 
     181    </VBox> 
     182    <Spacer fixed_size="4"/> 
     183  </HBox> 
     184  <HBox name="bottomBar" vexpand="1" opaque="0"> 
     185  </HBox> 
    10186</VBox> 
  • trunk/game/gui/hud_pause_menu.xml

    r648 r818  
    1111  <Button name="saveButton"    text="Save Game"   position="25,53" min_size="95,20" max_size="95,20"/> 
    1212  <Button name="loadButton"    text="Load Game"   position="25,76"  min_size="95,20" max_size="95,20"/> 
    13   <Button name="optionsButton" text="Options"     position="25,99" min_size="95,20" max_size="95,20"/> 
     13  <Button name="settingsButton" text="Settings"     position="25,99" min_size="95,20" max_size="95,20"/> 
    1414  <Button name="helpButton"    text="Help"        position="25,122" min_size="95,20" max_size="95,20" /> 
    1515  <Button name="quitButton"    text="Quit"        position="25,145" min_size="95,20" max_size="95,20" /> 
  • trunk/game/gui/inventory.xml

    r479 r818  
    1 <Window title="Inventory" min_size="500,580"> 
    2   <Label text="Character Name Here" name="charName"/>/ 
    3  
    4   <!-- TODO: Document this mess --> 
    5  
    6   <HBox max_size="275,100"> 
    7     <Spacer /> 
    8     <ImageButton name="Head" up_image="gui/inv_images/inv_head.png" down_image="gui/inv_images/inv_head.png" hover_image="gui/inv_images/inv_head.png" text="" /> 
    9   </HBox> 
    10    
    11   <HBox max_size="460,320"> 
    12     <Spacer /> 
    13      
    14     <VBox max_size="50,300"> 
    15       <ImageButton name="LeftHeld" up_image="gui/inv_images/inv_litem.png" down_image="gui/inv_images/inv_litem.png" hover_image="gui/inv_images/inv_litem.png" text="" /> 
    16       <ImageButton name="Ready1" up_image="gui/inv_images/inv_belt_pouches.png" down_image="gui/inv_images/inv_belt_pouches.png" hover_image="gui/inv_images/inv_belt_pouches.png" text="" /> 
    17       <ImageButton name="Ready2" up_image="gui/inv_images/inv_belt_pouches.png" down_image="gui/inv_images/inv_belt_pouches.png" hover_image="gui/inv_images/inv_belt_pouches.png" text="" /> 
    18       <Spacer /> 
    19       <ImageButton name="LeftFoot" up_image="gui/inv_images/inv_lfoot.png" down_image="gui/inv_images/inv_lfoot.png" hover_image="gui/inv_images/inv_lfoot.png" text="" /> 
    20     </VBox> 
    21      
    22     <VBox max_size="50,165"> 
    23       <ImageButton name="LeftHand" up_image="gui/inv_images/inv_lhand.png" down_image="gui/inv_images/inv_lhand.png" hover_image="gui/inv_images/inv_lhand.png" text="" /> 
    24       <Spacer /> 
    25       <ImageButton name="Body" up_image="gui/inv_images/inv_torso.png" down_image="gui/inv_images/inv_torso.png" hover_image="gui/inv_images/inv_torso.png" text="" /> 
    26     </VBox> 
    27  
    28     <VBox min_size="200,350"> 
    29       <Spacer /> 
    30       <Icon name="charPreview" image="gui/inv_images/char_preview.png" /> 
    31     </VBox> 
    32      
    33     <VBox max_size="50,165"> 
    34       <ImageButton name="RightHand" up_image="gui/inv_images/inv_rhand.png" down_image="gui/inv_images/inv_rhand.png" hover_image="gui/inv_images/inv_rhand.png" text="" /> 
    35       <Spacer /> 
    36       <ImageButton name="Belt" up_image="gui/inv_images/inv_belt.png" down_image="gui/inv_images/inv_belt.png" hover_image="gui/inv_images/inv_belt.png" text="" /> 
    37     </VBox> 
    38      
    39     <VBox max_size="50,300"> 
    40       <ImageButton name="RightHeld" up_image="gui/inv_images/inv_ritem.png" down_image="gui/inv_images/inv_ritem.png" hover_image="gui/inv_images/inv_ritem.png" text="" /> 
    41       <ImageButton name="Ready3" up_image="gui/inv_images/inv_belt_pouches.png" down_image="gui/inv_images/inv_belt_pouches.png" hover_image="gui/inv_images/inv_belt_pouches.png" text="" /> 
    42       <ImageButton name="Ready4" up_image="gui/inv_images/inv_belt_pouches.png" down_image="gui/inv_images/inv_belt_pouches.png" hover_image="gui/inv_images/inv_belt_pouches.png" text="" /> 
    43       <Spacer /> 
    44       <ImageButton name="RightFoot" up_image="gui/inv_images/inv_rfoot.png" down_image="gui/inv_images/inv_rfoot.png" hover_image="gui/inv_images/inv_rfoot.png" text="" /> 
    45     </VBox> 
    46      
    47   </HBox> 
    48    
    49   <Spacer /> 
    50    
    51   <!-- Main Inventory !--> 
    52   <HBox> 
    53     <VBox> 
    54       <HBox max_size="385,90"> 
    55         <Spacer /> 
    56         <ImageButton name="A1" up_image="gui/inv_images/inv_backpack.png" down_image="gui/inv_images/inv_backpack.png" hover_image="gui/inv_images/inv_backpack.png" text=""/> 
    57         <ImageButton name="A2" up_image="gui/inv_images/inv_backpack.png" down_image="gui/inv_images/inv_backpack.png" hover_image="gui/inv_images/inv_backpack.png" text=""/> 
    58         <ImageButton name="A3" up_image="gui/inv_images/inv_backpack.png" down_image="gui/inv_images/inv_backpack.png" hover_image="gui/inv_images/inv_backpack.png" text=""/> 
    59         <ImageButton name="A4" up_image="gui/inv_images/inv_backpack.png" down_image="gui/inv_images/inv_backpack.png" hover_image="gui/inv_images/inv_backpack.png" text=""/> 
    60         <ImageButton name="A5" up_image="gui/inv_images/inv_backpack.png" down_image="gui/inv_images/inv_backpack.png" hover_image="gui/inv_images/inv_backpack.png" text=""/> 
    61       </HBox> 
    62        
    63       <HBox max_size="385,90"> 
    64         <Spacer /> 
    65         <ImageButton name="B1" up_image="gui/inv_images/inv_backpack.png" down_image="gui/inv_images/inv_backpack.png" hover_image="gui/inv_images/inv_backpack.png" text=""/> 
    66         <ImageButton name="B2" up_image="gui/inv_images/inv_backpack.png" down_image="gui/inv_images/inv_backpack.png" hover_image="gui/inv_images/inv_backpack.png" text=""/> 
    67         <ImageButton name="B3" up_image="gui/inv_images/inv_backpack.png" down_image="gui/inv_images/inv_backpack.png" hover_image="gui/inv_images/inv_backpack.png" text=""/> 
    68         <ImageButton name="B4" up_image="gui/inv_images/inv_backpack.png" down_image="gui/inv_images/inv_backpack.png" hover_image="gui/inv_images/inv_backpack.png" text=""/> 
    69         <ImageButton name="B5" up_image="gui/inv_images/inv_backpack.png" down_image="gui/inv_images/inv_backpack.png" hover_image="gui/inv_images/inv_backpack.png" text=""/> 
    70       </HBox> 
    71        
    72       <HBox max_size="385,90"> 
    73         <Spacer /> 
    74         <ImageButton name="C1" up_image="gui/inv_images/inv_backpack.png" down_image="gui/inv_images/inv_backpack.png" hover_image="gui/inv_images/inv_backpack.png" text=""/> 
    75         <ImageButton name="C2" up_image="gui/inv_images/inv_backpack.png" down_image="gui/inv_images/inv_backpack.png" hover_image="gui/inv_images/inv_backpack.png" text=""/> 
    76         <ImageButton name="C3" up_image="gui/inv_images/inv_backpack.png" down_image="gui/inv_images/inv_backpack.png" hover_image="gui/inv_images/inv_backpack.png" text=""/> 
    77         <ImageButton name="C4" up_image="gui/inv_images/inv_backpack.png" down_image="gui/inv_images/inv_backpack.png" hover_image="gui/inv_images/inv_backpack.png" text=""/> 
    78         <ImageButton name="C5" up_image="gui/inv_images/inv_backpack.png" down_image="gui/inv_images/inv_backpack.png" hover_image="gui/inv_images/inv_backpack.png" text=""/> 
    79       </HBox> 
    80        
    81       <HBox max_size="385,90"> 
    82         <Spacer /> 
    83         <ImageButton name="D1" up_image="gui/inv_images/inv_backpack.png" down_image="gui/inv_images/inv_backpack.png" hover_image="gui/inv_images/inv_backpack.png" text=""/> 
    84         <ImageButton name="D2" up_image="gui/inv_images/inv_backpack.png" down_image="gui/inv_images/inv_backpack.png" hover_image="gui/inv_images/inv_backpack.png" text=""/> 
    85         <ImageButton name="D3" up_image="gui/inv_images/inv_backpack.png" down_image="gui/inv_images/inv_backpack.png" hover_image="gui/inv_images/inv_backpack.png" text=""/> 
    86         <ImageButton name="D4" up_image="gui/inv_images/inv_backpack.png" down_image="gui/inv_images/inv_backpack.png" hover_image="gui/inv_images/inv_backpack.png" text=""/> 
    87         <ImageButton name="D5" up_image="gui/inv_images/inv_backpack.png" down_image="gui/inv_images/inv_backpack.png" hover_image="gui/inv_images/inv_backpack.png" text=""/> 
    88       </HBox> 
    89        
    90       <Spacer /> 
    91        
    92       <HBox min_size="500,0"> 
    93         <Spacer /> 
    94         <Button name="close_button" text="Close" /> 
    95       </HBox> 
    96        
     1<VBox background_image="gui/notebook/notebook_background.png" opaque="0" 
     2      min_size="780,545"> 
     3  <Spacer fixed_size="20"></Spacer> 
     4  <HBox opaque="0" padding="0"> 
     5    <HBox name="equipmentPage" min_size="380,510" max_size="380,510" opaque="0"> 
     6      <VBox name="equipmentTabs" min_size="20,545" max_size="20,545" opaque="0"> 
     7        <Spacer fixed_size="194"></Spacer> 
     8        <ImageButton name="characterButton" 
     9                     up_image="gui/notebook/character_plain.png" 
     10                     down_image="gui/notebook/character_back.png" 
     11                     hover_image="gui/notebook/character_hovered.png"> 
     12        </ImageButton> 
     13      </VBox> 
     14      <VBox name="equipmentContent" hexpand="1" opaque="0"> 
     15        <HBox min_size="0,120" padding="0" opaque="0"> 
     16          <Spacer fixed_size="25"></Spacer> 
     17          <VBox opaque="0"> 
     18            <Spacer fixed_size="20"></Spacer> 
     19            <VBox margins="1,1" opaque="0"> 
     20            <Icon name="equipmentIcon" border_size="1" 
     21                  image="gui/portraits/drunkard.png"></Icon> 
     22            </VBox> 
     23          </VBox> 
     24          <Label name="equipmentDescription" foreground_color="0,0,0" 
     25                 text="Equipment description here."></Label> 
     26        </HBox> 
     27        <HBox opaque="0" padding="0" vexpand="1"> 
     28          <Spacer fixed_size="20"></Spacer> 
     29          <VBox padding="20" opaque="0"> 
     30            <Spacer fixed_size="40"></Spacer> 
     31            <EquipmentSlot name="shirtSlot" label_text="shirt"> 
     32            </EquipmentSlot> 
     33            <EquipmentSlot name="rightHandSlot" label_text="rhand"> 
     34            </EquipmentSlot> 
     35            <EquipmentSlot name="beltSlot" label_text="belt"></EquipmentSlot> 
     36            <EquipmentSlot name="bootsSlot" label_text="boots"></EquipmentSlot> 
     37          </VBox> 
     38          <HBox opaque="0" vexpand="1"> 
     39            <Spacer fixed_size="10"></Spacer> 
     40            <Icon name="puppetIcon" image="gui/inv_images/char_preview.png"> 
     41            </Icon> 
     42          </HBox> 
     43          <VBox padding="20" opaque="0"> 
     44            <EquipmentSlot name="headSlot" label_text="head"></EquipmentSlot> 
     45            <EquipmentSlot name="neckSlot" label_text="back"></EquipmentSlot> 
     46            <EquipmentSlot name="leftHandSlot" label_text="lhand"></EquipmentSlot> 
     47            <EquipmentSlot name="pantsSlot" label_text="pants"></EquipmentSlot> 
     48          </VBox> 
     49          <Spacer fixed_size="20"></Spacer> 
     50        </HBox> 
     51      </VBox> 
     52    </HBox> 
     53    <Spacer fixed_size="24"></Spacer> 
     54    <VBox name="inventoryPage" min_size="376,510" max_size="376,510" 
     55          opaque="0"> 
     56      <VBox name="inventoryContent" hexpand="1" min_size="350,0" opaque="0"> 
     57        <HBox min_size="0,120" opaque="0"> 
     58          <Label text="Item description here."></Label> 
     59        </HBox> 
     60        <InventoryGrid grid_size="6,7"></InventoryGrid> 
     61      </VBox> 
     62      <Spacer fixed_size="20"></Spacer> 
    9763    </VBox> 
    9864  </HBox> 
    99    
    100 </Window> 
     65</VBox> 
  • trunk/game/gui/main_menu.xml

    r655 r818  
    1 <!-- 
    2  * Buttons have a dimension of 95x20 pixels 
    3  * 3 pixels vertical spacing is foreseen between buttons 
    4  * 7 pixels spacing is foreseen above and below the buttons 
    5  * Total height should be num_button*20 + (num_button-1)*3 + 2*7 
    6 --> 
    7 <VBox name="MainMenuMenu" padding="0" background_image="gui/main_menu/main_menu_background_under_buttons.png" position_technique="center:center" size="320,340"> 
    8   <ImageButton name="continueButton" up_image="gui/main_menu/continue_disabled.png"/> 
    9   <ImageButton name="newButton" up_image="gui/main_menu/new_game_plain.png" hover_image="gui/main_menu/new_game_hovered.png" down_image="gui/main_menu/new_game_pressed.png"/> 
    10   <ImageButton name="loadButton" up_image="gui/main_menu/load_game_plain.png" hover_image="gui/main_menu/load_game_hovered.png" down_image="gui/main_menu/load_game_pressed.png"/> 
    11   <ImageButton name="optionsButton" up_image="gui/main_menu/options_plain.png" hover_image="gui/main_menu/options_hovered.png" down_image="gui/main_menu/options_pressed.png"/> 
    12   <ImageButton name="creditsButton" up_image="gui/main_menu/credits_disabled.png"/> 
    13   <ImageButton name="quitButton"  up_image="gui/main_menu/exit_plain.png" hover_image="gui/main_menu/exit_hovered.png" down_image="gui/main_menu/exit_pressed.png"/> 
     1<VBox name="MainMenuMenu" background_image="gui/notebook/notebook_background.png" padding="0" position_technique="center:center" opaque="0" min_size="780,545" max_size="780,545"> 
     2  <HBox vexpand="1" padding="0" opaque="0"> 
     3    <VBox min_size="20,0" padding="0" opaque="0"> 
     4      <Spacer fixed_size="50"></Spacer> 
     5      <VBox name="leftTabs" min_size="20,0" padding="0" opaque="0"></VBox> 
     6      <Spacer fixed_size="40"></Spacer> 
     7    </VBox> 
     8    <VBox padding="0" opaque="0"> 
     9      <HBox name="topTabs" min_size="0,30" opaque="0"></HBox> 
     10      <HBox vexpand="1" opaque="0"> 
     11        <Spacer fixed_size="32" /> 
     12                <!-- by adding hexpand, buttons get resized to size of hbox (which is what I want) but I don't know why)--> 
     13        <VBox name="leftPage" hexpand="1" max_size="312,474" min_size="312,474" padding="8" opaque="0"> 
     14          <Spacer fixed_size="32"/> 
     15          <Button base_color="0,0,0,0" name="newButton" text="New Game" font="OldTypewriter"/> 
     16          <Button base_color="0,0,0,0" name="loadButton" text="Load Game" font="OldTypewriter"/> 
     17          <Button base_color="0,0,0,0" name="settingsButton" text="Settings" font="OldTypewriter"/> 
     18          <Button base_color="0,0,0,0" name="creditsButton" text="Credits" font="OldTypewriter"/> 
     19                </VBox> 
     20        <Spacer fixed_size="20" /> 
     21        <VBox name="rightPages" padding="8" opaque="0" position_technique="center:center"></VBox> 
     22      </HBox> 
     23      <HBox name="bottomTabs" min_size="0,30" opaque="0"> 
     24          <!-- the tabl below is supposed to be at bottom left.. for now? --> 
     25      <Spacer fixed_size="32"/> 
     26          <ImageButton max_size="99,24" text="Quit" name="quitButton" font="OldTypewriter" up_image="gui/notebook/tabs/tab2_bg_dark_bottom.png" hover_image="gui/notebook/tabs/tab2_bg_normal_bottom.png" down_image="gui/notebook/tabs/tab2_bg_normal_bottom.png" /> 
     27          </HBox> 
     28    </VBox> 
     29    <VBox min_size="20,0" padding="0" opaque="0"> 
     30      <Spacer fixed_size="50"></Spacer> 
     31      <VBox name="rightTabs" min_size="20,0" opaque="0"></VBox> 
     32      <Spacer fixed_size="40"></Spacer> 
     33    </VBox> 
     34    <Spacer fixed_size="4"></Spacer> 
     35  </HBox> 
    1436</VBox> 
Note: See TracChangeset for help on using the changeset viewer.