mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 00:02:45 +03:00
feat(ui): add CSimpleSlider::UnregisterRegion
This commit is contained in:
parent
333b8eec36
commit
bbb58c978f
@ -326,3 +326,11 @@ float CSimpleSlider::Sub96BC10(float value) {
|
||||
// TODO
|
||||
return value;
|
||||
}
|
||||
|
||||
void CSimpleSlider::UnregisterRegion(CSimpleRegion* region) {
|
||||
if (this->m_thumbTexture == region) {
|
||||
this->m_thumbTexture = nullptr;
|
||||
}
|
||||
|
||||
this->CSimpleFrame::UnregisterRegion(region);
|
||||
}
|
||||
|
||||
@ -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 UnregisterRegion(CSimpleRegion* region);
|
||||
virtual void OnLayerHide();
|
||||
virtual void OnLayerUpdate(float elapsedSec);
|
||||
virtual int32_t OnLayerTrackUpdate(const CMouseEvent& evt);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user