387{
388 #ifdef DIAG_DEVELOPER
389 static int m_ForcedIndex = -1;
390 #endif
391
392
394 protected string m_RootPath =
"Gui/layouts/new_ui/hints/in_game_hints.layout";
395 protected const string m_DataPath =
"scripts/data/hints.json";
396
405
408 protected DayZGame
m_Game;
412
413
414
415
417 {
418 DayZGame game = DayZGame.Cast(
GetGame());
421 }
422
424 {
426
429 }
430
431
432 void Init(DayZGame game)
433 {
434
435
436
437
439 return;
440 if (!game)
441 return;
443
445
447
449 {
450
452
454
456
458 }
459 else
460 ErrorEx(
"Could not create the hint panel. The data are missing!");
461 }
462
463
464
465
467 {
468 string errorMessage;
471 }
472
473
475 {
476
478
480 {
481
489
491 }
492 }
493
494
496 {
498 {
503 }
504 }
505
506
507
509 {
511 }
513 {
514 #ifdef DEVELOPER
515
516 #endif
520 }
522 {
524
525
526 if (image_path)
527 {
528
530
532 }
533 else
534 {
535
537 }
538 }
540 {
543 }
544
546 {
549 }
550
551
553 {
554 #ifdef DIAG_DEVELOPER
556 {
557 if (m_ForcedIndex != -1)
558 {
560 return;
561 }
562 }
563 #endif
564
570
571 }
572
574 {
575
577 {
579 }
580 else
581 {
583 }
584
585
587 }
588
590 {
591
593 {
595 }
596 else
597 {
599
600 }
601
603 }
604
605
606
607
608
610 {
612 }
613
615 {
617 }
618
620 {
622 }
623
625 {
628 }
629
630
631
632
634 {
636 {
637 switch (w)
638 {
640 {
642 return true;
643 }
645 {
647 return true;
648 }
649 }
650 }
651 return false;
652 }
654 {
656 {
658 return true;
659 }
660 return false;
661 }
663 {
665 {
667 return true;
668 }
669 return false;
670 }
671}
672
673
675{
676 override void Init(DayZGame game)
677 {
678 m_RootPath =
"Gui/layouts/new_ui/hints/in_game_hints_load.layout";
679 super.Init(game);
680 }
681}
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].