434{
435 #ifdef DIAG_DEVELOPER
436 static int m_ForcedIndex = -1;
437 #endif
438
439
441 protected string m_RootPath =
"Gui/layouts/new_ui/hints/in_game_hints.layout";
442 protected const string m_DataPath =
"scripts/data/hints.json";
443
452
455 protected DayZGame
m_Game;
459
460
461
462
464 {
465 DayZGame game = DayZGame.Cast(
GetGame());
468 }
469
471 {
473
476 }
477
478
479 void Init(DayZGame game)
480 {
481
482
483
484
486 return;
487 if (!game)
488 return;
490
492
494
496 {
497
499
501
503
505 }
506 else
507 ErrorEx(
"Could not create the hint panel. The data are missing!");
508 }
509
510
511
512
514 {
515 string errorMessage;
518 }
519
520
522 {
523
525
527 {
528
536
538 }
539 }
540
541
543 {
545 {
550 }
551 }
552
553
554
556 {
558 }
560 {
561 #ifdef DEVELOPER
562
563 #endif
567 }
569 {
571
572
573 if (image_path)
574 {
575
577
579 }
580 else
581 {
582
584 }
585 }
587 {
590 }
591
593 {
596 }
597
598
600 {
601 #ifdef DIAG_DEVELOPER
603 {
604 if (m_ForcedIndex != -1)
605 {
607 return;
608 }
609 }
610 #endif
611
617
618 }
619
621 {
622
624 {
626 }
627 else
628 {
630 }
631
632
634 }
635
637 {
638
640 {
642 }
643 else
644 {
646
647 }
648
650 }
651
652
653
654
655
657 {
659 }
660
662 {
664 }
665
667 {
669 }
670
672 {
675 }
676
677
678
679
681 {
683 {
684 switch (w)
685 {
687 {
689 return true;
690 }
692 {
694 return true;
695 }
696 }
697 }
698 return false;
699 }
701 {
703 {
705 return true;
706 }
707 return false;
708 }
710 {
712 {
714 return true;
715 }
716 return false;
717 }
718}
719
720
722{
723 override void Init(DayZGame game)
724 {
725 m_RootPath =
"Gui/layouts/new_ui/hints/in_game_hints_load.layout";
726 super.Init(game);
727 }
728}
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].