diff options
author | krzys-h <krzys_h@interia.pl> | 2014-07-10 16:25:40 +0200 |
---|---|---|
committer | krzys-h <krzys_h@interia.pl> | 2014-07-10 16:25:40 +0200 |
commit | 106ec014b812c6f5eb93ea30c04b3bba333542dd (patch) | |
tree | 72b2fcf4bdc32ec82d3829fd4cab5185e5f9d61a /src/ui/list.cpp | |
parent | 7b04f673580f0c24aecc103a25c4c4b82da1380f (diff) | |
download | colobot-106ec014b812c6f5eb93ea30c04b3bba333542dd.tar.gz colobot-106ec014b812c6f5eb93ea30c04b3bba333542dd.tar.bz2 colobot-106ec014b812c6f5eb93ea30c04b3bba333542dd.zip |
Fixed texture and script loading
Diffstat (limited to 'src/ui/list.cpp')
-rw-r--r-- | src/ui/list.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ui/list.cpp b/src/ui/list.cpp index b5f7599..bccb435 100644 --- a/src/ui/list.cpp +++ b/src/ui/list.cpp @@ -388,7 +388,7 @@ void CList::Draw() if (m_icon == 0) { - m_engine->SetTexture("textures/interface/button2.png"); + m_engine->SetTexture("interface/button2.png"); m_engine->SetState(Gfx::ENG_RSTATE_NORMAL); uv1.x = 128.0f / 256.0f; @@ -398,7 +398,7 @@ void CList::Draw() } else { - m_engine->SetTexture("textures/interface/button2.png"); + m_engine->SetTexture("interface/button2.png"); m_engine->SetState(Gfx::ENG_RSTATE_NORMAL); uv1.x = 132.0f / 256.0f; @@ -434,7 +434,7 @@ void CList::Draw() dim.y *= 0.4f; pos.y -= dim.y; - m_engine->SetTexture("textures/interface/button2.png"); + m_engine->SetTexture("interface/button2.png"); m_engine->SetState(Gfx::ENG_RSTATE_TTEXTURE_WHITE); // was D3DSTATETTw uv1.x = 120.0f / 256.0f; uv1.y = 64.0f / 256.0f; @@ -509,7 +509,7 @@ void CList::Draw() if ( m_check[i + m_firstLine] ) { - m_engine->SetTexture("textures/interface/button1.png"); + m_engine->SetTexture("interface/button1.png"); m_engine->SetState(Gfx::ENG_RSTATE_NORMAL); uv1.x = 64.0f / 256.0f; uv1.y = 0.0f / 256.0f; @@ -534,7 +534,7 @@ void CList::Draw() } else { - m_engine->SetTexture("textures/interface/button1.png"); + m_engine->SetTexture("interface/button1.png"); m_engine->SetState(Gfx::ENG_RSTATE_TTEXTURE_WHITE); // was D3DSTATETTw if ( i + m_firstLine == m_selectLine ) { |