@@ -51,36 +51,36 @@ local widgets = nil
51
51
local theme = nil
52
52
53
53
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 ()
77
77
end
78
78
79
79
function update (delta )
80
- cls (Color .new (255 , 255 , 255 ))
80
+ cls (Color .new (255 , 255 , 255 ))
81
81
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 )
85
85
end
86
86
```
0 commit comments