mirror of
https://github.com/Insality/druid
synced 2025-09-27 10:02:19 +02:00
Remove register and update examples
This commit is contained in:
@@ -2,8 +2,6 @@ local panthera = require("panthera.panthera")
|
||||
local component = require("druid.component")
|
||||
local helper = require("druid.helper")
|
||||
local event = require("event.event")
|
||||
local lang_text = require("druid.extended.lang_text")
|
||||
local rich_text = require("druid.custom.rich_text.rich_text")
|
||||
|
||||
local character_animation_blend = require("example.examples.panthera.animation_blend.character_animation_blend")
|
||||
|
||||
@@ -20,7 +18,7 @@ function M:init(template, nodes)
|
||||
|
||||
self.root = self:get_node("root")
|
||||
self.root_size = gui.get_size(self.root)
|
||||
self.druid:new(lang_text, "text_hint", "ui_example_panthera_animation_blend_hint")
|
||||
self.druid:new_lang_text("text_hint", "ui_example_panthera_animation_blend_hint")
|
||||
|
||||
self.animation_idle = panthera.create_gui(character_animation_blend, self:get_template(), nodes)
|
||||
self.animation_vertical = panthera.create_gui(character_animation_blend, self:get_template(), nodes)
|
||||
@@ -59,7 +57,7 @@ end
|
||||
|
||||
|
||||
function M:setup_rich_text()
|
||||
self.rich_text = self.druid:new(rich_text, "rich_text_kenney", "Character assets by <color=865BD9><link>Kenney</link></color>")
|
||||
self.rich_text = self.druid:new_rich_text("rich_text_kenney", "Character assets by <color=865BD9><link>Kenney</link></color>")
|
||||
|
||||
local tagged = self.rich_text:tagged("link")
|
||||
for index = 1, #tagged do
|
||||
|
Reference in New Issue
Block a user