452{
453 #ifdef DIAG_DEVELOPER
454 static int m_ForcedIndex = -1;
455 #endif
456
457
459 protected string m_RootPath =
"Gui/layouts/new_ui/hints/in_game_hints.layout";
460 protected const string m_DataPath =
"scripts/data/hints.json";
461
470
473 protected DayZGame
m_Game;
477
478
479
480
482 {
483 DayZGame game = DayZGame.Cast(
GetGame());
486 }
487
489 {
491
494 }
495
496
497 void Init(DayZGame game)
498 {
499
500
501
502
504 return;
505 if (!game)
506 return;
508
510
512
514 {
515
517
519
521
523 }
524 else
525 ErrorEx(
"Could not create the hint panel. The data are missing!");
526 }
527
528
529
530
532 {
533 string errorMessage;
536 }
537
538
540 {
541
543
545 {
546
554
556 }
557 }
558
559
561 {
563 {
568 }
569 }
570
571
572
574 {
576 }
578 {
579 #ifdef DEVELOPER
580
581 #endif
585 }
587 {
589
590
591 if (image_path)
592 {
593
595
597 }
598 else
599 {
600
602 }
603 }
605 {
608 }
609
611 {
614 }
615
616
618 {
619 #ifdef DIAG_DEVELOPER
621 {
622 if (m_ForcedIndex != -1)
623 {
625 return;
626 }
627 }
628 #endif
629
635
636 }
637
639 {
640
642 {
644 }
645 else
646 {
648 }
649
650
652 }
653
655 {
656
658 {
660 }
661 else
662 {
664
665 }
666
668 }
669
670
671
672
673
675 {
677 }
678
680 {
682 }
683
685 {
687 }
688
690 {
693 }
694
695
696
697
699 {
701 {
702 switch (w)
703 {
705 {
707 return true;
708 }
710 {
712 return true;
713 }
714 }
715 }
716 return false;
717 }
719 {
721 {
723 return true;
724 }
725 return false;
726 }
728 {
730 {
732 return true;
733 }
734 return false;
735 }
736}
737
738
740{
741 override void Init(DayZGame game)
742 {
743 m_RootPath =
"Gui/layouts/new_ui/hints/in_game_hints_load.layout";
744 super.Init(game);
745 }
746}
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].