diff --git a/armorforge/sources/base_ext.ts b/armorforge/sources/base_ext.ts index 27b015e94..033a02476 100644 --- a/armorforge/sources/base_ext.ts +++ b/armorforge/sources/base_ext.ts @@ -15,6 +15,8 @@ function base_ext_render() { } function base_ext_init_config(raw: config_t) { + raw.window_w = 1920; + raw.window_h = 1080; raw.layer_res = texture_res_t.RES8192; raw.undo_steps = 1; } diff --git a/armorforge/sources/tab_scene.ts b/armorforge/sources/tab_scene.ts index 9d561bd04..ba6ed23c5 100644 --- a/armorforge/sources/tab_scene.ts +++ b/armorforge/sources/tab_scene.ts @@ -106,12 +106,7 @@ function tab_scene_draw(htab: ui_handle_t) { } ui_end_sticky(); - let outliner_handle: ui_handle_t = ui_handle(__ID__); - if (outliner_handle.init) { - outliner_handle.selected = true; - } - - if (ui_panel(outliner_handle, "Outliner", true, false)) { + { ui._y -= ui_ELEMENT_OFFSET(ui); tab_scene_line_counter = 0; @@ -299,14 +294,5 @@ function tab_scene_draw(htab: ui_handle_t) { } } } - - if (ui_button("Play")) { - sim_play(); - - context_raw.selected_object = scene_camera.base; - } - if (ui_button("Stop")) { - sim_stop(); - } } } diff --git a/armorforge/sources/ui_header_ext.ts b/armorforge/sources/ui_header_ext.ts index 20d7c0ef4..c59375df4 100644 --- a/armorforge/sources/ui_header_ext.ts +++ b/armorforge/sources/ui_header_ext.ts @@ -2,5 +2,16 @@ function ui_header_draw_tool_properties(ui: ui_t) { if (context_raw.tool == workspace_tool_t.GIZMO) { + if (!sim_running && ui_button("Play")) { + sim_play(); + context_raw.selected_object = scene_camera.base; + } + + if (sim_running && ui_button("Stop")) { + sim_stop(); + } + + let h_record: ui_handle_t = ui_handle(__ID__); + let record: bool = ui_check(h_record, tr("Record")); } }