diff options
| author | tech kaczynski <tk@techkaczynski.dev> | 2026-10-22 13:27:04 +1000 |
|---|---|---|
| committer | tech kaczynski <tk@techkaczynski.dev> | 2026-10-22 13:27:04 +1000 |
| commit | 038cb9646b920936f8f497f9a4ee5b873853424e (patch) | |
| tree | a5df82a2e705c7f671ac9f2450dc88a68bbd25b0 /editor.h | |
| parent | f5259b6c44b5902a0ca35de113fe16b9275ea13e (diff) | |
started work on command menu, added time of day editor.
Diffstat (limited to 'editor.h')
| -rw-r--r-- | editor.h | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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; |
