diff options
| author | ruki <[email protected]> | 2018-01-16 00:30:52 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2018-01-15 21:05:13 +0800 |
| commit | af73bd6d7c07a97d9f02f3a8dc67754ac5c68f23 (patch) | |
| tree | d3db60d43632effe12af4e5dc9e733a1ef059065 /tests/ui/dialog.lua | |
| parent | f0cd6845f16de9b6b55925b31e68114c01be2b18 (diff) | |
fix border.draw()
Diffstat (limited to 'tests/ui/dialog.lua')
| -rw-r--r-- | tests/ui/dialog.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ui/dialog.lua b/tests/ui/dialog.lua index 443a1ef4e..6d9c85d0a 100644 --- a/tests/ui/dialog.lua +++ b/tests/ui/dialog.lua @@ -57,8 +57,8 @@ function demo:init() local dialog_hello = textdialog:new("dialog.hello", rect {0, 0, 50, 8}):background_set(dialog_main:frame():background()) dialog_hello:frame():background_set("cyan") dialog_hello:text():text_set("hello xmake! (http://xmake.io)\nA cross-platform build utility based on Lua"):textattr_set("red") - dialog_hello:button_add("yes", "< Yes >", "cm_yes") - dialog_hello:button_add("no", "< No >", "cm_no") + dialog_hello:button_add("yes", "< Yes >", function (v, e) self:remove(dialog_hello) end) + dialog_hello:button_add("no", "< No >", function (v, e) self:remove(dialog_hello) end) self:insert(dialog_hello, {centerx = true, centery = true}) end |
