update helpers/location to 'frosted' ui
[carveJwlIkooP6JGAAIwe30JlM.git] / ent_skateshop.c
index 1065d4b58ab6a1095cd7d3d7f26e2cf1a5261780..7b41857f38e71228bfbb3ff4403d33a8d5beaf6e 100644 (file)
@@ -209,12 +209,13 @@ static void skateshop_server_helper_update(void){
  * VG event preupdate 
  */
 void temp_update_playermodel(void);
-void ent_skateshop_preupdate( ent_skateshop *shop, int active )
+void ent_skateshop_preupdate( ent_focus_context *ctx )
 {
-   if( !active ) return;
+   if( !ctx->active ) 
+      return;
 
-   /* input filter */
-   world_instance *world = world_current_instance();
+   world_instance *world = ctx->world;
+   ent_skateshop *shop = mdl_arritm( &world->ent_skateshop, ctx->index );
 
    /* camera positioning */
    ent_camera *ref = mdl_arritm( &world->ent_camera, 
@@ -756,7 +757,7 @@ static void ent_skateshop_helpers_pickable( const char *acceptance )
    vg_str text;
 
    if( gui_new_helper( input_button_list[k_srbind_mback], &text ))
-      vg_strcat( &text, "exit" );
+      vg_strcat( &text, "Exit" );
 
    if( (global_skateshop.helper_pick = gui_new_helper(
                input_button_list[k_srbind_maccept], &text))){
@@ -765,7 +766,7 @@ static void ent_skateshop_helpers_pickable( const char *acceptance )
 
    if( (global_skateshop.helper_browse = gui_new_helper( 
                input_axis_list[k_sraxis_mbrowse_h], &text ))){
-      vg_strcat( &text, "browse" );
+      vg_strcat( &text, "Browse" );
    }
 }
 
@@ -822,15 +823,15 @@ entity_call_result ent_skateshop_call( world_instance *world, ent_call *call )
       {
          skateshop_update_viewpage();
          vg_loader_start( board_scan_thread, NULL );
-         ent_skateshop_helpers_pickable( "pick" );
+         ent_skateshop_helpers_pickable( "Pick" );
       }
       else if( shop->type == k_skateshop_type_charshop )
       {
-         ent_skateshop_helpers_pickable( "pick" );
+         ent_skateshop_helpers_pickable( "Pick" );
       }
       else if( shop->type == k_skateshop_type_worldshop )
       {
-         ent_skateshop_helpers_pickable( "open rift" );
+         ent_skateshop_helpers_pickable( "Open rift" );
          vg_loader_start( world_scan_thread, NULL );
       }
       else if( shop->type == k_skateshop_type_server )