Fix rendering current entity

This commit is contained in:
SamratGhale
2026-03-28 06:42:23 +05:45
parent be8c936e33
commit 3eb0c2555f
4 changed files with 28 additions and 9 deletions
+6 -2
View File
@@ -190,9 +190,13 @@ interface_all :: proc($E: typeid, interface: ^interface_state, game_data : $G) -
if mu.begin_window(&state.mu_ctx, "B2d Interface", {1630, 170, 250, 450})
{
{
if interface.edit_mode == .ENTITY
{
if .ACTIVE in mu.header(&state.mu_ctx, "Entity", {.AUTO_SIZE})
}
{
if interface_entity(interface) do ret = true
}
}
mu.end_window(&state.mu_ctx)
}