425{
426 #ifdef DIAG_DEVELOPER
427 static int m_ForcedIndex = -1;
428 #endif
429
430
432 protected string m_RootPath =
"Gui/layouts/new_ui/hints/in_game_hints.layout";
433 protected const string m_DataPath =
"scripts/data/hints.json";
434
443
446 protected DayZGame
m_Game;
450
451
452
453
455 {
456 DayZGame game = DayZGame.Cast(
GetGame());
459 }
460
462 {
464
467 }
468
469
470 void Init(DayZGame game)
471 {
472
473
474
475
477 return;
478 if (!game)
479 return;
481
483
485
487 {
488
490
492
494
496 }
497 else
498 ErrorEx(
"Could not create the hint panel. The data are missing!");
499 }
500
501
502
503
505 {
506 string errorMessage;
509 }
510
511
513 {
514
516
518 {
519
527
529 }
530 }
531
532
534 {
536 {
541 }
542 }
543
544
545
547 {
549 }
551 {
552 #ifdef DEVELOPER
553
554 #endif
558 }
560 {
562
563
564 if (image_path)
565 {
566
568
570 }
571 else
572 {
573
575 }
576 }
578 {
581 }
582
584 {
587 }
588
589
591 {
592 #ifdef DIAG_DEVELOPER
594 {
595 if (m_ForcedIndex != -1)
596 {
598 return;
599 }
600 }
601 #endif
602
608
609 }
610
612 {
613
615 {
617 }
618 else
619 {
621 }
622
623
625 }
626
628 {
629
631 {
633 }
634 else
635 {
637
638 }
639
641 }
642
643
644
645
646
648 {
650 }
651
653 {
655 }
656
658 {
660 }
661
663 {
666 }
667
668
669
670
672 {
674 {
675 switch (w)
676 {
678 {
680 return true;
681 }
683 {
685 return true;
686 }
687 }
688 }
689 return false;
690 }
692 {
694 {
696 return true;
697 }
698 return false;
699 }
701 {
703 {
705 return true;
706 }
707 return false;
708 }
709}
710
711
713{
714 override void Init(DayZGame game)
715 {
716 m_RootPath =
"Gui/layouts/new_ui/hints/in_game_hints_load.layout";
717 super.Init(game);
718 }
719}
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].