329{
330 #ifdef DIAG_DEVELOPER
331 static int m_ForcedIndex = -1;
332 #endif
333
334
336 protected string m_RootPath =
"Gui/layouts/new_ui/hints/in_game_hints.layout";
337 protected const string m_DataPath =
"scripts/data/hints.json";
338
347
350 protected DayZGame
m_Game;
354
355
356
357
359 {
360 DayZGame game = DayZGame.Cast(
GetGame());
363 }
364
366 {
368
371 }
372
373
374 void Init(DayZGame game)
375 {
376
377
378
379
381 return;
382 if (!game)
383 return;
385
387
389
391 {
392
394
396
398
400 }
401 else
402 ErrorEx(
"Could not create the hint panel. The data are missing!");
403 }
404
405
406
407
409 {
410 string errorMessage;
413 }
414
415
417 {
418
420
422 {
423
431
433 }
434 }
435
436
438 {
440 {
445 }
446 }
447
448
449
451 {
453 }
455 {
456 #ifdef DEVELOPER
457
458 #endif
462 }
464 {
466
467
468 if (image_path)
469 {
470
472
474 }
475 else
476 {
477
479 }
480 }
482 {
485 }
486
488 {
491 }
492
493
495 {
496 #ifdef DIAG_DEVELOPER
498 {
499 if (m_ForcedIndex != -1)
500 {
502 return;
503 }
504 }
505 #endif
506
512
513 }
514
516 {
517
519 {
521 }
522 else
523 {
525 }
526
527
529 }
530
532 {
533
535 {
537 }
538 else
539 {
541
542 }
543
545 }
546
547
548
549
550
552 {
554 }
555
557 {
559 }
560
562 {
564 }
565
567 {
570 }
571
572
573
574
576 {
578 {
579 switch (w)
580 {
582 {
584 return true;
585 }
587 {
589 return true;
590 }
591 }
592 }
593 return false;
594 }
596 {
598 {
600 return true;
601 }
602 return false;
603 }
605 {
607 {
609 return true;
610 }
611 return false;
612 }
613}
614
615
617{
618 override void Init(DayZGame game)
619 {
620 m_RootPath =
"Gui/layouts/new_ui/hints/in_game_hints_load.layout";
621 super.Init(game);
622 }
623}
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].