feat(ui): add CSimpleSlider::OnLayerHide

This commit is contained in:
fallenoak 2025-11-29 23:24:42 -06:00
parent 6ab79e612e
commit c2e1bd19b8
No known key found for this signature in database
GPG Key ID: 7628F8E61AEA070D
2 changed files with 7 additions and 0 deletions

View File

@ -127,6 +127,12 @@ void CSimpleSlider::LoadXML(XMLNode* node, CStatus* status) {
}
}
void CSimpleSlider::OnLayerHide() {
this->m_buttonDown = 0;
this->CSimpleFrame::OnLayerHide();
}
void CSimpleSlider::OnLayerUpdate(float elapsedSec) {
this->CSimpleFrame::OnLayerUpdate(elapsedSec);

View File

@ -33,6 +33,7 @@ class CSimpleSlider : public CSimpleFrame {
virtual bool IsA(int32_t type);
virtual int32_t GetScriptMetaTable();
virtual void LoadXML(XMLNode* node, CStatus* status);
virtual void OnLayerHide();
virtual void OnLayerUpdate(float elapsedSec);
// Member functions