mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-04 12:15:34 +00:00
Added crosshair, commented LAND records
git-svn-id: https://openmw.svn.sourceforge.net/svnroot/openmw/trunk@136 ea6a568a-9f4f-0410-981a-c910a81bb256
This commit is contained in:
parent
9ff29461f9
commit
5715235a17
3 changed files with 17 additions and 2 deletions
|
@ -100,7 +100,8 @@ struct ExteriorCell
|
|||
|
||||
// Landscape and path grid data
|
||||
Land land; // There can be TWO landscapes! Or maybe I have
|
||||
// misunderstood something. Need to check what it means.
|
||||
// misunderstood something. Need to check what it
|
||||
// means. UPDATE: See comment further down.
|
||||
|
||||
PathGrid paths;
|
||||
|
||||
|
@ -127,7 +128,11 @@ struct ExteriorCell
|
|||
if(isNextHRec("PGRD")) paths.load();
|
||||
|
||||
// Land can also be here instead. In fact, it can be both
|
||||
// places. I have to figure out what it means.
|
||||
// places. I have to figure out what it means. UPDATE: Since
|
||||
// both the LAND and PGRD records have X/Y coordinates of their
|
||||
// own, a much more robust solution is to not depend on
|
||||
// order. Nevertheless, I still think there are a couple of
|
||||
// instances of duplicate LAND structures in esm files.
|
||||
if(isNextHRec("LAND")) land.load();
|
||||
|
||||
if(land.state == LoadState.Loaded)
|
||||
|
|
|
@ -255,7 +255,10 @@ public:
|
|||
getWidget(minimap, "MiniMap");
|
||||
getWidget(compass, "Compass");
|
||||
|
||||
getWidget(crosshair, "Crosshair");
|
||||
|
||||
compass->setImageTexture("compass.dds");
|
||||
crosshair->setImageTexture("target.dds");
|
||||
}
|
||||
|
||||
void setStats(int h, int hmax, int m, int mmax, int s, int smax)
|
||||
|
@ -297,6 +300,8 @@ public:
|
|||
|
||||
MyGUI::StaticImagePtr minimap;
|
||||
MyGUI::StaticImagePtr compass;
|
||||
|
||||
MyGUI::StaticImagePtr crosshair;
|
||||
};
|
||||
|
||||
class MapWindow : public Layout
|
||||
|
|
|
@ -43,5 +43,10 @@
|
|||
<Widget type="StaticImage" skin="StaticImage" position="17 18 32 32" align="Left Bottom"
|
||||
name="Compass"/>
|
||||
</Widget>
|
||||
|
||||
<!-- Crosshair -->
|
||||
|
||||
<Widget type="StaticImage" skin="StaticImage" position="0 0 32
|
||||
32" align="Center Center" name="Crosshair"/>
|
||||
</Widget>
|
||||
</MyGUI>
|
||||
|
|
Loading…
Reference in a new issue