mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 17:19:56 +00:00
1718d735b5
This patch implements a custom widget that can switch its texture on-the-fly, making it obsolete having to use an atlas to get a hover animation. This also removes the predefined size restriction and should now work with all button texture sizes.
43 lines
2.4 KiB
XML
43 lines
2.4 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<MyGUI type="Layout">
|
|
|
|
<Widget type="Window" skin="" layer="Windows" align="Left|Top" position="0 0 512 256" name="_Main">
|
|
|
|
<Widget type="ImageBox" skin="ImageBox" position_real="0 0 1 1" align="Top|Right" name="BookImage">
|
|
<Property key="ImageTexture" value="textures\tx_menubook.dds"/>
|
|
|
|
<Widget type="ImageButton" skin="ImageBox" position="251 220 128 32" name="NextPageBTN">
|
|
<Property key="ImageHighlighted" value="textures\tx_menubook_next_over.dds"/>
|
|
<Property key="ImageNormal" value="textures\tx_menubook_next_idle.dds"/>
|
|
<Property key="ImagePushed" value="textures\tx_menubook_next_pressed.dds"/>
|
|
</Widget>
|
|
<Widget type="ImageButton" skin="ImageBox" position="165 220 128 32" name="PrevPageBTN">
|
|
<Property key="ImageHighlighted" value="textures\tx_menubook_prev_over.dds"/>
|
|
<Property key="ImageNormal" value="textures\tx_menubook_prev_idle.dds"/>
|
|
<Property key="ImagePushed" value="textures\tx_menubook_prev_pressed.dds"/>
|
|
</Widget>
|
|
<Widget type="ImageButton" skin="ImageBox" position="75 220 128 32" name="TakeButton">
|
|
<Property key="ImageHighlighted" value="textures\tx_menubook_take_over.dds"/>
|
|
<Property key="ImageNormal" value="textures\tx_menubook_take_idle.dds"/>
|
|
<Property key="ImagePushed" value="textures\tx_menubook_take_pressed.dds"/>
|
|
</Widget>
|
|
<Widget type="ImageButton" skin="ImageBox" position="360 220 128 32" name="CloseButton">
|
|
<Property key="ImageHighlighted" value="textures\tx_menubook_close_over.dds"/>
|
|
<Property key="ImageNormal" value="textures\tx_menubook_close_idle.dds"/>
|
|
<Property key="ImagePushed" value="textures\tx_menubook_close_pressed.dds"/>
|
|
</Widget>
|
|
|
|
<Widget type="TextBox" skin="NormalText" position="155 215 24 24" name="LeftPageNumber">
|
|
<Property key="TextColour" value="0 0 0"/>
|
|
</Widget>
|
|
<Widget type="TextBox" skin="NormalText" position="325 215 24 24" name="RightPageNumber">
|
|
<Property key="TextColour" value="0 0 0"/>
|
|
</Widget>
|
|
|
|
<Widget type="Widget" skin="" position_real="0.15 0.1 0.3 0.75" name = "LeftPage"/>
|
|
<Widget type="Widget" skin="" position_real="0.55 0.1 0.3 0.75" name = "RightPage"/>
|
|
</Widget>
|
|
</Widget>
|
|
|
|
</MyGUI>
|