379{
380 #ifdef DIAG_DEVELOPER
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 {
413 }
414
416 {
418
421 }
422
423
425 {
426
427
428
429
431 return;
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 {
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
519 {
520
522
524 }
525 else
526 {
527
529 }
530 }
532 {
535 }
536
538 {
541 }
542
543
545 {
546 #ifdef DIAG_DEVELOPER
548 {
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 {
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{
669 {
670 m_RootPath =
"Gui/layouts/new_ui/hints/in_game_hints_load.layout";
672 }
673}
override Widget Init()
Definition DayZGame.c:122
void RestartSlideShow()
Definition UiHintPanel.c:532
Widget m_RootFrame
Definition UiHintPanel.c:305
const string m_DataPath
Definition UiHintPanel.c:303
void BuildLayout(Widget parent_widget)
Definition UiHintPanel.c:382
void ShowNextPage()
Definition UiHintPanel.c:481
ImageWidget m_UiHintImage
Definition UiHintPanel.c:311
void PopulateLayout()
Definition UiHintPanel.c:403
int m_PageIndex
Definition UiHintPanel.c:315
override bool OnMouseLeave(Widget w, Widget enterW, int x, int y)
Definition UiHintPanel.c:570
ButtonWidget m_UiRightButton
Definition UiHintPanel.c:308
Widget m_ParentWidget
Definition UiHintPanel.c:318
bool m_Initialized
Definition UiHintPanel.c:317
void SetHintHeadline()
Definition UiHintPanel.c:416
void ShowRandomPage()
Definition UiHintPanel.c:453
ref array< ref HintPage > m_ContentList
Definition UiHintPanel.c:314
void LoadContentList()
Definition UiHintPanel.c:374
void RandomizePageIndex()
Definition UiHintPanel.c:460
void ~UiHintPanel()
Definition UiHintPanel.c:331
Widget m_SpacerFrame
Definition UiHintPanel.c:306
RichTextWidget m_UiDescLabel
Definition UiHintPanel.c:309
void ShowPreviousPage()
Definition UiHintPanel.c:497
void SetHintDescription()
Definition UiHintPanel.c:420
int m_SlideShowDelay
Definition UiHintPanel.c:301
TextWidget m_UiHeadlineLabel
Definition UiHintPanel.c:310
DayZGame m_Game
Definition UiHintPanel.c:316
void UiHintPanel(Widget parent_widget)
Definition UiHintPanel.c:324
TextWidget m_UiPageingLabel
Definition UiHintPanel.c:312
override bool OnMouseEnter(Widget w, int x, int y)
Definition UiHintPanel.c:561
ButtonWidget m_UiLeftButton
Definition UiHintPanel.c:307
void SetHintPaging()
Definition UiHintPanel.c:447
void StopSlideShow()
Definition UiHintPanel.c:527
void SetHintImage()
Definition UiHintPanel.c:429
override bool OnClick(Widget w, int x, int y, int button)
Definition UiHintPanel.c:541
void StartSlideshow()
Definition UiHintPanel.c:517
int m_PreviousRandomIndex
Definition UiHintPanel.c:319
void SlideshowThread()
Definition UiHintPanel.c:522
Definition gameplay.c:316
Definition EnWidgets.c:220
proto native CGame GetGame()
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].
Definition EnMath.c:54
static float RandomFloat01()
Returns a random float number between and min [inclusive] and max [inclusive].
Definition EnMath.c:126
MouseState
Definition EnSystem.c:311