575{
576 #ifdef DIAG_DEVELOPER
577 static int m_ForcedIndex = -1;
578 #endif
579
580
582 protected string m_RootPath =
"Gui/layouts/new_ui/hints/in_game_hints.layout";
583 protected const string m_DataPath =
"scripts/data/hints.json";
584
593
596 protected DayZGame
m_Game;
600
601
602
603
605 {
606 DayZGame game = DayZGame.Cast(
GetGame());
609 }
610
612 {
614
617 }
618
619
620 void Init(DayZGame game)
621 {
622
623
624
625
627 return;
628 if (!game)
629 return;
631
633
635
637 {
638
640
642
644
646 }
647 else
648 ErrorEx(
"Could not create the hint panel. The data are missing!");
649 }
650
651
652
653
655 {
656 string errorMessage;
659 }
660
661
663 {
664
666
668 {
669
677
679 }
680 }
681
682
684 {
686 {
691 }
692 }
693
694
695
697 {
699 }
701 {
702 #ifdef DEVELOPER
703
704 #endif
708 }
710 {
712
713
714 if (image_path)
715 {
716
718
720 }
721 else
722 {
723
725 }
726 }
728 {
731 }
732
734 {
737 }
738
739
741 {
742 #ifdef DIAG_DEVELOPER
744 {
745 if (m_ForcedIndex != -1)
746 {
748 return;
749 }
750 }
751 #endif
752
758
759 }
760
762 {
763
765 {
767 }
768 else
769 {
771 }
772
773
775 }
776
778 {
779
781 {
783 }
784 else
785 {
787
788 }
789
791 }
792
793
794
795
796
798 {
800 }
801
803 {
805 }
806
808 {
810 }
811
813 {
816 }
817
818
819
820
822 {
824 {
825 switch (w)
826 {
828 {
830 return true;
831 }
833 {
835 return true;
836 }
837 }
838 }
839 return false;
840 }
842 {
844 {
846 return true;
847 }
848 return false;
849 }
851 {
853 {
855 return true;
856 }
857 return false;
858 }
859}
860
861
863{
864 override void Init(DayZGame game)
865 {
866 m_RootPath =
"Gui/layouts/new_ui/hints/in_game_hints_load.layout";
867 super.Init(game);
868 }
869}
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].