Update Docs

This commit is contained in:
Insality
2025-04-16 01:01:00 +03:00
parent 9e2a14c6dd
commit d1d54896fb
13 changed files with 530 additions and 5 deletions

View File

@@ -0,0 +1,27 @@
local panthera = require("panthera.panthera")
local animation = require("example.examples.widgets.go_widgets.go_bindings_panthera")
local druid = require("druid.druid")
local widget = require("example.examples.widgets.go_widgets.go_widget")
function init(self)
local gui_url = msg.url(nil, nil, "go_widget")
self.go_widget = druid.get_widget(widget, gui_url)
self.go_widget:play_animation()
self.go_widget:set_position(go.get_position())
self.animation = panthera.create_go(animation)
panthera.play(self.animation, "default", {
is_loop = true,
speed = 2,
})
msg.post(".", "acquire_input_focus")
end
function update(self, dt)
self.go_widget:set_position(go.get_position())
end