mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 18:19:55 +00:00
- fixed progress bar color bug
git-svn-id: https://openmw.svn.sourceforge.net/svnroot/openmw/trunk@122 ea6a568a-9f4f-0410-981a-c910a81bb256
This commit is contained in:
parent
4f5b9d019a
commit
5c41ce85d4
3 changed files with 20 additions and 16 deletions
|
@ -7,12 +7,12 @@
|
|||
<State name="normal" offset = "0 0 2 14"/>
|
||||
</BasisSkin>
|
||||
</Skin>
|
||||
<Skin name = "MW_BigTrack_Green" size = "2 14" texture = "bigbars.png" >
|
||||
<Skin name = "MW_BigTrack_Blue" size = "2 14" texture = "bigbars.png" >
|
||||
<BasisSkin type="MainSkin" offset = "0 0 2 14" align = "ALIGN_STRETCH">
|
||||
<State name="normal" offset = "0 14 2 14"/>
|
||||
</BasisSkin>
|
||||
</Skin>
|
||||
<Skin name = "MW_BigTrack_Blue" size = "2 14" texture = "bigbars.png" >
|
||||
<Skin name = "MW_BigTrack_Green" size = "2 14" texture = "bigbars.png" >
|
||||
<BasisSkin type="MainSkin" offset = "0 0 2 14" align = "ALIGN_STRETCH">
|
||||
<State name="normal" offset = "0 28 2 14"/>
|
||||
</BasisSkin>
|
||||
|
|
|
@ -20,26 +20,28 @@
|
|||
|
||||
*/
|
||||
|
||||
/*
|
||||
const int CELL_WIDTH = 8192;
|
||||
|
||||
#include "cpp_baseland.cpp"
|
||||
#include "cpp_mesh.cpp"
|
||||
//#include "cpp_mesh.cpp"
|
||||
|
||||
BaseLand *g_baseLand;
|
||||
SceneNode *g_rootTerrainNode;
|
||||
|
||||
class TerrainFrameListener : public FrameListener
|
||||
{
|
||||
protected:
|
||||
bool frameEnded(const FrameEvent& evt)
|
||||
{
|
||||
g_rootQuad->update();
|
||||
//g_rootQuad->update();
|
||||
g_baseLand->update();
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
||||
extern "C" void d_superman();
|
||||
*/
|
||||
|
||||
extern "C"
|
||||
{
|
||||
void d_superman();
|
||||
|
||||
SceneNode* terr_createChildNode(float relX, float relY,
|
||||
SceneNode *parent)
|
||||
|
@ -64,22 +66,25 @@ extern "C"
|
|||
// Set up the rendering system
|
||||
void terr_setupRendering()
|
||||
{
|
||||
// Create a root scene node first. The 'root' node is rotated to
|
||||
// match the MW coordinate system
|
||||
g_rootTerrainNode = root->createChildSceneNode("TERRAIN_ROOT");
|
||||
|
||||
// Add the base land. This is the ground beneath the actual
|
||||
// terrain mesh that makes the terrain look infinite.
|
||||
g_baseLand = new BaseLand(g_rootTerrainNode);
|
||||
|
||||
/*
|
||||
// Add the terrain directory
|
||||
ResourceGroupManager::getSingleton().
|
||||
addResourceLocation(g_cacheDir, "FileSystem", "General");
|
||||
|
||||
// Create a root scene node first. The 'root' node is rotated to
|
||||
// match the MW coordinate system
|
||||
g_rootTerrainNode = root->createChildSceneNode("TERRAIN_ROOT");
|
||||
|
||||
// Open the archive file
|
||||
g_archive.openFile(g_cacheFile);
|
||||
|
||||
// Create the root quad.
|
||||
g_rootQuad = new Quad();
|
||||
|
||||
g_baseLand = new BaseLand(g_rootTerrainNode);
|
||||
*/
|
||||
|
||||
// Add the frame listener
|
||||
mRoot->addFrameListener(new TerrainFrameListener);
|
||||
|
@ -88,6 +93,5 @@ extern "C"
|
|||
mCamera->setFarClipDistance(32*CELL_WIDTH);
|
||||
//ogre_setFog(0.7, 0.7, 0.7, 200, 32*CELL_WIDTH);
|
||||
d_superman();
|
||||
*/
|
||||
}
|
||||
}
|
||||
|
|
|
@ -33,5 +33,5 @@ void initTerrain(bool doGen)
|
|||
generate();
|
||||
*/
|
||||
|
||||
//terr_setupRendering();
|
||||
terr_setupRendering();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue