aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/scenes/speck_editor.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/scenes/speck_editor.lua b/src/scenes/speck_editor.lua
index 0de0f90..8ed4df9 100644
--- a/src/scenes/speck_editor.lua
+++ b/src/scenes/speck_editor.lua
@@ -69,7 +69,7 @@ local PROPERTY_TYPES = {
end
props[name] = trunc_filename_to_res(files[1])
- end, { defaultname = custom.directory or "" })
+ end, { defaultname = custom.directory or "", attachtowindow = true })
end
end
im.layout()
@@ -101,7 +101,7 @@ local function speck_editor_ui_sys(editor)
editor.filepath = trunc_filename_to_res(files[1])
editor.speck_sys = load_speck_sys_non_cached(editor.filepath)
- end, { defaultname = "res/speck/" })
+ end, { defaultname = "res/speck/", attachtowindow = true })
end
if im.button("Save as") then
@@ -112,7 +112,7 @@ local function speck_editor_ui_sys(editor)
editor.filepath = trunc_filename_to_res(files[1])
save(editor)
- end, { defaultname = "res/speck/" })
+ end, { defaultname = "res/speck/", attachtowindow = true })
end
if im.button("Save") then
save(editor)
@@ -132,7 +132,7 @@ function start_speck_editor()
event_bind(scn.on_ui, "Speck_Editor", speck_editor_ui_sys)
local editor = new_entity()
- add_comp(editor, "Position", SCR_WIDTH / 2, SCR_HEIGHT / 2)
+ add_comp(editor, "Position", 0, 0)
add_comp(editor, "Speck_Editor")
return scn
end