From 038cb9646b920936f8f497f9a4ee5b873853424e Mon Sep 17 00:00:00 2001 From: tech kaczynski Date: Thu, 22 Oct 2026 13:27:04 +1000 Subject: started work on command menu, added time of day editor. --- editor.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'editor.h') diff --git a/editor.h b/editor.h index d3b3640..a566072 100644 --- a/editor.h +++ b/editor.h @@ -13,6 +13,7 @@ typedef enum { ED_ACTION_RENAME, ED_ACTION_MODEL, ED_ACTION_PHYSICS, + ED_ACTION_TIME, } EditorActionTag; typedef union { @@ -31,6 +32,10 @@ typedef union { char *name; } rename; + struct { + f32 day_cur, day_len; + } time; + ModelCmp model; PhysicsCmp physics; } EditorActionData; @@ -59,6 +64,7 @@ typedef enum { ED_PNL_TYPE_ASSET_PICKER, ED_PNL_TYPE_PHYSICS_ELEMENTS, ED_PNL_TYPE_PHYSICS_PROPERTIES, + ED_PNL_TYPE_TIME, ED_PNL_TYPE_CMD, } EditorPanelType; @@ -91,6 +97,9 @@ typedef struct { CameraInfo scene_cam; bool draw_physics; + f32 time_preview; /* preview phase, 0 inclusive to 1 exclusive */ + bool time_preview_playing; + EditorModeTag mode, prev_mode; EditorInteraction interact; EditorPanelContainer focus; -- cgit v1.2.3