Changeset 80 for trunk/PARPG/gui


Ignore:
Timestamp:
06/02/09 03:05:02 (11 years ago)
Author:
bretzel_parpg
Message:

Added lots of stuff:

-> Changed some code in the HUD so it will be easier to skin
-> Added options to change the resolution and render backend in the options menu
-> Removed the reset images button in the inventory
-> Made the close button in the inventory toggle the inventory button on the HUD

Location:
trunk/PARPG/gui
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/PARPG/gui/hud.xml

    r74 r80  
    1 <HBox position_technique="center:bottom" min_size="640,0"> 
    2   <VBox> 
    3   <Button name="menuButton" text="Menu"  max_size="200,15"/> 
    4   <Button name="saveButton" text="Save" max_size="200,15"/> 
    5   <Button name="loadButton" text="Load" max_size="200,15"/> 
    6   </VBox> 
     1<Container name="mainHudWindow" position_technique="center:bottom"> 
    72 
    8   <VBox max_size="50,50"> 
    9     <Spacer /> 
    10     <HBox><Label text="  HP:" /><Label name="HealthPoints" text="100" /></HBox> 
    11     <HBox><Label text="  AP:" /><Label name="ActionPoints" text="100" /></HBox> 
    12   </VBox> 
     3  <Button name="menuButton" text="Menu"  max_size="200,15" position="5,5"/> 
     4  <Button name="saveButton" text="Save" max_size="200,15" position="6,25"/> 
     5  <Button name="loadButton" text="Load" max_size="200,15" position="6,45"/> 
    136 
    14   <HBox min_size="395,50"> 
    15     <Spacer /> 
    16     <ScrollArea size="300,55" vertical_scrollbar="1" horizontal_scrollbar="0"> 
    17       <ListBox name="ActionsBox" min_size="300,50"/> 
    18     </ScrollArea> 
    19   </HBox> 
     7  <Label name="healthPoints" text="HP: 100" position="56,14"/> 
     8  <Label name="actionPoints" text="AP: 100" position="56,34" /> 
    209 
    21   <Spacer /> 
     10  <ScrollArea name="actionsScrollArea" vertical_scrollbar="1" horizontal_scrollbar="0" 
     11              position="105,5"> 
     12    <ListBox name="actionsBox" min_size="300,48"/> 
     13  </ScrollArea> 
    2214 
    2315  <ToggleButton name="inventoryButton" up_image="gui/inv_images/inv_backpack.png"  
    2416                down_image="gui/inv_images/inv_backpack_open.png"  
    2517                hover_image="gui/inv_images/inv_backpack.png" /> 
    26 </HBox> 
     18</Container> 
    2719 
  • trunk/PARPG/gui/hud_options.xml

    r76 r80  
    44  <CheckBox name="FullscreenBox" text="Full Screen" /> 
    55  <CheckBox name="SoundsBox" text="Play Sounds" /> 
     6  <HBox min_size="120,90"> 
     7    <Label text="Resolution: " /> 
     8    <ListBox name="ResolutionBox" min_size="120,0" /> 
     9  </HBox> 
     10  <HBox min_size="120,47"> 
     11    <Label text="Render Backend: " /> 
     12    <ListBox name="RenderBox" min_size="120,0" /> 
     13  </HBox> 
    614 
    715  <Spacer /> 
  • trunk/PARPG/gui/inventory.xml

    r63 r80  
    9999        <Spacer /> 
    100100        <Button name="close_button" text="Close" /> 
    101         <Button name="reset_button" text="Reset Images" /> 
    102101        </HBox> 
    103102         
Note: See TracChangeset for help on using the changeset viewer.