546{
547 #ifdef DIAG_DEVELOPER
548 static int m_ForcedIndex = -1;
549 #endif
550
551
553 protected string m_RootPath =
"Gui/layouts/new_ui/hints/in_game_hints.layout";
554 protected const string m_DataPath =
"scripts/data/hints.json";
555
564
567 protected DayZGame
m_Game;
571
572
573
574
576 {
577 DayZGame game = DayZGame.Cast(
GetGame());
580 }
581
583 {
585
588 }
589
590
591 void Init(DayZGame game)
592 {
593
594
595
596
598 return;
599 if (!game)
600 return;
602
604
606
608 {
609
611
613
615
617 }
618 else
619 ErrorEx(
"Could not create the hint panel. The data are missing!");
620 }
621
622
623
624
626 {
627 string errorMessage;
630 }
631
632
634 {
635
637
639 {
640
648
650 }
651 }
652
653
655 {
657 {
662 }
663 }
664
665
666
668 {
670 }
672 {
673 #ifdef DEVELOPER
674
675 #endif
679 }
681 {
683
684
685 if (image_path)
686 {
687
689
691 }
692 else
693 {
694
696 }
697 }
699 {
702 }
703
705 {
708 }
709
710
712 {
713 #ifdef DIAG_DEVELOPER
715 {
716 if (m_ForcedIndex != -1)
717 {
719 return;
720 }
721 }
722 #endif
723
729
730 }
731
733 {
734
736 {
738 }
739 else
740 {
742 }
743
744
746 }
747
749 {
750
752 {
754 }
755 else
756 {
758
759 }
760
762 }
763
764
765
766
767
769 {
771 }
772
774 {
776 }
777
779 {
781 }
782
784 {
787 }
788
789
790
791
793 {
795 {
796 switch (w)
797 {
799 {
801 return true;
802 }
804 {
806 return true;
807 }
808 }
809 }
810 return false;
811 }
813 {
815 {
817 return true;
818 }
819 return false;
820 }
822 {
824 {
826 return true;
827 }
828 return false;
829 }
830}
831
832
834{
835 override void Init(DayZGame game)
836 {
837 m_RootPath =
"Gui/layouts/new_ui/hints/in_game_hints_load.layout";
838 super.Init(game);
839 }
840}
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].