extensions/experimental: Remove accidentally added unused test code
This commit is contained in:
parent
24ba299a66
commit
3721ba59f3
@ -23,42 +23,4 @@ function M.safe.unsub_tick(cb)
|
||||
end
|
||||
end
|
||||
|
||||
local polybox = require("buildat/extension/polycode_sandbox")
|
||||
|
||||
--[[
|
||||
local function SomeUI(scene)
|
||||
local self = {}
|
||||
local function on_button_click()
|
||||
log:info("SomeUI: on_button_click()")
|
||||
end
|
||||
self.button = UIButton("Foo", 100, 50)
|
||||
scene:addEventListener(self, on_button_click, UIEvent.CLICK_EVENT)
|
||||
return self
|
||||
end
|
||||
--]]
|
||||
|
||||
--[[
|
||||
class "SomeUI" (UIElement)
|
||||
function SomeUI:SomeUI()
|
||||
UIElement.UIElement(self)
|
||||
self:Resize(100, 60)
|
||||
self:setPosition(640-100, 0)
|
||||
self.button = UIButton("Foo", 100, 30)
|
||||
self:addChild(self.button)
|
||||
end
|
||||
|
||||
function SomeUI:on_button(e)
|
||||
end
|
||||
|
||||
M.things = {}
|
||||
function M.safe.do_stuff(scene2d_safe)
|
||||
CoreServices.getInstance():getConfig():setNumericValue("Polycode", "uiButtonFontSize", 20)
|
||||
local scene2d = polybox.check_type(scene2d_safe, "Scene")
|
||||
scene2d.rootEntity.processInputEvents = true
|
||||
local some_ui = SomeUI()
|
||||
scene2d:addEntity(some_ui)
|
||||
table.insert(M.things, some_ui)
|
||||
end
|
||||
]]
|
||||
|
||||
return M
|
||||
|
Loading…
x
Reference in New Issue
Block a user