Load specifying a metrics group
This commit is contained in:
@@ -6,6 +6,7 @@
|
|||||||
|
|
||||||
#include "ActorFrame.h"
|
#include "ActorFrame.h"
|
||||||
#include "OptionIcon.h"
|
#include "OptionIcon.h"
|
||||||
|
#include "ThemeMetric.h"
|
||||||
class PlayerOptions;
|
class PlayerOptions;
|
||||||
struct lua_State;
|
struct lua_State;
|
||||||
|
|
||||||
@@ -15,10 +16,12 @@ public:
|
|||||||
OptionIconRow();
|
OptionIconRow();
|
||||||
~OptionIconRow();
|
~OptionIconRow();
|
||||||
|
|
||||||
void Load();
|
void Load( const RString &sMetricsGroup, PlayerNumber pn );
|
||||||
virtual void LoadFromNode( const XNode* pNode );
|
|
||||||
virtual OptionIconRow *Copy() const;
|
virtual OptionIconRow *Copy() const;
|
||||||
void SetFromGameState( PlayerNumber pn );
|
void SetFromGameState();
|
||||||
|
|
||||||
|
virtual void HandleMessage( const Message &msg );
|
||||||
|
|
||||||
//
|
//
|
||||||
// Commands
|
// Commands
|
||||||
@@ -26,6 +29,13 @@ public:
|
|||||||
virtual void PushSelf( lua_State *L );
|
virtual void PushSelf( lua_State *L );
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
RString m_sMetricsGroup;
|
||||||
|
PlayerNumber m_pn;
|
||||||
|
|
||||||
|
ThemeMetric<float> SPACING_X;
|
||||||
|
ThemeMetric<float> SPACING_Y;
|
||||||
|
ThemeMetric<int> NUM_OPTION_ICONS;
|
||||||
|
|
||||||
vector<OptionIcon*> m_vpOptionIcon;
|
vector<OptionIcon*> m_vpOptionIcon;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user