From f37f8f9a1588348b042b1df69a805dc614f0fbbc Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 28 Dec 2017 00:30:37 +0800 Subject: improve group select --- xmake/core/ui/button.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'xmake/core/ui/button.lua') diff --git a/xmake/core/ui/button.lua b/xmake/core/ui/button.lua index 22413a83c..92f5f8894 100644 --- a/xmake/core/ui/button.lua +++ b/xmake/core/ui/button.lua @@ -43,5 +43,17 @@ function button:init(name, bounds, text) self:cursor_show(true) end +-- set state +function button:state_set(name, enable) + + -- set label state + label.state_set(self, name, enable) + + -- the focused text and background attribute + if name == "focused" then + -- TODO + end +end + -- return module return button -- cgit v1.3.1