2026-03-01 12:16:08 +08:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "UIControl_Base.h"
|
|
|
|
|
|
|
|
|
|
class UIControl_Button : public UIControl_Base
|
|
|
|
|
{
|
|
|
|
|
private:
|
|
|
|
|
IggyName m_funcEnableButton;
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
UIControl_Button();
|
|
|
|
|
|
|
|
|
|
virtual bool setupControl(UIScene *scene, IggyValuePath *parent, const string &controlName);
|
|
|
|
|
|
2026-03-03 03:04:10 +08:00
|
|
|
void init(UIString label, int id);
|
|
|
|
|
//void init(const wstring &label, int id) { init(UIString::CONSTANT(label), id); }
|
|
|
|
|
|
2026-03-01 12:16:08 +08:00
|
|
|
virtual void ReInit();
|
|
|
|
|
|
|
|
|
|
void setEnable(bool enable);
|
|
|
|
|
};
|