From f4c338c63f3456a8eccd56c35e233843687d55be Mon Sep 17 00:00:00 2001 From: chai Date: Fri, 29 Mar 2019 00:43:25 +0800 Subject: *thread --- source/Asura.Editor/widgets/button.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'source/Asura.Editor/widgets/button.h') diff --git a/source/Asura.Editor/widgets/button.h b/source/Asura.Editor/widgets/button.h index 305cd35..14cd041 100644 --- a/source/Asura.Editor/widgets/button.h +++ b/source/Asura.Editor/widgets/button.h @@ -36,6 +36,8 @@ namespace AsuraEditor { public: + LUAX_DECL_FACTORY(Button); + Button(); ~Button(); @@ -50,10 +52,10 @@ namespace AsuraEditor int GetStatus(); void SetImage(int status, AEGraphics::Image* image); - LUAX_DECL_FACTORY(Button); - private: + //------------------------------------------------------------------------------// + LUAX_DECL_ENUM(ButtonStatus); LUAX_DECL_ENUM(ButtonMessage); @@ -61,6 +63,8 @@ namespace AsuraEditor LUAX_DECL_METHOD(_Disconnect); LUAX_DECL_METHOD(_SetImage); + //------------------------------------------------------------------------------// + int mStatus; // 当前状态 Signal mSignals[_BUTTON_MSG_COUNT]; // 3个消息的signal AEGraphics::Image* mImage[_BUTTON_STATUS_COUNT]; // 5种状态的贴图 -- cgit v1.1-26-g67d0