Changeset 275 for trunk/game


Ignore:
Timestamp:
09/07/09 07:53:17 (10 years ago)
Author:
b0rland_parpg
Message:

Ticket #92: Patch by b0rland. Fixing the focus stealing bug. We need to be attentive to put is_focusable="0" into all hud widgets unless better way is found.`

File:
1 edited

Legend:

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

    r106 r275  
    1 <Container name="mainHudWindow" position_technique="center:bottom"> 
     1<Container name="mainHudWindow" position_technique="center:bottom" is_focusable="0"> 
    22 
    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"/> 
     3  <Button name="menuButton" text="Menu"  max_size="200,15" position="5,5" is_focusable="0" /> 
     4  <Button name="saveButton" text="Save" max_size="200,15" position="6,25" is_focusable="0" /> 
     5  <Button name="loadButton" text="Load" max_size="200,15" position="6,45" is_focusable="0" /> 
    66 
    7   <Label name="healthPoints" text="HP: 100" position="56,14"/> 
    8   <Label name="actionPoints" text="AP: 100" position="56,34" /> 
    9   <Label name="armorClass" text="AC: 100" position="106,14" /> 
    10   <Label name="tempGauge" text="Temp: 100" position="106,34" /> 
     7  <Label name="healthPoints" text="HP: 100" position="56,14" is_focusable="0" /> 
     8  <Label name="actionPoints" text="AP: 100" position="56,34" is_focusable="0" /> 
     9  <Label name="armorClass" text="AC: 100" position="106,14" is_focusable="0" /> 
     10  <Label name="tempGauge" text="Temp: 100" position="106,34" is_focusable="0" /> 
    1111   
    12   <ImageButton name="hudReady1" /> 
    13   <ImageButton name="hudReady2" /> 
     12  <ImageButton name="hudReady1" is_focusable="0" /> 
     13  <ImageButton name="hudReady2" is_focusable="0" /> 
    1414 
    1515  <ScrollArea name="actionsScrollArea" vertical_scrollbar="1"  
    16               horizontal_scrollbar="0"> 
    17     <ListBox name="actionsBox" /> 
     16              horizontal_scrollbar="0" is_focusable="0"> 
     17    <ListBox name="actionsBox" is_focusable="0" /> 
    1818  </ScrollArea> 
    1919 
    20   <ImageButton name="hudReady3" /> 
    21   <ImageButton name="hudReady4" /> 
     20  <ImageButton name="hudReady3" is_focusable="0" /> 
     21  <ImageButton name="hudReady4" is_focusable="0" /> 
    2222 
    2323  <ToggleButton name="inventoryButton" up_image="gui/inv_images/inv_backpack.png"  
    2424                down_image="gui/inv_images/inv_backpack_open.png"  
    25                 hover_image="gui/inv_images/inv_backpack.png" /> 
     25                hover_image="gui/inv_images/inv_backpack.png" is_focusable="0" /> 
    2626</Container> 
    2727 
Note: See TracChangeset for help on using the changeset viewer.