Skip to content

Commit 2397f7c

Browse files
committed
*Updated readme.
1 parent 00e3889 commit 2397f7c

File tree

1 file changed

+27
-27
lines changed

1 file changed

+27
-27
lines changed

README.md

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -51,36 +51,36 @@ local widgets = nil
5151
local theme = nil
5252

5353
function setup()
54-
local P = beGUI.percent -- Alias of percent.
55-
widgets = beGUI.Widget.new()
56-
:put(0, 0)
57-
:resize(P(100), P(100))
58-
:addChild(
59-
beGUI.Label.new('beGUI demo')
60-
:setId('label')
61-
:anchor(0, 0)
62-
:put(10, 10)
63-
:resize(100, 23)
64-
)
65-
:addChild(
66-
beGUI.Button.new('Button')
67-
:setId('button')
68-
:anchor(0, 0)
69-
:put(10, 36)
70-
:resize(100, 23)
71-
:on('clicked', function (sender)
72-
local lbl = widgets:find('label')
73-
lbl:setValue('Clicked ' .. tostring(sender))
74-
end)
75-
)
76-
theme = beTheme.default()
54+
local P = beGUI.percent -- Alias of percent.
55+
widgets = beGUI.Widget.new()
56+
:put(0, 0)
57+
:resize(P(100), P(100))
58+
:addChild(
59+
beGUI.Label.new('beGUI demo')
60+
:setId('label')
61+
:anchor(0, 0)
62+
:put(10, 10)
63+
:resize(100, 23)
64+
)
65+
:addChild(
66+
beGUI.Button.new('Button')
67+
:setId('button')
68+
:anchor(0, 0)
69+
:put(10, 36)
70+
:resize(100, 23)
71+
:on('clicked', function (sender)
72+
local lbl = widgets:find('label')
73+
lbl:setValue('Clicked ' .. tostring(sender))
74+
end)
75+
)
76+
theme = beTheme.default()
7777
end
7878

7979
function update(delta)
80-
cls(Color.new(255, 255, 255))
80+
cls(Color.new(255, 255, 255))
8181

82-
font(theme['font'].resource)
83-
widgets:update(theme, delta)
84-
font(nil)
82+
font(theme['font'].resource)
83+
widgets:update(theme, delta)
84+
font(nil)
8585
end
8686
```

0 commit comments

Comments
 (0)