408{
409 #ifdef DIAG_DEVELOPER
410 static int m_ForcedIndex = -1;
411 #endif
412
413
415 protected string m_RootPath =
"Gui/layouts/new_ui/hints/in_game_hints.layout";
416 protected const string m_DataPath =
"scripts/data/hints.json";
417
426
429 protected DayZGame
m_Game;
433
434
435
436
438 {
439 DayZGame game = DayZGame.Cast(
GetGame());
442 }
443
445 {
447
450 }
451
452
453 void Init(DayZGame game)
454 {
455
456
457
458
460 return;
461 if (!game)
462 return;
464
466
468
470 {
471
473
475
477
479 }
480 else
481 ErrorEx(
"Could not create the hint panel. The data are missing!");
482 }
483
484
485
486
488 {
489 string errorMessage;
492 }
493
494
496 {
497
499
501 {
502
510
512 }
513 }
514
515
517 {
519 {
524 }
525 }
526
527
528
530 {
532 }
534 {
535 #ifdef DEVELOPER
536
537 #endif
541 }
543 {
545
546
547 if (image_path)
548 {
549
551
553 }
554 else
555 {
556
558 }
559 }
561 {
564 }
565
567 {
570 }
571
572
574 {
575 #ifdef DIAG_DEVELOPER
577 {
578 if (m_ForcedIndex != -1)
579 {
581 return;
582 }
583 }
584 #endif
585
591
592 }
593
595 {
596
598 {
600 }
601 else
602 {
604 }
605
606
608 }
609
611 {
612
614 {
616 }
617 else
618 {
620
621 }
622
624 }
625
626
627
628
629
631 {
633 }
634
636 {
638 }
639
641 {
643 }
644
646 {
649 }
650
651
652
653
655 {
657 {
658 switch (w)
659 {
661 {
663 return true;
664 }
666 {
668 return true;
669 }
670 }
671 }
672 return false;
673 }
675 {
677 {
679 return true;
680 }
681 return false;
682 }
684 {
686 {
688 return true;
689 }
690 return false;
691 }
692}
693
694
696{
697 override void Init(DayZGame game)
698 {
699 m_RootPath =
"Gui/layouts/new_ui/hints/in_game_hints_load.layout";
700 super.Init(game);
701 }
702}
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].