421{
422 #ifdef DIAG_DEVELOPER
423 static int m_ForcedIndex = -1;
424 #endif
425
426
428 protected string m_RootPath =
"Gui/layouts/new_ui/hints/in_game_hints.layout";
429 protected const string m_DataPath =
"scripts/data/hints.json";
430
439
442 protected DayZGame
m_Game;
446
447
448
449
451 {
452 DayZGame game = DayZGame.Cast(
GetGame());
455 }
456
458 {
460
463 }
464
465
466 void Init(DayZGame game)
467 {
468
469
470
471
473 return;
474 if (!game)
475 return;
477
479
481
483 {
484
486
488
490
492 }
493 else
494 ErrorEx(
"Could not create the hint panel. The data are missing!");
495 }
496
497
498
499
501 {
502 string errorMessage;
505 }
506
507
509 {
510
512
514 {
515
523
525 }
526 }
527
528
530 {
532 {
537 }
538 }
539
540
541
543 {
545 }
547 {
548 #ifdef DEVELOPER
549
550 #endif
554 }
556 {
558
559
560 if (image_path)
561 {
562
564
566 }
567 else
568 {
569
571 }
572 }
574 {
577 }
578
580 {
583 }
584
585
587 {
588 #ifdef DIAG_DEVELOPER
590 {
591 if (m_ForcedIndex != -1)
592 {
594 return;
595 }
596 }
597 #endif
598
604
605 }
606
608 {
609
611 {
613 }
614 else
615 {
617 }
618
619
621 }
622
624 {
625
627 {
629 }
630 else
631 {
633
634 }
635
637 }
638
639
640
641
642
644 {
646 }
647
649 {
651 }
652
654 {
656 }
657
659 {
662 }
663
664
665
666
668 {
670 {
671 switch (w)
672 {
674 {
676 return true;
677 }
679 {
681 return true;
682 }
683 }
684 }
685 return false;
686 }
688 {
690 {
692 return true;
693 }
694 return false;
695 }
697 {
699 {
701 return true;
702 }
703 return false;
704 }
705}
706
707
709{
710 override void Init(DayZGame game)
711 {
712 m_RootPath =
"Gui/layouts/new_ui/hints/in_game_hints_load.layout";
713 super.Init(game);
714 }
715}
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].