522{
523 #ifdef DIAG_DEVELOPER
524 static int m_ForcedIndex = -1;
525 #endif
526
527
529 protected string m_RootPath =
"Gui/layouts/new_ui/hints/in_game_hints.layout";
530 protected const string m_DataPath =
"scripts/data/hints.json";
531
540
543 protected DayZGame
m_Game;
547
548
549
550
552 {
553 DayZGame game = DayZGame.Cast(
GetGame());
556 }
557
559 {
561
564 }
565
566
567 void Init(DayZGame game)
568 {
569
570
571
572
574 return;
575 if (!game)
576 return;
578
580
582
584 {
585
587
589
591
593 }
594 else
595 ErrorEx(
"Could not create the hint panel. The data are missing!");
596 }
597
598
599
600
602 {
603 string errorMessage;
606 }
607
608
610 {
611
613
615 {
616
624
626 }
627 }
628
629
631 {
633 {
638 }
639 }
640
641
642
644 {
646 }
648 {
649 #ifdef DEVELOPER
650
651 #endif
655 }
657 {
659
660
661 if (image_path)
662 {
663
665
667 }
668 else
669 {
670
672 }
673 }
675 {
678 }
679
681 {
684 }
685
686
688 {
689 #ifdef DIAG_DEVELOPER
691 {
692 if (m_ForcedIndex != -1)
693 {
695 return;
696 }
697 }
698 #endif
699
705
706 }
707
709 {
710
712 {
714 }
715 else
716 {
718 }
719
720
722 }
723
725 {
726
728 {
730 }
731 else
732 {
734
735 }
736
738 }
739
740
741
742
743
745 {
747 }
748
750 {
752 }
753
755 {
757 }
758
760 {
763 }
764
765
766
767
769 {
771 {
772 switch (w)
773 {
775 {
777 return true;
778 }
780 {
782 return true;
783 }
784 }
785 }
786 return false;
787 }
789 {
791 {
793 return true;
794 }
795 return false;
796 }
798 {
800 {
802 return true;
803 }
804 return false;
805 }
806}
807
808
810{
811 override void Init(DayZGame game)
812 {
813 m_RootPath =
"Gui/layouts/new_ui/hints/in_game_hints_load.layout";
814 super.Init(game);
815 }
816}
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].