Change Naming Convention, add scroll to microui
This commit is contained in:
@@ -62,7 +62,7 @@ interface_body_def_editor :: proc(def: ^engine_entity_def)
|
||||
}
|
||||
*/
|
||||
|
||||
mu_interface_body_def_editor :: proc(interface: ^interface_state, def : ^engine_entity_def)
|
||||
mu_interface_body_def_editor :: proc(interface: ^Interface_State, def : ^Engine_Entity_Def)
|
||||
{
|
||||
|
||||
ctx := &interface.state.mu_ctx
|
||||
@@ -170,7 +170,7 @@ interface_edit_static_index :: proc(interface:^interface_state, def: ^engine_ent
|
||||
}
|
||||
*/
|
||||
|
||||
mu_interface_edit_static_index :: proc(interface: ^interface_state, def : ^engine_entity_def) -> bool
|
||||
mu_interface_edit_static_index :: proc(interface: ^Interface_State, def : ^Engine_Entity_Def) -> bool
|
||||
{
|
||||
curr_index := &interface.curr_static_index
|
||||
entity := interface.entities[interface.selected_entity]
|
||||
@@ -192,8 +192,8 @@ mu_interface_edit_static_index :: proc(interface: ^interface_state, def : ^engin
|
||||
}
|
||||
|
||||
mu_interface_shape_def_editor :: proc(
|
||||
state : ^engine_state,
|
||||
def : ^engine_entity_def) -> bool
|
||||
state : ^Engine_State,
|
||||
def : ^Engine_Entity_Def) -> bool
|
||||
{
|
||||
shape_def := &def.shape_def
|
||||
|
||||
@@ -371,7 +371,7 @@ interface_shape_def_editor :: proc(def: ^engine_entity_def) -> bool
|
||||
}
|
||||
*/
|
||||
|
||||
interface_entity :: proc(interface: ^interface_state) -> bool
|
||||
interface_entity :: proc(interface: ^Interface_State) -> bool
|
||||
{
|
||||
entity_selected := (interface.selected_entity != -1) && len(interface.entity_defs) > 0
|
||||
|
||||
@@ -386,7 +386,7 @@ interface_entity :: proc(interface: ^interface_state) -> bool
|
||||
|
||||
//interface.edit_mode = .ENTITY
|
||||
//Flags
|
||||
for flag in engine_entity_flags_enum
|
||||
for flag in Engine_Entity_Flags_Enum
|
||||
{
|
||||
contains := flag in def.entity_flags
|
||||
if .CHANGE in mu.checkbox(ctx, fmt.tprint(flag), &contains)
|
||||
|
||||
Reference in New Issue
Block a user