Перейти к основному содержимому

UI Look Audience

Looking At A Position

Everyone looking at a place, from close enough. Reprend betterhud_look_audience sans BetterHud : ce qui déclenchait une pop-up est ici une audience ordinaire, donc n'importe quoi peut s'y accrocher — un dialogue, un HUD, un objectif. Séparer le déclencheur de ce qu'il affiche est ce qui rend la brique réutilisable.

Поля

ПолеТипПо умолчаниюОписание
invertedBooleanfalse—
targetPositionORIGINThe place the player must be looking at
maxAngleDouble15.0How far off centre the gaze may be, in degrees; 10 is a precise look, 45 a glance
maxDistanceDouble16.0How far the player may stand from it, in blocks
refreshTicksLong4Ticks between two checks; 4 follows a turning head without costing a check every tick
Общие поля TypeWriter (children)
ПолеТипПо умолчаниюОписание
childrenList<Ref<AudienceEntry>>empty—