336{
337 #ifdef DIAG_DEVELOPER
338 static int m_ForcedIndex = -1;
339 #endif
340
341
343 protected string m_RootPath =
"Gui/layouts/new_ui/hints/in_game_hints.layout";
344 protected const string m_DataPath =
"scripts/data/hints.json";
345
354
357 protected DayZGame
m_Game;
361
362
363
364
366 {
367 DayZGame game = DayZGame.Cast(
GetGame());
370 }
371
373 {
375
378 }
379
380
381 void Init(DayZGame game)
382 {
383
384
385
386
388 return;
389 if (!game)
390 return;
392
394
396
398 {
399
401
403
405
407 }
408 else
409 ErrorEx(
"Could not create the hint panel. The data are missing!");
410 }
411
412
413
414
416 {
417 string errorMessage;
420 }
421
422
424 {
425
427
429 {
430
438
440 }
441 }
442
443
445 {
447 {
452 }
453 }
454
455
456
458 {
460 }
462 {
463 #ifdef DEVELOPER
464
465 #endif
469 }
471 {
473
474
475 if (image_path)
476 {
477
479
481 }
482 else
483 {
484
486 }
487 }
489 {
492 }
493
495 {
498 }
499
500
502 {
503 #ifdef DIAG_DEVELOPER
505 {
506 if (m_ForcedIndex != -1)
507 {
509 return;
510 }
511 }
512 #endif
513
519
520 }
521
523 {
524
526 {
528 }
529 else
530 {
532 }
533
534
536 }
537
539 {
540
542 {
544 }
545 else
546 {
548
549 }
550
552 }
553
554
555
556
557
559 {
561 }
562
564 {
566 }
567
569 {
571 }
572
574 {
577 }
578
579
580
581
583 {
585 {
586 switch (w)
587 {
589 {
591 return true;
592 }
594 {
596 return true;
597 }
598 }
599 }
600 return false;
601 }
603 {
605 {
607 return true;
608 }
609 return false;
610 }
612 {
614 {
616 return true;
617 }
618 return false;
619 }
620}
621
622
624{
625 override void Init(DayZGame game)
626 {
627 m_RootPath =
"Gui/layouts/new_ui/hints/in_game_hints_load.layout";
628 super.Init(game);
629 }
630}
void RandomizePageIndex()
override bool OnClick(Widget w, int x, int y, int button)
ImageWidget m_UiHintImage
ButtonWidget m_UiRightButton
void SetHintDescription()
ref array< ref HintPage > m_ContentList
override bool OnMouseEnter(Widget w, int x, int y)
RichTextWidget m_UiDescLabel
void BuildLayout(Widget parent_widget)
TextWidget m_UiHeadlineLabel
TextWidget m_UiPageingLabel
void UiHintPanel(Widget parent_widget)
ButtonWidget m_UiLeftButton
override bool OnMouseLeave(Widget w, Widget enterW, int x, int y)
int m_PreviousRandomIndex
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
proto native CGame GetGame()
static float RandomFloat01()
Returns a random float number between and min [inclusive] and max [inclusive].
static proto int Randomize(int seed)
Sets the seed for the random number generator.
static proto float Clamp(float value, float min, float max)
Clamps 'value' to 'min' if it is lower than 'min', or to 'max' if it is higher than 'max'.
static int RandomIntInclusive(int min, int max)
Returns a random int number between and min [inclusive] and max [inclusive].