486{
487 #ifdef DIAG_DEVELOPER
488 static int m_ForcedIndex = -1;
489 #endif
490
491
493 protected string m_RootPath =
"Gui/layouts/new_ui/hints/in_game_hints.layout";
494 protected const string m_DataPath =
"scripts/data/hints.json";
495
504
507 protected DayZGame
m_Game;
511
512
513
514
516 {
517 DayZGame game = DayZGame.Cast(
GetGame());
520 }
521
523 {
525
528 }
529
530
531 void Init(DayZGame game)
532 {
533
534
535
536
538 return;
539 if (!game)
540 return;
542
544
546
548 {
549
551
553
555
557 }
558 else
559 ErrorEx(
"Could not create the hint panel. The data are missing!");
560 }
561
562
563
564
566 {
567 string errorMessage;
570 }
571
572
574 {
575
577
579 {
580
588
590 }
591 }
592
593
595 {
597 {
602 }
603 }
604
605
606
608 {
610 }
612 {
613 #ifdef DEVELOPER
614
615 #endif
619 }
621 {
623
624
625 if (image_path)
626 {
627
629
631 }
632 else
633 {
634
636 }
637 }
639 {
642 }
643
645 {
648 }
649
650
652 {
653 #ifdef DIAG_DEVELOPER
655 {
656 if (m_ForcedIndex != -1)
657 {
659 return;
660 }
661 }
662 #endif
663
669
670 }
671
673 {
674
676 {
678 }
679 else
680 {
682 }
683
684
686 }
687
689 {
690
692 {
694 }
695 else
696 {
698
699 }
700
702 }
703
704
705
706
707
709 {
711 }
712
714 {
716 }
717
719 {
721 }
722
724 {
727 }
728
729
730
731
733 {
735 {
736 switch (w)
737 {
739 {
741 return true;
742 }
744 {
746 return true;
747 }
748 }
749 }
750 return false;
751 }
753 {
755 {
757 return true;
758 }
759 return false;
760 }
762 {
764 {
766 return true;
767 }
768 return false;
769 }
770}
771
772
774{
775 override void Init(DayZGame game)
776 {
777 m_RootPath =
"Gui/layouts/new_ui/hints/in_game_hints_load.layout";
778 super.Init(game);
779 }
780}
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].