+ struct cache_board *cache_ptr = skateshop_selected_cache_if_loaded();
+ if( !cache_ptr ) return;
+
+ struct registry_board *reg =
+ &global_skateshop.registry[cache_ptr->registry_id];
+ struct workshop_file_info *info = ®->workshop;
+
+ /* Skin title
+ * ----------------------------------------------------------------- */
+ m3x3_zero( mlocal );
+ m3x3_setdiagonalv3( mlocal, (v3f){ scale, scale, thickness } );
+ mlocal[3][0] = -font3d_string_width( &world_global.font, 0, info->title );
+ mlocal[3][0] *= scale*0.5f;
+ mlocal[3][1] = 0.1f;
+ m4x3_mul( mtext, mlocal, mmdl );
+ font3d_simple_draw( &world_global.font, 0, info->title, &main_camera, mmdl );
+
+ /* Author name
+ * ----------------------------------------------------------------- */
+ scale *= 0.4f;
+ m3x3_setdiagonalv3( mlocal, (v3f){ scale, scale, thickness } );
+ mlocal[3][0] = -font3d_string_width( &world_global.font, 0,
+ info->author_name );
+ mlocal[3][0] *= scale*0.5f;
+ mlocal[3][1] = 0.0f;
+ m4x3_mul( mtext, mlocal, mmdl );
+ font3d_simple_draw( &world_global.font, 0,
+ info->author_name, &main_camera, mmdl );
+}
+
+/*
+ * Entity logic: entrance event
+ */
+VG_STATIC void ent_skateshop_call( world_instance *world, ent_call *call )
+{
+ u32 index = mdl_entity_id_id( call->id );
+ ent_skateshop *shop = mdl_arritm( &world->ent_skateshop, index );
+ vg_info( "skateshop_call\n" );
+
+ if( call->function == k_ent_function_trigger ){
+ if( localplayer.subsystem != k_player_subsystem_walk ){
+ return;
+ }
+
+ vg_info( "Entering skateshop\n" );
+
+ localplayer.immobile = 1;
+ global_skateshop.active = 1;
+
+ v3_zero( localplayer.rb.v );
+ v3_zero( localplayer.rb.w );
+ localplayer._walk.move_speed = 0.0f;
+ global_skateshop.ptr_ent = shop;
+
+ skateshop_update_viewpage();
+ workshop_op_item_scan();
+ }
+}
+
+/*
+ * Entity logic: exit event
+ */
+VG_STATIC void global_skateshop_exit(void)
+{
+ vg_info( "exit skateshop\n" );
+ localplayer.immobile = 0;
+ global_skateshop.active = 0;
+ srinput.ignore_input_frames = 2;