6d706a34cd
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.
32 lines
889 B
Odin
32 lines
889 B
Odin
package simulator
|
|
|
|
import rl "vendor:raylib"
|
|
|
|
gui_bottom_panel :: proc(rect: rl.Rectangle, sim: ^Simulator) {
|
|
rl.DrawRectangleLinesEx(rect, 1, rl.GRAY)
|
|
|
|
memory_view_bounds := rl.Rectangle {
|
|
x = rect.x + PADDING_X,
|
|
y = rect.y + PADDING_Y,
|
|
width = (rect.width - (PADDING_X * 2)) / 2,
|
|
height = rect.height - (PADDING_Y * 2),
|
|
}
|
|
gui_tab_memory(memory_view_bounds, sim)
|
|
|
|
disasm_view_bounds := rl.Rectangle {
|
|
x = rect.x + memory_view_bounds.width + PADDING_X,
|
|
y = rect.y + PADDING_Y,
|
|
width = ((rect.width - (PADDING_X * 2)) / 2) / 2,
|
|
height = rect.height - (PADDING_Y * 2),
|
|
}
|
|
gui_tab_disasm(disasm_view_bounds, sim)
|
|
|
|
stack_view_bounds := rl.Rectangle {
|
|
x = disasm_view_bounds.x + disasm_view_bounds.width,
|
|
y = rect.y + PADDING_Y,
|
|
width = ((rect.width - (PADDING_X * 2)) / 2) / 2,
|
|
height = rect.height - (PADDING_Y * 2),
|
|
}
|
|
gui_tab_stack(stack_view_bounds, sim)
|
|
}
|