465{
466 #ifdef DIAG_DEVELOPER
467 static int m_ForcedIndex = -1;
468 #endif
469
470
472 protected string m_RootPath =
"Gui/layouts/new_ui/hints/in_game_hints.layout";
473 protected const string m_DataPath =
"scripts/data/hints.json";
474
483
486 protected DayZGame
m_Game;
490
491
492
493
495 {
496 DayZGame game = DayZGame.Cast(
GetGame());
499 }
500
502 {
504
507 }
508
509
510 void Init(DayZGame game)
511 {
512
513
514
515
517 return;
518 if (!game)
519 return;
521
523
525
527 {
528
530
532
534
536 }
537 else
538 ErrorEx(
"Could not create the hint panel. The data are missing!");
539 }
540
541
542
543
545 {
546 string errorMessage;
549 }
550
551
553 {
554
556
558 {
559
567
569 }
570 }
571
572
574 {
576 {
581 }
582 }
583
584
585
587 {
589 }
591 {
592 #ifdef DEVELOPER
593
594 #endif
598 }
600 {
602
603
604 if (image_path)
605 {
606
608
610 }
611 else
612 {
613
615 }
616 }
618 {
621 }
622
624 {
627 }
628
629
631 {
632 #ifdef DIAG_DEVELOPER
634 {
635 if (m_ForcedIndex != -1)
636 {
638 return;
639 }
640 }
641 #endif
642
648
649 }
650
652 {
653
655 {
657 }
658 else
659 {
661 }
662
663
665 }
666
668 {
669
671 {
673 }
674 else
675 {
677
678 }
679
681 }
682
683
684
685
686
688 {
690 }
691
693 {
695 }
696
698 {
700 }
701
703 {
706 }
707
708
709
710
712 {
714 {
715 switch (w)
716 {
718 {
720 return true;
721 }
723 {
725 return true;
726 }
727 }
728 }
729 return false;
730 }
732 {
734 {
736 return true;
737 }
738 return false;
739 }
741 {
743 {
745 return true;
746 }
747 return false;
748 }
749}
750
751
753{
754 override void Init(DayZGame game)
755 {
756 m_RootPath =
"Gui/layouts/new_ui/hints/in_game_hints_load.layout";
757 super.Init(game);
758 }
759}
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].