8 private bool m_bEnabled;
16 [
Attribute(
"", UIWidgets.Auto,
"Component processing priority. Higher value = higher priority")]
17 protected int m_iPriority;
20 protected InputManager m_InputManager;
41 void EOnCameraReset();
47 void EOnCameraParentChange(
bool attached, IEntity parent);
70 protected InputManager GetInputManager()
76 protected vector CoordToCamera(vector pos)
81 return m_Camera.GetParent().CoordToLocal(pos);
85 protected vector CoordFromCamera(vector pos)
90 return m_Camera.GetParent().CoordToParent(pos);
96 void SetEnabled(
bool enabled)
134 return EOnCameraInit();
138 class SCR_BaseManualCameraComponentTitle : BaseContainerCustomTitle
143 title = source.GetClassName();
144 title.Replace(
"SCR_",
"");
145 title.Replace(
"ManualCameraComponent",
"");
148 source.Get(
"m_FlagsWhitelist", flagsWhitelist);
149 string textWhitelist;
150 if (flagsWhitelist != 0)
152 array<int> bitValues = {};
153 SCR_Enum.BitToIntArray(flagsWhitelist, bitValues);
154 foreach (
int i,
int value: bitValues)
157 textWhitelist +=
" && ";
164 source.Get(
"m_FlagsBlacklist", flagsBlacklist);
165 string textBlacklist;
166 if (flagsBlacklist != 0)
168 if (flagsWhitelist != 0)
169 textBlacklist +=
" && ";
171 array<int> bitValues = {};
172 SCR_Enum.BitToIntArray(flagsBlacklist, bitValues);
173 foreach (
int i,
int value: bitValues)
176 textBlacklist +=
" && ";
182 if (flagsWhitelist != 0 || flagsBlacklist != 0)
183 title =
string.Format(
"[%1] %2", textWhitelist + textBlacklist, title);
186 if (source.Get(
"m_iPriority", priority))
187 title =
string.Format(
"%1: %2", priority.ToString(2), title);
190 if (source.Get(
"m_bEnabled", enabled) && !enabled)
191 title =
string.Format(
"// %1", title);