368 {
369
371
372 int category_item_count;
373
374 for (
int i = 0; i <
m_Items.Count(); ++i )
375 {
377
379 {
380
381 Widget item_card_widget =
Widget.Cast(
GetGame().GetWorkspace().CreateWidgets(
"gui/layouts/radial_menu/radial_quickbar/radial_quickbar_item_card.layout",
m_ItemCardPanel ) );
382 quickbar_item.SetRadialItemCard( item_card_widget );
383
384
386
387
388 item_card_widget.SetUserData( quickbar_item );
389
390
391 if ( quickbar_item.GetId() == selected_item_id )
392 {
394 }
395 category_item_count++;
396 }
397 }
398
399
400 if ( category_item_count > 0 )
401 {
403 radial_menu.SetRadiusOffset( 0 );
404 radial_menu.SetExecuteDistOffset( 0.5 );
405 radial_menu.SetOffsetFromTop( 0 );
406 radial_menu.SetItemCardRadiusOffset( 0.25 );
407 radial_menu.ActivateControllerTimeout( false );
408 }
409
410
412 }
proto native CGame GetGame()