mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-31 23:26:41 +00:00 
			
		
		
		
	MW_MapView skin
This commit is contained in:
		
							parent
							
								
									ab9aa1ba74
								
							
						
					
					
						commit
						cc9f20a04f
					
				
					 5 changed files with 30 additions and 15 deletions
				
			
		|  | @ -71,6 +71,8 @@ namespace MWGui | |||
| 
 | ||||
|       // Obviously you should override this later on
 | ||||
|       setCellName("No Cell Loaded"); | ||||
| 
 | ||||
|       getWidget(mMap, "Map"); | ||||
|     } | ||||
| 
 | ||||
|     void setCellName(const std::string& cellName) | ||||
|  | @ -103,6 +105,7 @@ namespace MWGui | |||
| 
 | ||||
|   private: | ||||
|     std::string mPrefix; | ||||
|     MyGUI::ScrollView* mMap; | ||||
|   }; | ||||
| 
 | ||||
|   class MainMenu : public OEngine::GUI::Layout | ||||
|  |  | |||
|  | @ -42,6 +42,7 @@ configure_file("${SDIR}/openmw_layers.xml" "${DDIR}/openmw_layers.xml" COPYONLY) | |||
| configure_file("${SDIR}/openmw_mainmenu_layout.xml" "${DDIR}/openmw_mainmenu_layout.xml" COPYONLY) | ||||
| configure_file("${SDIR}/openmw_mainmenu_skin.xml" "${DDIR}/openmw_mainmenu_skin.xml" COPYONLY) | ||||
| configure_file("${SDIR}/openmw_map_window_layout.xml" "${DDIR}/openmw_map_window_layout.xml" COPYONLY) | ||||
| configure_file("${SDIR}/openmw_map_window_skin.xml" "${DDIR}/openmw_map_window_skin.xml" COPYONLY) | ||||
| configure_file("${SDIR}/openmw.pointer.xml" "${DDIR}/openmw.pointer.xml" COPYONLY) | ||||
| configure_file("${SDIR}/openmw_progress.skin.xml" "${DDIR}/openmw_progress.skin.xml" COPYONLY) | ||||
| configure_file("${SDIR}/openmw_stats_window_layout.xml" "${DDIR}/openmw_stats_window_layout.xml" COPYONLY) | ||||
|  |  | |||
|  | @ -20,6 +20,7 @@ | |||
|             <List file="openmw_mainmenu_skin.xml" group="General"/> | ||||
|             <List file="openmw_console.skin.xml" group="General"/> | ||||
|             <List file="openmw_journal_skin.xml" group="General"/> | ||||
|             <List file="openmw_map_window_skin.xml" group="General"/> | ||||
|             <List file="openmw_dialogue_window_skin.xml" group="General"/> | ||||
|             <List file="openmw_settings.xml" group="General"/> | ||||
|       </MyGUI> | ||||
|  |  | |||
|  | @ -2,50 +2,49 @@ | |||
| 
 | ||||
| <MyGUI type="Layout"> | ||||
|     <Widget type="Window" skin="MW_Window" layer="Windows" position="0 0 300 300" name="_Main"> | ||||
|         <Widget type="ScrollView" skin="ScrollView" position="0 0 284 264" align="ALIGN_STRETCH" name="Map"> | ||||
|             <Property key="ScrollView_CanvasSize" value="1536 1536"/> | ||||
|             <!-- positioned and rotated in code --> | ||||
|             <Widget type="ImageBox" skin="ImageBox" position="0 0 32 32" align="ALIGN_TOP ALIGN_LEFT" name="Compass"/> | ||||
| 
 | ||||
|             <Widget type="Button" skin="MW_Button" position="213 233 61 22" align="ALIGN_BOTTOM ALIGN_RIGHT" name="WorldButton"/> | ||||
|         <Widget type="ScrollView" skin="MW_MapView" position="0 0 284 264" align="ALIGN_STRETCH" name="Map"> | ||||
|             <Property key="CanvasSize" value="1536 1536"/> | ||||
| 
 | ||||
|             <!-- 3x3 maps, 1024x1024 each, but we will downsample to 512 to antialias them --> | ||||
|             <Widget type="ImageBox" skin="ImageBox" position="0 0 512 512" align="ALIGN_TOP ALIGN_LEFT" name="Map_0_0"> | ||||
|                 <Widget type="ImageBox" skin="ImageBox" position="0 0 512 512" align="ALIGN_TOP_ALIGN_LEFT" name="Map_0_0_fog"/> | ||||
|                 <Widget type="ImageBox" skin="ImageBox" position="0 0 512 512" align="ALIGN_TOP ALIGN_LEFT" name="Map_0_0_fog"/> | ||||
|             </Widget> | ||||
| 
 | ||||
|             <Widget type="ImageBox" skin="ImageBox" position="512 0 512 512" align="ALIGN_TOP ALIGN_LEFT" name="Map_1_0"> | ||||
|                 <Widget type="ImageBox" skin="ImageBox" position="0 0 512 512" align="ALIGN_TOP_ALIGN_LEFT" name="Map_1_0_fog"/> | ||||
|                 <Widget type="ImageBox" skin="ImageBox" position="0 0 512 512" align="ALIGN_TOP ALIGN_LEFT" name="Map_1_0_fog"/> | ||||
|             </Widget> | ||||
| 
 | ||||
|             <Widget type="ImageBox" skin="ImageBox" position="1024 0 512 512" align="ALIGN_TOP ALIGN_LEFT" name="Map_2_0"> | ||||
|                 <Widget type="ImageBox" skin="ImageBox" position="0 0 512 512" align="ALIGN_TOP_ALIGN_LEFT" name="Map_2_0_fog"/> | ||||
|                 <Widget type="ImageBox" skin="ImageBox" position="0 0 512 512" align="ALIGN_TOP ALIGN_LEFT" name="Map_2_0_fog"/> | ||||
|             </Widget> | ||||
| 
 | ||||
|             <Widget type="ImageBox" skin="ImageBox" position="0 512 512 512" align="ALIGN_TOP ALIGN_LEFT" name="Map_0_1"> | ||||
|                 <Widget type="ImageBox" skin="ImageBox" position="0 0 512 512" align="ALIGN_TOP_ALIGN_LEFT" name="Map_0_1_fog"/> | ||||
|                 <Widget type="ImageBox" skin="ImageBox" position="0 0 512 512" align="ALIGN_TOP ALIGN_LEFT" name="Map_0_1_fog"/> | ||||
|             </Widget> | ||||
| 
 | ||||
|             <Widget type="ImageBox" skin="ImageBox" position="512 512 512 512" align="ALIGN_TOP ALIGN_LEFT" name="Map_1_1"> | ||||
|                 <Widget type="ImageBox" skin="ImageBox" position="0 0 512 512" align="ALIGN_TOP_ALIGN_LEFT" name="Map_1_1_fog"/> | ||||
|                 <Widget type="ImageBox" skin="ImageBox" position="0 0 512 512" align="ALIGN_TOP ALIGN_LEFT" name="Map_1_1_fog"/> | ||||
|             </Widget> | ||||
| 
 | ||||
|             <Widget type="ImageBox" skin="ImageBox" position="1024 512 512 512" align="ALIGN_TOP ALIGN_LEFT" name="Map_2_1"> | ||||
|                 <Widget type="ImageBox" skin="ImageBox" position="0 0 512 512" align="ALIGN_TOP_ALIGN_LEFT" name="Map_2_1_fog"/> | ||||
|                 <Widget type="ImageBox" skin="ImageBox" position="0 0 512 512" align="ALIGN_TOP ALIGN_LEFT" name="Map_2_1_fog"/> | ||||
|             </Widget> | ||||
| 
 | ||||
|             <Widget type="ImageBox" skin="ImageBox" position="0 1024 512 512" align="ALIGN_TOP ALIGN_LEFT" name="Map_0_2"> | ||||
|                 <Widget type="ImageBox" skin="ImageBox" position="0 0 512 512" align="ALIGN_TOP_ALIGN_LEFT" name="Map_0_2_fog"/> | ||||
|                 <Widget type="ImageBox" skin="ImageBox" position="0 0 512 512" align="ALIGN_TOP ALIGN_LEFT" name="Map_0_2_fog"/> | ||||
|             </Widget> | ||||
| 
 | ||||
|             <Widget type="ImageBox" skin="ImageBox" position="512 1024 512 512" align="ALIGN_TOP ALIGN_LEFT" name="Map_1_2"> | ||||
|                 <Widget type="ImageBox" skin="ImageBox" position="0 0 512 512" align="ALIGN_TOP_ALIGN_LEFT" name="Map_1_2_fog"/> | ||||
|                 <Widget type="ImageBox" skin="ImageBox" position="0 0 512 512" align="ALIGN_TOP ALIGN_LEFT" name="Map_1_2_fog"/> | ||||
|             </Widget> | ||||
| 
 | ||||
|             <Widget type="ImageBox" skin="ImageBox" position="1024 1024 512 512" align="ALIGN_TOP ALIGN_LEFT" name="Map_2_2"> | ||||
|                 <Widget type="ImageBox" skin="ImageBox" position="0 0 512 512" align="ALIGN_TOP_ALIGN_LEFT" name="Map_2_2_fog"/> | ||||
|                 <Widget type="ImageBox" skin="ImageBox" position="0 0 512 512" align="ALIGN_TOP ALIGN_LEFT" name="Map_2_2_fog"/> | ||||
|             </Widget> | ||||
| 
 | ||||
|                 <!-- positioned and rotated in code --> | ||||
|             <Widget type="ImageBox" skin="ImageBox" position="0 0 32 32" align="ALIGN_TOP ALIGN_LEFT" name="Compass"/> | ||||
|         </Widget> | ||||
|         <Widget type="Button" skin="MW_Button" position="213 233 61 22" align="ALIGN_BOTTOM ALIGN_RIGHT" name="WorldButton"/> | ||||
|     </Widget> | ||||
| </MyGUI> | ||||
|  |  | |||
							
								
								
									
										11
									
								
								files/mygui/openmw_map_window_skin.xml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								files/mygui/openmw_map_window_skin.xml
									
									
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,11 @@ | |||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| 
 | ||||
| <MyGUI type="Skin"> | ||||
|     <Skin name="MW_MapView" size="516 516" texture="mwgui.png"> | ||||
|         <Child type="Widget" skin="ClientDefaultSkin" offset="0 0 516 516" align="Stretch" name="Client"/> | ||||
| 
 | ||||
|         <!-- invisible scroll bars, needed for setting the view offset --> | ||||
|         <Child type="ScrollBar" skin="ClientDefaultSkin" offset="498 3 14 509" align="ALIGN_RIGHT ALIGN_VSTRETCH" name="VScroll"/> | ||||
|         <Child type="ScrollBar" skin="ClientDefaultSkin" offset="3 498 489 14" align="ALIGN_BOTTOM ALIGN_HSTRETCH" name="HScroll"/> | ||||
|     </Skin> | ||||
| </MyGUI> | ||||
		Loading…
	
		Reference in a new issue