502{
503 #ifdef DIAG_DEVELOPER
504 static int m_ForcedIndex = -1;
505 #endif
506
507
509 protected string m_RootPath =
"Gui/layouts/new_ui/hints/in_game_hints.layout";
510 protected const string m_DataPath =
"scripts/data/hints.json";
511
520
523 protected DayZGame
m_Game;
527
528
529
530
532 {
533 DayZGame game = DayZGame.Cast(
GetGame());
536 }
537
539 {
541
544 }
545
546
547 void Init(DayZGame game)
548 {
549
550
551
552
554 return;
555 if (!game)
556 return;
558
560
562
564 {
565
567
569
571
573 }
574 else
575 ErrorEx(
"Could not create the hint panel. The data are missing!");
576 }
577
578
579
580
582 {
583 string errorMessage;
586 }
587
588
590 {
591
593
595 {
596
604
606 }
607 }
608
609
611 {
613 {
618 }
619 }
620
621
622
624 {
626 }
628 {
629 #ifdef DEVELOPER
630
631 #endif
635 }
637 {
639
640
641 if (image_path)
642 {
643
645
647 }
648 else
649 {
650
652 }
653 }
655 {
658 }
659
661 {
664 }
665
666
668 {
669 #ifdef DIAG_DEVELOPER
671 {
672 if (m_ForcedIndex != -1)
673 {
675 return;
676 }
677 }
678 #endif
679
685
686 }
687
689 {
690
692 {
694 }
695 else
696 {
698 }
699
700
702 }
703
705 {
706
708 {
710 }
711 else
712 {
714
715 }
716
718 }
719
720
721
722
723
725 {
727 }
728
730 {
732 }
733
735 {
737 }
738
740 {
743 }
744
745
746
747
749 {
751 {
752 switch (w)
753 {
755 {
757 return true;
758 }
760 {
762 return true;
763 }
764 }
765 }
766 return false;
767 }
769 {
771 {
773 return true;
774 }
775 return false;
776 }
778 {
780 {
782 return true;
783 }
784 return false;
785 }
786}
787
788
790{
791 override void Init(DayZGame game)
792 {
793 m_RootPath =
"Gui/layouts/new_ui/hints/in_game_hints_load.layout";
794 super.Init(game);
795 }
796}
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].