527{
528 #ifdef DIAG_DEVELOPER
529 static int m_ForcedIndex = -1;
530 #endif
531
532
534 protected string m_RootPath =
"Gui/layouts/new_ui/hints/in_game_hints.layout";
535 protected const string m_DataPath =
"scripts/data/hints.json";
536
545
548 protected DayZGame
m_Game;
552
553
554
555
557 {
558 DayZGame game = DayZGame.Cast(
GetGame());
561 }
562
564 {
566
569 }
570
571
572 void Init(DayZGame game)
573 {
574
575
576
577
579 return;
580 if (!game)
581 return;
583
585
587
589 {
590
592
594
596
598 }
599 else
600 ErrorEx(
"Could not create the hint panel. The data are missing!");
601 }
602
603
604
605
607 {
608 string errorMessage;
611 }
612
613
615 {
616
618
620 {
621
629
631 }
632 }
633
634
636 {
638 {
643 }
644 }
645
646
647
649 {
651 }
653 {
654 #ifdef DEVELOPER
655
656 #endif
660 }
662 {
664
665
666 if (image_path)
667 {
668
670
672 }
673 else
674 {
675
677 }
678 }
680 {
683 }
684
686 {
689 }
690
691
693 {
694 #ifdef DIAG_DEVELOPER
696 {
697 if (m_ForcedIndex != -1)
698 {
700 return;
701 }
702 }
703 #endif
704
710
711 }
712
714 {
715
717 {
719 }
720 else
721 {
723 }
724
725
727 }
728
730 {
731
733 {
735 }
736 else
737 {
739
740 }
741
743 }
744
745
746
747
748
750 {
752 }
753
755 {
757 }
758
760 {
762 }
763
765 {
768 }
769
770
771
772
774 {
776 {
777 switch (w)
778 {
780 {
782 return true;
783 }
785 {
787 return true;
788 }
789 }
790 }
791 return false;
792 }
794 {
796 {
798 return true;
799 }
800 return false;
801 }
803 {
805 {
807 return true;
808 }
809 return false;
810 }
811}
812
813
815{
816 override void Init(DayZGame game)
817 {
818 m_RootPath =
"Gui/layouts/new_ui/hints/in_game_hints_load.layout";
819 super.Init(game);
820 }
821}
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].