379{
380 #ifdef DIAG_DEVELOPER
381 static int m_ForcedIndex = -1;
382 #endif
383
384
386 protected string m_RootPath =
"Gui/layouts/new_ui/hints/in_game_hints.layout";
387 protected const string m_DataPath =
"scripts/data/hints.json";
388
397
400 protected DayZGame
m_Game;
404
405
406
407
409 {
410 DayZGame game = DayZGame.Cast(
GetGame());
413 }
414
416 {
418
421 }
422
423
424 void Init(DayZGame game)
425 {
426
427
428
429
431 return;
432 if (!game)
433 return;
435
437
439
441 {
442
444
446
448
450 }
451 else
452 ErrorEx(
"Could not create the hint panel. The data are missing!");
453 }
454
455
456
457
459 {
460 string errorMessage;
463 }
464
465
467 {
468
470
472 {
473
481
483 }
484 }
485
486
488 {
490 {
495 }
496 }
497
498
499
501 {
503 }
505 {
506 #ifdef DEVELOPER
507
508 #endif
512 }
514 {
516
517
518 if (image_path)
519 {
520
522
524 }
525 else
526 {
527
529 }
530 }
532 {
535 }
536
538 {
541 }
542
543
545 {
546 #ifdef DIAG_DEVELOPER
548 {
549 if (m_ForcedIndex != -1)
550 {
552 return;
553 }
554 }
555 #endif
556
562
563 }
564
566 {
567
569 {
571 }
572 else
573 {
575 }
576
577
579 }
580
582 {
583
585 {
587 }
588 else
589 {
591
592 }
593
595 }
596
597
598
599
600
602 {
604 }
605
607 {
609 }
610
612 {
614 }
615
617 {
620 }
621
622
623
624
626 {
628 {
629 switch (w)
630 {
632 {
634 return true;
635 }
637 {
639 return true;
640 }
641 }
642 }
643 return false;
644 }
646 {
648 {
650 return true;
651 }
652 return false;
653 }
655 {
657 {
659 return true;
660 }
661 return false;
662 }
663}
664
665
667{
668 override void Init(DayZGame game)
669 {
670 m_RootPath =
"Gui/layouts/new_ui/hints/in_game_hints_load.layout";
671 super.Init(game);
672 }
673}
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].