summaryrefslogtreecommitdiff
path: root/xmake/core/ui/label.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2020-05-07 22:45:25 +0800
committerruki <[email protected]>2020-05-07 10:32:31 +0800
commitca238c29d3e14b0c72787b47588b979356dd9410 (patch)
treeaccec9b30f7b057b9bfbf9cf9e5985d5060232db /xmake/core/ui/label.lua
parent5d22635894f2b19f49441e0671ac0eb1b1da9c17 (diff)
update ui
Diffstat (limited to 'xmake/core/ui/label.lua')
-rw-r--r--xmake/core/ui/label.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/core/ui/label.lua b/xmake/core/ui/label.lua
index 4cb72802d..47c2db0eb 100644
--- a/xmake/core/ui/label.lua
+++ b/xmake/core/ui/label.lua
@@ -42,10 +42,10 @@ function label:init(name, bounds, text)
end
-- draw view
-function label:draw(transparent)
+function label:on_draw(transparent)
-- draw background
- view.draw(self, transparent)
+ view.on_draw(self, transparent)
-- get the text attribute value
local textattr = self:textattr_val()