mirror of
https://github.com/Insality/druid.git
synced 2025-09-27 10:02:18 +02:00
Update
This commit is contained in:
@@ -11,9 +11,9 @@ local M = {}
|
||||
|
||||
|
||||
function M:init()
|
||||
self.checkbox_1 = self.druid:new(checkbox, "checkbox_1")
|
||||
self.checkbox_2 = self.druid:new(checkbox, "checkbox_2")
|
||||
self.checkbox_3 = self.druid:new(checkbox, "checkbox_3")
|
||||
self.checkbox_1 = self.druid:new_widget(checkbox, "checkbox_1")
|
||||
self.checkbox_2 = self.druid:new_widget(checkbox, "checkbox_2")
|
||||
self.checkbox_3 = self.druid:new_widget(checkbox, "checkbox_3")
|
||||
|
||||
self.checkbox_1.on_state_changed:subscribe(self.on_checkbox_click, self)
|
||||
self.checkbox_2.on_state_changed:subscribe(self.on_checkbox_click, self)
|
||||
|
@@ -12,9 +12,9 @@ local M = {}
|
||||
function M:init()
|
||||
self.state = {}
|
||||
self.checkboxes = {
|
||||
self.druid:new(checkbox, "checkbox_1"),
|
||||
self.druid:new(checkbox, "checkbox_2"),
|
||||
self.druid:new(checkbox, "checkbox_3")
|
||||
self.druid:new_widget(checkbox, "checkbox_1"),
|
||||
self.druid:new_widget(checkbox, "checkbox_2"),
|
||||
self.druid:new_widget(checkbox, "checkbox_3")
|
||||
}
|
||||
|
||||
for i = 1, #self.checkboxes do
|
||||
|
Reference in New Issue
Block a user