Ignore:
Timestamp:
02/22/11 22:42:47 (8 years ago)
Author:
qubodup
Message:

Patch by qubodup:

  • Starting to apply notebook style to main menu
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/active/character_customization/game/gui/main_menu.xml

    r655 r740  
    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          <Button base_color="0,0,0,0" name="newButton" text="New Game"/> 
     15          <Button name="loadButton" text="Load Game"/> 
     16          <Button name="optionsButton" text="Settings"/> 
     17          <Button name="creditsButton" text="Credits"/> 
     18                </VBox> 
     19        <Spacer fixed_size="20" /> 
     20        <VBox name="rightPages" padding="8" opaque="0" position_technique="center:center"></VBox> 
     21      </HBox> 
     22      <HBox name="bottomTabs" min_size="0,30" opaque="0"> 
     23          <!-- the tabl below is supposed to be at bottom left.. for now? --> 
     24          <ImageButton max_size="50,50" text="Quit" name="quitButton" up_image="gui/notebook/tabs/tab4_bg_dark_bottom.png" hover_image="gui/notebook/tabs/tab4_bg_normal_bottom.png" down_image="gui/notebook/tabs/tab4_bg_normal_bottom.png" /> 
     25          </HBox> 
     26    </VBox> 
     27    <VBox min_size="20,0" padding="0" opaque="0"> 
     28      <Spacer fixed_size="50"></Spacer> 
     29      <VBox name="rightTabs" min_size="20,0" opaque="0"></VBox> 
     30      <Spacer fixed_size="40"></Spacer> 
     31    </VBox> 
     32    <Spacer fixed_size="4"></Spacer> 
     33  </HBox> 
    1434</VBox> 
Note: See TracChangeset for help on using the changeset viewer.