summaryrefslogtreecommitdiff
path: root/xmake/core/ui/dialog.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2018-01-12 22:38:33 +0800
committerruki <[email protected]>2018-01-12 09:51:23 +0800
commit5d8d758fa2fb4a8e9691dae010b97725c6b736c0 (patch)
treef35203ae41c4fd6fac4ac82e7c1c142480f749a9 /xmake/core/ui/dialog.lua
parent31f736c3440041b3ac060cd4519807d82a4d0e19 (diff)
add text dialog
Diffstat (limited to 'xmake/core/ui/dialog.lua')
-rw-r--r--xmake/core/ui/dialog.lua11
1 files changed, 0 insertions, 11 deletions
diff --git a/xmake/core/ui/dialog.lua b/xmake/core/ui/dialog.lua
index 26de856dd..4ab34b322 100644
--- a/xmake/core/ui/dialog.lua
+++ b/xmake/core/ui/dialog.lua
@@ -40,21 +40,10 @@ function dialog:init(name, bounds, title)
-- init window
window.init(self, name, bounds, title, true)
- -- insert text
- self:panel():insert(self:text())
-
-- insert buttons
self:panel():insert(self:buttons())
end
--- get text
-function dialog:text()
- if not self._TEXT then
- self._TEXT = label:new("dialog.text", rect:new(0, 0, self:panel():width(), self:panel():height() - 1))
- end
- return self._TEXT
-end
-
-- get buttons
function dialog:buttons()
if not self._BUTTONS then