aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorne_mene <[email protected]>2026-04-02 12:30:50 +0200
committerne_mene <[email protected]>2026-04-02 12:30:50 +0200
commit474f1fcc62c67667d83895cb7cd34fa30c166a0d (patch)
tree5d156e02987ad5cb15f3dafcd5cf2fbf4b898bea
parentedb6d24b0d4f4aeb513b6d77e53113325622fd71 (diff)
speck editor: layout fix, wider
-rw-r--r--res/speck/test.speck.lua2
-rw-r--r--src/scenes/speck_editor.lua3
2 files changed, 3 insertions, 2 deletions
diff --git a/res/speck/test.speck.lua b/res/speck/test.speck.lua
index 925d719..bd20cee 100644
--- a/res/speck/test.speck.lua
+++ b/res/speck/test.speck.lua
@@ -1 +1 @@
-return {["forcex"]=0,["forcey"]=502.1,["damping"]=0,["initial_velx_min"]=0,["initial_velx_max"]=140.3,["initial_vely_min"]=0,["initial_vely_max"]=0,["spawn_width"]=100,["spawn_height"]=100,["interval"]=0.05,["texture_path"]="res/img/speck.png",["lifetime_max"]=0.6,["lifetime_min"]=0.3,["gradient"]="res/img/test_gradient.png",["spread"]=360,["spawn_shape"]="Point",["spawn_amount_min"]=3,["spawn_amount_max"]=4,["scale_curve"]="Lerp",["scale_start_min"]=0.8,["scale_start_max"]=1.3,["scale_end_min"]=0,["scale_end_max"]=0,} \ No newline at end of file
+return {["interval"]=0.05,["texture_path"]="res/img/speck.png",["lifetime_max"]=0.6,["lifetime_min"]=0.3,["gradient"]="res/img/test_gradient.png",["spread"]=360,["spawn_shape"]="Point",["spawn_amount_min"]=3,["spawn_amount_max"]=4,["scale_curve"]="Lerp",["scale_start_min"]=0.8,["scale_start_max"]=1.3,["scale_end_min"]=0,["scale_end_max"]=0,["forcex"]=0,["forcey"]=502.1,["damping"]=0,["initial_velx_min"]=0,["initial_velx_max"]=140.3,["initial_vely_min"]=0,["initial_vely_max"]=0,["spawn_width"]=100,["spawn_height"]=100,} \ No newline at end of file
diff --git a/src/scenes/speck_editor.lua b/src/scenes/speck_editor.lua
index 309389c..573914e 100644
--- a/src/scenes/speck_editor.lua
+++ b/src/scenes/speck_editor.lua
@@ -54,6 +54,7 @@ local PROPERTY_TYPES = {
im.layout({0.25, 1})
im.text(name)
im.text(value)
+ im.layout()
return value
end,
}
@@ -65,7 +66,7 @@ end
local function speck_editor_ui_sys(editor)
local system = editor.speck_sys
- im.begin_window("Speck Editor", 5, 5, 256, 1024, {})
+ im.begin_window("Speck Editor", 5, 5, 400, 1024, {})
im.text("Properties:")
for _, prop in ipairs(SPECK_EXPORTED_ARGS) do
local func = PROPERTY_TYPES[type(system[prop])]