458{
459 #ifdef DIAG_DEVELOPER
460 static int m_ForcedIndex = -1;
461 #endif
462
463
465 protected string m_RootPath =
"Gui/layouts/new_ui/hints/in_game_hints.layout";
466 protected const string m_DataPath =
"scripts/data/hints.json";
467
476
479 protected DayZGame
m_Game;
483
484
485
486
488 {
489 DayZGame game = DayZGame.Cast(
GetGame());
492 }
493
495 {
497
500 }
501
502
503 void Init(DayZGame game)
504 {
505
506
507
508
510 return;
511 if (!game)
512 return;
514
516
518
520 {
521
523
525
527
529 }
530 else
531 ErrorEx(
"Could not create the hint panel. The data are missing!");
532 }
533
534
535
536
538 {
539 string errorMessage;
542 }
543
544
546 {
547
549
551 {
552
560
562 }
563 }
564
565
567 {
569 {
574 }
575 }
576
577
578
580 {
582 }
584 {
585 #ifdef DEVELOPER
586
587 #endif
591 }
593 {
595
596
597 if (image_path)
598 {
599
601
603 }
604 else
605 {
606
608 }
609 }
611 {
614 }
615
617 {
620 }
621
622
624 {
625 #ifdef DIAG_DEVELOPER
627 {
628 if (m_ForcedIndex != -1)
629 {
631 return;
632 }
633 }
634 #endif
635
641
642 }
643
645 {
646
648 {
650 }
651 else
652 {
654 }
655
656
658 }
659
661 {
662
664 {
666 }
667 else
668 {
670
671 }
672
674 }
675
676
677
678
679
681 {
683 }
684
686 {
688 }
689
691 {
693 }
694
696 {
699 }
700
701
702
703
705 {
707 {
708 switch (w)
709 {
711 {
713 return true;
714 }
716 {
718 return true;
719 }
720 }
721 }
722 return false;
723 }
725 {
727 {
729 return true;
730 }
731 return false;
732 }
734 {
736 {
738 return true;
739 }
740 return false;
741 }
742}
743
744
746{
747 override void Init(DayZGame game)
748 {
749 m_RootPath =
"Gui/layouts/new_ui/hints/in_game_hints_load.layout";
750 super.Init(game);
751 }
752}
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].