more microui
This commit is contained in:
+4
-3
@@ -103,6 +103,7 @@ interface_get_default :: proc(interface: ^interface_state)
|
||||
}
|
||||
|
||||
/*
|
||||
interface_draw_options :: proc(state: ^engine_state)
|
||||
{
|
||||
debug_draw := &state.debug_draw
|
||||
|
||||
@@ -123,10 +124,11 @@ interface_draw_options :: proc(state: ^engine_state)
|
||||
im.SliderFloat("Rotation", &state.draw.cam.rotation, 0, 360)
|
||||
}
|
||||
*/
|
||||
|
||||
mu_interface_game_mode :: proc(state: ^engine_state, interface: ^interface_state)
|
||||
{
|
||||
if mu.begin_window(&state.mu_ctx, "Edit Mode", {1630, 0, 250, 170})
|
||||
{
|
||||
{
|
||||
for type in EditMode
|
||||
{
|
||||
b : bool = interface.edit_mode == type
|
||||
@@ -187,12 +189,11 @@ interface_all :: proc(interface: ^interface_state) -> bool
|
||||
{
|
||||
|
||||
if mu.begin_window(&state.mu_ctx, "B2d Interface", {1630, 170, 250, 450})
|
||||
{
|
||||
{
|
||||
if .ACTIVE in mu.header(&state.mu_ctx, "Entity", {.AUTO_SIZE})
|
||||
{
|
||||
if interface_entity(interface) do ret = true
|
||||
}
|
||||
}
|
||||
mu.end_window(&state.mu_ctx)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user