246 {
247
255
258
259 int i = 0;
260 int key = 0;
262 {
265 ImageWidget w;
268 w.Show( true );
269 for (
int y = 0;
y < 5;
y++ )
270 {
271 w.LoadImageFile(
y,
"set:dayz_gui image:icon" + widget_name +
y );
272 }
273
274 w.SetImage( 0 );
275 float alpha = w.GetAlpha();
276 w.SetColor(
ARGB( alpha * 255, 220, 220, 220 ) );
278
279 for (
int x = 1;
x < 4;
x++ )
280 {
281 Class.CastTo(w,
m_Notifiers.FindAnyWidget(
String( widget_name +
"ArrowUp" +
x.ToString() ) ) );
282 w.Show( false );
283 Class.CastTo(w,
m_Notifiers.FindAnyWidget(
String( widget_name +
"ArrowDown" +
x.ToString() ) ) );
284 w.Show( false );
285 }
286
287
288 }
289
290
295
305
306
308
310 {
313 ImageWidget badge_widget;
314
315
316 Class.CastTo(badge_widget,
m_Badges.FindAnyWidget( badge_name ) );
317
319 {
321
322 for ( int q = 0; q < badgeCountMax; q++ )
323 {
324 badge_widget.LoadImageFile( q, "set:dayz_gui image:icon" + badge_name + q );
325 }
326 }
327
329 badge_widget.Show( false );
331 }
333 }
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)