mirror of
https://github.com/whoahq/whoa.git
synced 2026-11-08 15:49:54 +03:00
feat(ui): add CGTooltip::GetObjectType
This commit is contained in:
2 files changed
+14
No files matched your search
@@ -1,11 +1,21 @@
|
||||
#include "ui/game/CGTooltip.hpp"
|
||||
|
||||
int32_t CGTooltip::s_objectType;
|
||||
|
||||
CSimpleFrame* CGTooltip::Create(CSimpleFrame* parent) {
|
||||
// TODO use CDataAllocator
|
||||
|
||||
return STORM_NEW(CGTooltip)(parent);
|
||||
}
|
||||
|
||||
int32_t CGTooltip::GetObjectType() {
|
||||
if (!CGTooltip::s_objectType) {
|
||||
CGTooltip::s_objectType = ++FrameScript_Object::s_objectTypes;
|
||||
}
|
||||
|
||||
return CGTooltip::s_objectType;
|
||||
}
|
||||
|
||||
CGTooltip::CGTooltip(CSimpleFrame* parent) : CSimpleFrame(parent) {
|
||||
// TODO
|
||||
}
|
||||
@@ -5,8 +5,12 @@
|
||||
|
||||
class CGTooltip : public CSimpleFrame {
|
||||
public:
|
||||
// Static variables
|
||||
static int32_t s_objectType;
|
||||
|
||||
// Static functions
|
||||
static CSimpleFrame* Create(CSimpleFrame* parent);
|
||||
static int32_t GetObjectType();
|
||||
|
||||
// Member variables
|
||||
// TODO
|
||||
|
||||
Reference in new issue
Block a user