fix up overlay draw order

This commit is contained in:
Glenn Maynard
2005-02-25 01:51:40 +00:00
parent 5a1cf44bc8
commit b31be5e213
2 changed files with 8 additions and 4 deletions
+6 -3
View File
@@ -14,9 +14,12 @@ class LuaReference;
#include "MessageManager.h"
#define DRAW_ORDER_BEFORE_EVERYTHING -100
#define DRAW_ORDER_TRANSITIONS 100
#define DRAW_ORDER_AFTER_EVERYTHING 200
#define DRAW_ORDER_BEFORE_EVERYTHING -200
#define DRAW_ORDER_UNDERLAY -100
// normal screen elements go here
#define DRAW_ORDER_OVERLAY +100
#define DRAW_ORDER_TRANSITIONS +110
#define DRAW_ORDER_AFTER_EVERYTHING +200
class Actor : public IMessageSubscriber
+2 -1
View File
@@ -84,12 +84,13 @@ void ScreenWithMenuElements::Init()
m_sprUnderlay.Load( THEME->GetPathB(m_sName,"underlay") );
m_sprUnderlay->SetName("Underlay");
m_sprUnderlay->SetDrawOrder( DRAW_ORDER_BEFORE_EVERYTHING );
m_sprUnderlay->SetDrawOrder( DRAW_ORDER_UNDERLAY );
SET_XY_AND_ON_COMMAND( m_sprUnderlay );
this->AddChild( m_sprUnderlay );
m_sprOverlay.Load( THEME->GetPathB(m_sName,"overlay") );
m_sprOverlay->SetName("Overlay");
m_sprOverlay->SetDrawOrder( DRAW_ORDER_OVERLAY );
SET_XY_AND_ON_COMMAND( m_sprOverlay );
this->AddChild( m_sprOverlay );