diff options
author | Fox Caminiti <fox@foxcam.net> | 2022-09-29 20:58:54 -0400 |
---|---|---|
committer | Fox Caminiti <fox@foxcam.net> | 2022-09-29 20:58:54 -0400 |
commit | 3b8bd135662d99506e8a2ebb30b0d46b57861f74 (patch) | |
tree | 533884d6ada9a14e711fa70f2e4526f247cd6034 /main.h | |
parent | 02d7df95cfc2402f0488f66f1dc5fa84cae00934 (diff) |
rewritten graph ui start
Diffstat (limited to 'main.h')
-rw-r--r-- | main.h | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -483,7 +483,16 @@ struct ui_graph { struct ui { real32 TimelineSplit = 600; + real32 GraphPropsSplit = 200; real32 TimelineZoom; + real32 GraphZoom = 30; + + // Under 1 is zoomed in! + real32 TimelinePercentZoomed = 1.0f; + real32 TimelinePercentOffset = 0.0f; + + real32 Y_TimelinePercentZoomed = 1.0f; + real32 Y_TimelinePercentOffset = 0.0f; // Note that I don't use "zoom" to mean the scale in relation to the // original (i.e. default = 1.0f); it's the literal screen size in pixels @@ -499,6 +508,10 @@ struct ui real32 ScrollXOffset; real32 ScrollYOffset; + // Custom scrolling for the timeline, as ImGui's didn't work well + real32 G_ScrollXOffset; + real32 G_ScrollYOffset; + // NOTE(fox): Keeping track of mouse delta myself since the ImGui threshold // dragging API doesn't let you do things like subtract the delta easily. real32 DraggingKeyframeThreshold; |