566{
567 #ifdef DIAG_DEVELOPER
568 static int m_ForcedIndex = -1;
569 #endif
570
571
573 protected string m_RootPath =
"Gui/layouts/new_ui/hints/in_game_hints.layout";
574 protected const string m_DataPath =
"scripts/data/hints.json";
575
584
587 protected DayZGame
m_Game;
591
592
593
594
596 {
597 DayZGame game = DayZGame.Cast(
GetGame());
600 }
601
603 {
605
608 }
609
610
611 void Init(DayZGame game)
612 {
613
614
615
616
618 return;
619 if (!game)
620 return;
622
624
626
628 {
629
631
633
635
637 }
638 else
639 ErrorEx(
"Could not create the hint panel. The data are missing!");
640 }
641
642
643
644
646 {
647 string errorMessage;
650 }
651
652
654 {
655
657
659 {
660
668
670 }
671 }
672
673
675 {
677 {
682 }
683 }
684
685
686
688 {
690 }
692 {
693 #ifdef DEVELOPER
694
695 #endif
699 }
701 {
703
704
705 if (image_path)
706 {
707
709
711 }
712 else
713 {
714
716 }
717 }
719 {
722 }
723
725 {
728 }
729
730
732 {
733 #ifdef DIAG_DEVELOPER
735 {
736 if (m_ForcedIndex != -1)
737 {
739 return;
740 }
741 }
742 #endif
743
749
750 }
751
753 {
754
756 {
758 }
759 else
760 {
762 }
763
764
766 }
767
769 {
770
772 {
774 }
775 else
776 {
778
779 }
780
782 }
783
784
785
786
787
789 {
791 }
792
794 {
796 }
797
799 {
801 }
802
804 {
807 }
808
809
810
811
813 {
815 {
816 switch (w)
817 {
819 {
821 return true;
822 }
824 {
826 return true;
827 }
828 }
829 }
830 return false;
831 }
833 {
835 {
837 return true;
838 }
839 return false;
840 }
842 {
844 {
846 return true;
847 }
848 return false;
849 }
850}
851
852
854{
855 override void Init(DayZGame game)
856 {
857 m_RootPath =
"Gui/layouts/new_ui/hints/in_game_hints_load.layout";
858 super.Init(game);
859 }
860}
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].