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