mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-31 05:26:41 +00:00 
			
		
		
		
	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.
		
			
				
	
	
		
			25 lines
		
	
	
	
		
			1.3 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
	
		
			1.3 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
| <?xml version="1.0" encoding="UTF-8"?>
 | |
| 
 | |
| <MyGUI type="Layout">
 | |
| 
 | |
| <Widget type="Window" skin="" layer="Windows" align="Left|Top" position="00 200 512 256" name="_Main">
 | |
| 
 | |
|     <Widget type="ImageBox" skin="ImageBox" position_real="0 0 1 1" align="Top|Right" name="JImage">     
 | |
|         <Property key="ImageTexture" value="textures\tx_menubook.dds"/>
 | |
| 
 | |
|         <Widget type="ImageButton" skin="ImageBox" position="370 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="80 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="EditBox" skin="MW_BookPage" position_real="0.15 0.1 0.3 0.75" name = "LeftText"/>
 | |
|         <Widget type="EditBox" skin="MW_BookPage" position_real="0.55 0.1 0.3 0.75" name = "RightText"/>
 | |
|     </Widget>
 | |
| </Widget>
 | |
| 
 | |
| </MyGUI>
 |