243 {
244
252
255
256 int i = 0;
257 int key = 0;
259 {
262 ImageWidget w;
265 w.Show( true );
266 for (
int y = 0;
y < 5;
y++ )
267 {
268 w.LoadImageFile(
y,
"set:dayz_gui image:icon" + widget_name +
y );
269 }
270
271 w.SetImage( 0 );
272 float alpha = w.GetAlpha();
273 w.SetColor(
ARGB( alpha * 255, 220, 220, 220 ) );
275
276 for (
int x = 1;
x < 4;
x++ )
277 {
278 Class.CastTo(w,
m_Notifiers.FindAnyWidget(
String( widget_name +
"ArrowUp" +
x.ToString() ) ) );
279 w.Show( false );
280 Class.CastTo(w,
m_Notifiers.FindAnyWidget(
String( widget_name +
"ArrowDown" +
x.ToString() ) ) );
281 w.Show( false );
282 }
283
284
285 }
286
287
292
302
303
305
307 {
310 ImageWidget badge_widget;
311
312
313 Class.CastTo(badge_widget,
m_Badges.FindAnyWidget( badge_name ) );
314
316 {
318
319 for ( int q = 0; q < badgeCountMax; q++ )
320 {
321 badge_widget.LoadImageFile( q, "set:dayz_gui image:icon" + badge_name + q );
322 }
323 }
324
326 badge_widget.Show( false );
328 }
330 }
const int NTFKEY_POISONED
enum eBadgeLevel NTFKEY_THIRSTY
const int NTFKEY_FRACTURE
const int NTFKEY_BLEEDISH
const int NTFKEY_FEVERISH
ref map< ImageWidget, int > m_TendencyStatusCritical
ref map< int, string > m_StatesWidgetNames
ref map< int, ImageWidget > m_BadgesWidgets
ref map< int, int > m_BadgesSupportedLevels
ref map< int, int > m_BadgesWidgetDisplay
ref IngameHudVisibility m_HudVisibility
ref map< int, string > m_BadgesWidgetNames
ref map< int, ImageWidget > m_StatesWidgets
string String(string s)
Helper for passing string expression to functions with void parameter. Example: Print(String("Hello "...
int ARGB(int a, int r, int g, int b)