mirror of
https://github.com/Insality/druid.git
synced 2025-11-26 19:00:50 +01:00
Update with latest libs
This commit is contained in:
@@ -1,24 +1,9 @@
|
||||
local lang = require("lang.lang")
|
||||
local druid = require("druid.druid")
|
||||
|
||||
local window_confirmation = require("example.examples.windows.window_confirmation.window_confirmation")
|
||||
|
||||
|
||||
local function debug_stub(self)
|
||||
if msg.url().socket ~= hash("window_confirmation") then
|
||||
return
|
||||
end
|
||||
|
||||
lang.init()
|
||||
druid.set_text_function(lang.txp)
|
||||
end
|
||||
|
||||
|
||||
function init(self)
|
||||
debug_stub(self)
|
||||
|
||||
-- Using component instead put all inside gui_script to
|
||||
-- allow use it as example and as separate collection
|
||||
self.druid = druid.new(self)
|
||||
self.druid:new(window_confirmation)
|
||||
end
|
||||
@@ -41,4 +26,4 @@ end
|
||||
|
||||
function on_input(self, action_id, action)
|
||||
return self.druid:on_input(action_id, action)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -4,21 +4,7 @@ local druid = require("druid.druid")
|
||||
local window_info = require("example.examples.windows.window_info.window_info")
|
||||
|
||||
|
||||
local function debug_stub(self)
|
||||
if msg.url().socket ~= hash("window_info") then
|
||||
return
|
||||
end
|
||||
|
||||
lang.init()
|
||||
druid.set_text_function(lang.txp)
|
||||
end
|
||||
|
||||
|
||||
function init(self)
|
||||
debug_stub(self)
|
||||
|
||||
-- Using component instead put all inside gui_script to
|
||||
-- allow use it as example and as separate collection
|
||||
self.druid = druid.new(self)
|
||||
self.druid:new(window_info)
|
||||
end
|
||||
@@ -41,4 +27,4 @@ end
|
||||
|
||||
function on_input(self, action_id, action)
|
||||
return self.druid:on_input(action_id, action)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1,24 +1,8 @@
|
||||
local lang = require("lang.lang")
|
||||
local druid = require("druid.druid")
|
||||
|
||||
local window_language = require("example.examples.windows.window_language.window_language")
|
||||
|
||||
|
||||
local function debug_stub(self)
|
||||
if msg.url().socket ~= hash("window_language") then
|
||||
return
|
||||
end
|
||||
|
||||
lang.init()
|
||||
druid.set_text_function(lang.txp)
|
||||
end
|
||||
|
||||
|
||||
function init(self)
|
||||
debug_stub(self)
|
||||
|
||||
-- Using component instead put all inside gui_script to
|
||||
-- allow use it as example and as separate collection
|
||||
self.druid = druid.new(self)
|
||||
self.druid:new(window_language)
|
||||
end
|
||||
@@ -41,4 +25,4 @@ end
|
||||
|
||||
function on_input(self, action_id, action)
|
||||
return self.druid:on_input(action_id, action)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user