532{
533 #ifdef DIAG_DEVELOPER
534 static int m_ForcedIndex = -1;
535 #endif
536
537
539 protected string m_RootPath =
"Gui/layouts/new_ui/hints/in_game_hints.layout";
540 protected const string m_DataPath =
"scripts/data/hints.json";
541
550
553 protected DayZGame
m_Game;
557
558
559
560
562 {
563 DayZGame game = DayZGame.Cast(
GetGame());
566 }
567
569 {
571
574 }
575
576
577 void Init(DayZGame game)
578 {
579
580
581
582
584 return;
585 if (!game)
586 return;
588
590
592
594 {
595
597
599
601
603 }
604 else
605 ErrorEx(
"Could not create the hint panel. The data are missing!");
606 }
607
608
609
610
612 {
613 string errorMessage;
616 }
617
618
620 {
621
623
625 {
626
634
636 }
637 }
638
639
641 {
643 {
648 }
649 }
650
651
652
654 {
656 }
658 {
659 #ifdef DEVELOPER
660
661 #endif
665 }
667 {
669
670
671 if (image_path)
672 {
673
675
677 }
678 else
679 {
680
682 }
683 }
685 {
688 }
689
691 {
694 }
695
696
698 {
699 #ifdef DIAG_DEVELOPER
701 {
702 if (m_ForcedIndex != -1)
703 {
705 return;
706 }
707 }
708 #endif
709
715
716 }
717
719 {
720
722 {
724 }
725 else
726 {
728 }
729
730
732 }
733
735 {
736
738 {
740 }
741 else
742 {
744
745 }
746
748 }
749
750
751
752
753
755 {
757 }
758
760 {
762 }
763
765 {
767 }
768
770 {
773 }
774
775
776
777
779 {
781 {
782 switch (w)
783 {
785 {
787 return true;
788 }
790 {
792 return true;
793 }
794 }
795 }
796 return false;
797 }
799 {
801 {
803 return true;
804 }
805 return false;
806 }
808 {
810 {
812 return true;
813 }
814 return false;
815 }
816}
817
818
820{
821 override void Init(DayZGame game)
822 {
823 m_RootPath =
"Gui/layouts/new_ui/hints/in_game_hints_load.layout";
824 super.Init(game);
825 }
826}
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].