Add some useful mgems

This commit is contained in:
2026-07-26 19:49:39 +01:00
parent d484db4e84
commit e0994b42c0
6 changed files with 36 additions and 1 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ bg_image1_a = Animation.from(bg_image1)
App.language = :en
App.localize(:en, :btn_text, "Click %{name}!")
text = ElementText.new :btn_text, default_font, 0xFFFF00, {name: "Me"}, position: {x: 50, y: 50}, z: 1, click_mode: :block, alpha: 1
text = ElementText.new :btn_text, default_font, 0xFFFF00, {name: ENV.fetch("name", "me")}, position: {x: 50, y: 50}, z: 1, click_mode: :block, alpha: 1
rect = ElementRect.new 100, 25, 0xFF0000, position: {x: 50, y: 50}, z: 0, rotation: 60, scale: { x: 1, y: 1 }, alpha: 0.8, click_mode: :block