mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-02 16:52:45 +03:00
Compare commits
8 Commits
39e8b26cab
...
7a17d8aff2
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7a17d8aff2 | ||
|
|
f1b8f495b6 | ||
|
|
c2eedc1d47 | ||
|
|
daba2a1ffd | ||
|
|
cded0d86e7 | ||
|
|
4e9ea8f5a1 | ||
|
|
23be35bed2 | ||
|
|
4a102c6ace |
@ -46,6 +46,7 @@ float CGlueMgr::m_aspect;
|
|||||||
bool CGlueMgr::m_authenticated;
|
bool CGlueMgr::m_authenticated;
|
||||||
const CharacterSelectionDisplay* CGlueMgr::m_characterInfo;
|
const CharacterSelectionDisplay* CGlueMgr::m_characterInfo;
|
||||||
int32_t CGlueMgr::m_clientKickReason;
|
int32_t CGlueMgr::m_clientKickReason;
|
||||||
|
int32_t CGlueMgr::m_contestAccepted = 1; // TODO
|
||||||
char CGlueMgr::m_currentScreen[64];
|
char CGlueMgr::m_currentScreen[64];
|
||||||
EffectDeath* CGlueMgr::m_deathEffect;
|
EffectDeath* CGlueMgr::m_deathEffect;
|
||||||
int32_t CGlueMgr::m_disconnectPending;
|
int32_t CGlueMgr::m_disconnectPending;
|
||||||
|
|||||||
@ -41,6 +41,7 @@ class CGlueMgr {
|
|||||||
static bool m_authenticated;
|
static bool m_authenticated;
|
||||||
static const CharacterSelectionDisplay* m_characterInfo;
|
static const CharacterSelectionDisplay* m_characterInfo;
|
||||||
static int32_t m_clientKickReason;
|
static int32_t m_clientKickReason;
|
||||||
|
static int32_t m_contestAccepted;
|
||||||
static char m_currentScreen[];
|
static char m_currentScreen[];
|
||||||
static EffectDeath* m_deathEffect;
|
static EffectDeath* m_deathEffect;
|
||||||
static int32_t m_disconnectPending;
|
static int32_t m_disconnectPending;
|
||||||
|
|||||||
@ -222,7 +222,14 @@ int32_t Script_ShowContestNotice(lua_State* L) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
int32_t Script_ContestAccepted(lua_State* L) {
|
int32_t Script_ContestAccepted(lua_State* L) {
|
||||||
WHOA_UNIMPLEMENTED(0);
|
if (CGlueMgr::m_contestAccepted) {
|
||||||
|
lua_pushnumber(L, 1.0);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
lua_pushnil(L);
|
||||||
|
}
|
||||||
|
|
||||||
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
int32_t Script_AcceptContest(lua_State* L) {
|
int32_t Script_AcceptContest(lua_State* L) {
|
||||||
|
|||||||
@ -64,11 +64,27 @@ CSimpleFrame::CSimpleFrame(CSimpleFrame* parent) : CScriptRegion() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
CSimpleFrame::~CSimpleFrame() {
|
CSimpleFrame::~CSimpleFrame() {
|
||||||
// TODO
|
|
||||||
|
|
||||||
this->m_intAC = 3;
|
this->m_intAC = 3;
|
||||||
|
|
||||||
this->m_top->UnregisterFrame(this);
|
this->m_top->UnregisterFrame(this);
|
||||||
|
this->m_top = nullptr;
|
||||||
|
|
||||||
|
if (this->m_titleRegion) {
|
||||||
|
delete this->m_titleRegion;
|
||||||
|
}
|
||||||
|
|
||||||
|
for (int32_t layer = 0; layer < NUM_SIMPLEFRAME_DRAWLAYERS; layer++) {
|
||||||
|
this->m_drawlayers[layer].UnlinkAll();
|
||||||
|
|
||||||
|
if (this->m_batch[layer]) {
|
||||||
|
delete this->m_batch[layer];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
while (auto region = this->m_regions.Head()) {
|
||||||
|
this->m_regions.UnlinkNode(region);
|
||||||
|
delete region;
|
||||||
|
}
|
||||||
|
|
||||||
// TODO
|
// TODO
|
||||||
}
|
}
|
||||||
|
|||||||
@ -400,6 +400,18 @@ CSimpleTop::CSimpleTop() : CLayoutFrame() {
|
|||||||
CSimpleTop::~CSimpleTop() {
|
CSimpleTop::~CSimpleTop() {
|
||||||
// TODO
|
// TODO
|
||||||
|
|
||||||
|
while (auto frame = this->m_frames.Head()) {
|
||||||
|
this->m_frames.UnlinkNode(frame);
|
||||||
|
delete frame;
|
||||||
|
}
|
||||||
|
|
||||||
|
for (auto& strata : this->m_strata) {
|
||||||
|
delete strata;
|
||||||
|
strata = nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
|
// TODO
|
||||||
|
|
||||||
this->DisableEvents();
|
this->DisableEvents();
|
||||||
|
|
||||||
HandleClose(this->m_screenLayer);
|
HandleClose(this->m_screenLayer);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user