Step, reset, tick_timer proc and struct cleanup.

Added a tick_timer proc so the code handles the step neatly.
Added some new struct fields to accomodate this and moved danglings
struct defs into the simulator definition.
This commit is contained in:
2026-06-19 12:33:47 +02:00
parent e9cf387640
commit 0b5006f985
5 changed files with 55 additions and 28 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ gui_status_bar :: proc(rect: rl.Rectangle, sim: ^Simulator) {
cursor: f32 = rect.x + PADDING_X
cy := rect.y + rect.height * 0.5
if sim.running && !sim.paused {
if !sim.paused {
status_icon(&cursor, cy, rl.GREEN, .CIRCLE, "Running", sim.font)
} else {
status_icon(&cursor, cy, rl.RED, .SQUARE, "Paused", sim.font)