537{
538 #ifdef DIAG_DEVELOPER
539 static int m_ForcedIndex = -1;
540 #endif
541
542
544 protected string m_RootPath =
"Gui/layouts/new_ui/hints/in_game_hints.layout";
545 protected const string m_DataPath =
"scripts/data/hints.json";
546
555
558 protected DayZGame
m_Game;
562
563
564
565
567 {
568 DayZGame game = DayZGame.Cast(
GetGame());
571 }
572
574 {
576
579 }
580
581
582 void Init(DayZGame game)
583 {
584
585
586
587
589 return;
590 if (!game)
591 return;
593
595
597
599 {
600
602
604
606
608 }
609 else
610 ErrorEx(
"Could not create the hint panel. The data are missing!");
611 }
612
613
614
615
617 {
618 string errorMessage;
621 }
622
623
625 {
626
628
630 {
631
639
641 }
642 }
643
644
646 {
648 {
653 }
654 }
655
656
657
659 {
661 }
663 {
664 #ifdef DEVELOPER
665
666 #endif
670 }
672 {
674
675
676 if (image_path)
677 {
678
680
682 }
683 else
684 {
685
687 }
688 }
690 {
693 }
694
696 {
699 }
700
701
703 {
704 #ifdef DIAG_DEVELOPER
706 {
707 if (m_ForcedIndex != -1)
708 {
710 return;
711 }
712 }
713 #endif
714
720
721 }
722
724 {
725
727 {
729 }
730 else
731 {
733 }
734
735
737 }
738
740 {
741
743 {
745 }
746 else
747 {
749
750 }
751
753 }
754
755
756
757
758
760 {
762 }
763
765 {
767 }
768
770 {
772 }
773
775 {
778 }
779
780
781
782
784 {
786 {
787 switch (w)
788 {
790 {
792 return true;
793 }
795 {
797 return true;
798 }
799 }
800 }
801 return false;
802 }
804 {
806 {
808 return true;
809 }
810 return false;
811 }
813 {
815 {
817 return true;
818 }
819 return false;
820 }
821}
822
823
825{
826 override void Init(DayZGame game)
827 {
828 m_RootPath =
"Gui/layouts/new_ui/hints/in_game_hints_load.layout";
829 super.Init(game);
830 }
831}
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].