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
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.