mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-10 07:47:42 +00:00
Various bug fixes and CAnimTree implementations
This commit is contained in:
@@ -195,10 +195,11 @@ bool CGuiTableGroup::PreDecrement()
|
||||
|
||||
void CGuiTableGroup::DoDecrement()
|
||||
{
|
||||
int oldSel = xc4_userSelection;
|
||||
if (!PreDecrement())
|
||||
return;
|
||||
if (x104_doMenuSelChange)
|
||||
x104_doMenuSelChange(this, xc4_userSelection);
|
||||
x104_doMenuSelChange(this, oldSel);
|
||||
}
|
||||
|
||||
bool CGuiTableGroup::PreIncrement()
|
||||
@@ -234,10 +235,11 @@ bool CGuiTableGroup::PreIncrement()
|
||||
|
||||
void CGuiTableGroup::DoIncrement()
|
||||
{
|
||||
int oldSel = xc4_userSelection;
|
||||
if (!PreIncrement())
|
||||
return;
|
||||
if (x104_doMenuSelChange)
|
||||
x104_doMenuSelChange(this, xc4_userSelection);
|
||||
x104_doMenuSelChange(this, oldSel);
|
||||
}
|
||||
|
||||
std::shared_ptr<CGuiWidget> CGuiTableGroup::Create(CGuiFrame* frame, CInputStream& in, CSimplePool* sp)
|
||||
|
||||
Reference in New Issue
Block a user