refactor (reduction)
[carveJwlIkooP6JGAAIwe30JlM.git] / entity.h
index ce9424ab1f9ed46de28a4f76dbdc3f8aa9369c01..22ee913c6a6199ff938aa14793ad5c41cee3f1fa 100644 (file)
--- a/entity.h
+++ b/entity.h
@@ -299,9 +299,15 @@ enum ent_menuitem_type{
    k_ent_menuitem_type_toggle       = 3,
    k_ent_menuitem_type_slider       = 4,
    k_ent_menuitem_type_page         = 5,
+   k_ent_menuitem_type_binding      = 6,
    k_ent_menuitem_type_disabled     = 90
 };
 
+enum ent_menuitem_stack_behaviour{
+   k_ent_menuitem_stack_append  = 0,
+   k_ent_menuitem_stack_replace = 1
+};
+
 typedef struct ent_menuitem ent_menuitem;
 struct ent_menuitem{
    u32 type, groups, 
@@ -332,7 +338,8 @@ struct ent_menuitem{
       slider;
 
       struct{
-         u32 pstr;
+         u32 pstr,
+             stack_behaviour;
       }
       button;
 
@@ -349,6 +356,12 @@ struct ent_menuitem{
              id_viewpoint;   /* ent_camera */
       }
       page;
+
+      struct{
+         u32 pstr_bind,
+             font_variant;
+      }
+      binding;
    };
 };
 
@@ -357,7 +370,7 @@ struct ent_worldinfo{
    f32 timezone;
 };
 
-VG_STATIC ent_marker *ent_find_marker( mdl_context *mdl,
+static ent_marker *ent_find_marker( mdl_context *mdl,
                                        mdl_array_ptr *arr, const char *alias )
 {
    for( u32 i=0; i<mdl_arrcount(arr); i++ ){
@@ -481,6 +494,6 @@ struct ent_call{
 };
 
 #include "world.h"
-VG_STATIC void entity_call( world_instance *world, ent_call *call );
+static void entity_call( world_instance *world, ent_call *call );
 
 #endif /* ENTITY_H */