DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ WidgetTrySetText()

static void UIScriptedMenu::WidgetTrySetText ( Widget root_widget,
string widget_name,
string text,
int color = 0 )
inlinestaticprivate

См. определение в файле InspectMenuNew.c строка 592

593 {
594 TextWidget widget = TextWidget.Cast( root_widget.FindAnyWidget(widget_name) );
595 RichTextWidget rt_widget = RichTextWidget.Cast( root_widget.FindAnyWidget(widget_name) );
596 if (widget)
597 {
598 widget.SetText(text);
599 Widget widget_background = root_widget.FindAnyWidget(widget_name+"Background");
600 if (widget_background)
601 {
602 if (color != 0)
603 {
604 widget_background.Show( true );
605 widget_background.SetColor(color | 0x7F000000);
606 }
607 else
608 {
609 widget_background.Show( false );
610 }
611 }
612 }
613 if( rt_widget )
614 {
615 rt_widget.Update();
616 }
617 }
WorkspaceWidget Widget
Defined in code.

Используется в UpdateItemInfo(), UpdateItemInfoCleanness(), UpdateItemInfoDamage(), UpdateItemInfoFoodStage(), UpdateItemInfoLiquidType(), UpdateItemInfoQuantity(), UpdateItemInfoTemperature(), UpdateItemInfoWeight(), UpdateItemInfoWetness() и UpdateSlotInfo().