Dropped tab layout, floating info window and clean
No longer using tabs, all info in one bottom panel. Added a floating info window, can open from control bar. Cleanup vertical widths for scroll bars in some panes.
This commit is contained in:
+14
-1
@@ -103,9 +103,13 @@ run_gui :: proc(sim: ^Simulator) {
|
||||
|
||||
// Bottom
|
||||
// ------------------------------------------
|
||||
gui_bottom_tabs(layout.bottom_panel, sim)
|
||||
gui_bottom_panel(layout.bottom_panel, sim)
|
||||
gui_status_bar(layout.status_bar, sim)
|
||||
|
||||
// Info Box
|
||||
// ------------------------------------------
|
||||
gui_info_box(layout.info_box, sim, screen_width, screen_height)
|
||||
|
||||
rl.EndDrawing()
|
||||
}
|
||||
|
||||
@@ -196,5 +200,14 @@ calc_layout :: proc(screen_width: f32, screen_height: f32) -> Layout {
|
||||
width = screen_width,
|
||||
height = STATUS_BAR_H,
|
||||
},
|
||||
|
||||
// ------------------------------------------
|
||||
// Info Box
|
||||
info_box = rl.Rectangle{
|
||||
x = (screen_width / 2 - 200),
|
||||
y = (screen_height / 2 - 200),
|
||||
width = 400,
|
||||
height = 140
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user