6 override bool _WB_GetCustomTitle(BaseContainer source, out
string title)
9 source.Get(
"m_sWidgetName", val);
10 title = val +
" " + source.GetClassName();
20 [
Attribute(
"", UIWidgets.EditBox,
"Widget name")]
23 [
Attribute(
"", UIWidgets.Object,
"Entity state configuration")]
24 protected ref array<ref SCR_NTStateConfigBase> m_aEntityStates;
26 [
Attribute(
"0", UIWidgets.CheckBox,
"Whether this element should get scaled down with distance \n ! For scalable elements only")]
27 protected bool m_bScaleElement;
29 protected ref map<ENameTagEntityState, SCR_NTStateConfigBase> m_aEntityStatesMap =
new map< ENameTagEntityState, SCR_NTStateConfigBase>;
35 Widget widget =
data.m_NameTagWidget.FindAnyWidget(m_sWidgetName);
38 Print(
"Nametags: Improperly setup element in a zone config, cannot fetch requested widget " +
this , LogLevel.WARNING);
56 while (state != stateMin)
58 if (
data.m_eEntityStateFlags & state)
60 cfg = m_aEntityStatesMap.Get(state);
97 data.m_fTimeSliceUpdate = 1.0;
110 m_aEntityStatesMap.Insert(stateEnum, entState);
120 override bool _WB_GetCustomTitle(BaseContainer source, out
string title)
123 source.Get(
"m_eEntityState",
type);
141 [
Attribute(
"1", UIWidgets.Slider,
desc:
"Default opacity when in line of sight",
"0 1 1")]
142 float m_fOpacityDefault;
144 [
Attribute(
"true", UIWidgets.CheckBox,
"If tag fade time is set, choose whether this state should skip the animation")]
145 bool m_bAnimateTransition;
153 [
Attribute(
"0 0 0 1", UIWidgets.ColorPicker,
desc:
"Text shadow color")]
154 ref Color m_vShadowColor;
156 [
Attribute(
"12", UIWidgets.CheckBox,
"Text shadow size",
params:
"0 30")]
159 [
Attribute(
"1", UIWidgets.Slider,
desc:
"Text shadow opacity",
"0 1 1")]
160 float m_fShadowOpacity;
169 string m_sImagesetQuad;