DayZ 1.26
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
Класс UIPopupScript

Защищенные члены

UIPopupScript PopupBack ()
 
UIPopupScript PopupOpen (int popup_id, Param param)
 
PluginSceneManager GetSceneEditor ()
 

Защищенные данные

Widget m_WgtRoot
 

Закрытые члены

void UIPopupScript (Widget wgt)
 
void OnOpen (Param param)
 
void OnClose ()
 
void Show (bool show)
 
bool OnClick (Widget w, int x, int y, int button)
 
bool OnChange (Widget w, int x, int y, bool finished)
 
void UIPopupScriptConfigs (Widget wgt)
 
void ChangeConfigFilter ()
 
override void OnOpen (Param param)
 
void AddItemToClipboard (TextListboxWidget text_listbox_widget)
 
void RenderVariables (int row)
 
void ExpandHierarchy (int row)
 
void CollapseHierarchy (int row)
 
void ClearHierarchy ()
 
void FindInHierarchy (string class_name)
 
override bool OnChange (Widget w, int x, int y, bool finished)
 
override bool OnClick (Widget w, int x, int y, int button)
 
void UIPopupScriptEditorSettings (Widget wgt)
 
override void OnOpen (Param param)
 
override bool OnClick (Widget w, int x, int y, int button)
 
override bool OnChange (Widget w, int x, int y, bool finished)
 
void UIPopupScriptInitScript (Widget wgt)
 
override void OnOpen (Param param)
 
override bool OnClick (Widget w, int x, int y, int button)
 
void UIPopupScriptNotify (Widget wgt)
 
override bool OnClick (Widget w, int x, int y, int button)
 
void SetLabelText (string text)
 
void UIPopupScriptPositionManager (Widget wgt)
 
override void OnOpen (Param param)
 
override bool OnClick (Widget w, int x, int y, int button)
 
void OnItemSelected (Widget w, int x, int y, int row, int column, int oldRow, int oldColumn)
 
string GetCurrentLocationName ()
 
void UIPopupScriptPresetNew (Widget wgt)
 
override bool OnClick (Widget w, int x, int y, int button)
 
void UIPopupScriptPresetRename (Widget wgt)
 
override void OnOpen (Param param)
 
override bool OnClick (Widget w, int x, int y, int button)
 
void UIPopupScriptSceneDelete (Widget wgt)
 
override bool OnClick (Widget w, int x, int y, int button)
 
void SetDeleteName (string scene_name)
 
void UIPopupScriptSceneManager (Widget wgt)
 
void ~UIPopupScriptSceneManager ()
 
override bool OnClick (Widget w, int x, int y, int button)
 
override bool OnChange (Widget w, int x, int y, bool finished)
 
void UpdateSceneList ()
 
override void OnOpen (Param param)
 
override void OnClose ()
 
void OnUpdate ()
 
void ResetSliders ()
 
void UpdateSliderStartTime (int hour, int minute)
 
void UpdateSliderStartDay (int month, int day)
 
void UpdateSliderOvercast ()
 
void UpdateSliderRain ()
 
void UpdateSliderFog ()
 
void UpdateSliderWindForce ()
 
void UIPopupScriptSceneNew (Widget wgt)
 
override bool OnClick (Widget w, int x, int y, int button)
 
void UIPopupScriptSceneRename (Widget wgt)
 
override bool OnClick (Widget w, int x, int y, int button)
 
void SetRenameName (string rename_name)
 
void UIPopupScriptSceneSettings (Widget wgt)
 
void ~UIPopupScriptSceneSettings ()
 
override bool OnClick (Widget w, int x, int y, int button)
 
override bool OnChange (Widget w, int x, int y, bool finished)
 
override void OnOpen (Param param)
 
override void OnClose ()
 
void OnUpdate ()
 
void ResetSliders ()
 
void UpdateSliderStartTime (int hour, int minute)
 
void UpdateSliderStartDay (int month, int day)
 
void UpdateSliderOvercast ()
 
void UpdateSliderRain ()
 
void UpdateSliderFog ()
 
void UpdateSliderWindForce ()
 

Закрытые данные

ButtonWidget m_BtnOk
 
ButtonWidget m_BtnCancel
 
ButtonWidget m_BtnCopyToClipboard
 
TextListboxWidget m_ConfigHierarchyTextListbox
 
TextListboxWidget m_ConfigVariablesTextListbox
 
PluginConfigViewer m_ModuleConfigViewer
 
EditBoxWidget m_ObjectConfigFilter
 
CheckBoxWidget m_WgtTglSeleHighlight
 
CheckBoxWidget m_WgtTglSavePlayerPos
 
EditBoxWidget m_EdxRotationDelta
 
PluginSceneManager m_ModuleSceneManager
 
MultilineEditBoxWidget m_MedxInitScript
 
ButtonWidget m_BtnRun
 
ButtonWidget m_BtnSave
 
int m_SceneObjectIndex
 
SceneObject m_SceneObject
 
TextWidget m_TxtLabel
 
TextListboxWidget m_LstPositionList
 
EditBoxWidget m_TxtSelectedX
 
EditBoxWidget m_TxtSelectedY
 
EditBoxWidget m_TxtCurrentX
 
EditBoxWidget m_TxtCurrentY
 
PluginConfigDebugProfileFixed m_ConfigDebugProfileFixed
 
ButtonWidget m_TeleportButton
 
ButtonWidget m_CancelButton
 
EditBoxWidget m_Editbox
 
ButtonWidget m_BtnYes
 
ButtonWidget m_BtnNo
 
string m_DeleteScene
 
ButtonWidget m_BtnSceneNew
 
ButtonWidget m_BtnSceneLoad
 
ButtonWidget m_BtnSceneRename
 
ButtonWidget m_BtnSceneDuplicate
 
ButtonWidget m_BtnSceneDelete
 
TextListboxWidget m_LstListScenes
 
TextWidget m_TxtWeatherTime
 
SliderWidget m_SldStartTime
 
TextWidget m_TxtStartTimeValue
 
SliderWidget m_SldStartDay
 
TextWidget m_TxtStartDayValue
 
SliderWidget m_SldOvercast
 
TextWidget m_TxtOvercastValue
 
SliderWidget m_SldRain
 
TextWidget m_TxtRainValue
 
SliderWidget m_SldFog
 
TextWidget m_TxtFogValue
 
SliderWidget m_SldWindForce
 
TextWidget m_TxtWindForceValue
 
int m_OrigYear
 
int m_OrigMonth
 
int m_OrigDay
 
int m_OrigHour
 
int m_OrigMinute
 
float m_OrigOvercast
 
float m_OrigRain
 
float m_OrigFog
 
float m_OrigWindForce
 
int m_CurrYear
 
int m_CurrMonth
 
int m_CurrDay
 
int m_CurrHour
 
int m_CurrMinute
 
float m_CurrOvercast
 
float m_CurrRain
 
float m_CurrFog
 
float m_CurrWindForce
 
string m_RenameName
 

Закрытые статические данные

static const int m_DaysInMonth [12] = { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }
 

Подробное описание

Конструктор(ы)

◆ UIPopupScript()

void UIPopupScript ( Widget wgt)
inlineprivate
7 {
9 }
Definition EntityAI.c:95
Widget m_WgtRoot
Definition UIPopupScript.c:61

Перекрестные ссылки m_WgtRoot.

◆ ~UIPopupScriptSceneManager()

void ~UIPopupScriptSceneManager ( )
inlineprivate
88 {
89 GetGame().GetUpdateQueue(CALL_CATEGORY_SYSTEM).Remove(this.OnUpdate);
90 }
void OnUpdate()
Definition UIPopupScriptSceneManager.c:359
proto native CGame GetGame()
const int CALL_CATEGORY_SYSTEM
Definition tools.c:8

Перекрестные ссылки CALL_CATEGORY_SYSTEM, GetGame() и OnUpdate().

◆ ~UIPopupScriptSceneSettings()

void ~UIPopupScriptSceneSettings ( )
inlineprivate
73 {
74 GetGame().GetUpdateQueue(CALL_CATEGORY_SYSTEM).Remove(this.OnUpdate);
75 }

Перекрестные ссылки CALL_CATEGORY_SYSTEM, GetGame() и OnUpdate().

Методы

◆ AddItemToClipboard()

void AddItemToClipboard ( TextListboxWidget text_listbox_widget)
inlineprivate
42 {
43 int selected_row_index = text_listbox_widget.GetSelectedRow();
44 if ( selected_row_index != -1 )
45 {
46 string item_name;
48 GetGame().CopyToClipboard( item_name );
49 }
50 }

Перекрестные ссылки GetGame().

Используется в OnClick().

◆ ChangeConfigFilter()

void ChangeConfigFilter ( )
inlineprivate
24 {
25 if ( m_ObjectConfigFilter.GetText() == "" )
26 {
28 }
29 else
30 {
32 }
33 }
void FindInHierarchy(string class_name)
Definition UIPopupScriptConfigs.c:184
EditBoxWidget m_ObjectConfigFilter
Definition UIPopupScriptConfigs.c:12
void ClearHierarchy()
Definition UIPopupScriptConfigs.c:155

Перекрестные ссылки ClearHierarchy() и FindInHierarchy().

Используется в OnChange().

◆ ClearHierarchy()

void ClearHierarchy ( )
inlineprivate
156 {
157 // config hierarchy
158 // string config_path = "configfile CfgVehicles APC";
159 // string config_path = "";
160
161 m_ConfigHierarchyTextListbox.ClearItems();
162 m_ConfigVariablesTextListbox.ClearItems();
163
166
167 string config_path = "configfile";
169 for ( int i = 0; i < variables.Count(); i++ )
170 {
171 string variable = variables.Get(i);
172
173 for ( int j = 0; j < base_classes.Count(); j++ )
174 {
175 if ( variable == base_classes.Get(j) )
176 {
177 string new_config_path = ( config_path + " " + variable ).Trim();
178 m_ConfigHierarchyTextListbox.AddItem( "+ " + variable, new ConfigParams( false, variable, 0, new_config_path, 0 ), 0);
179 }
180 }
181 }
182 }
Param5< bool, string, int, string, int > ConfigParams
Definition ScriptConsoleConfigTab.c:1
Definition Debug.c:14
static void GetBaseConfigClasses(out TStringArray base_classes)
Returns some of base config classes strings like CfgVehicles, CfgWeapons, etc. for searching purposes...
Definition Debug.c:423
TextListboxWidget m_ConfigVariablesTextListbox
Definition UIPopupScriptConfigs.c:8
PluginConfigViewer m_ModuleConfigViewer
Definition UIPopupScriptConfigs.c:10
TextListboxWidget m_ConfigHierarchyTextListbox
Definition UIPopupScriptConfigs.c:7
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
Definition IsBoxCollidingGeometryProxyClasses.c:28
array< string > TStringArray
Definition EnScript.c:685

Перекрестные ссылки Debug::GetBaseConfigClasses().

Используется в ChangeConfigFilter() и OnOpen().

◆ CollapseHierarchy()

void CollapseHierarchy ( int row)
inlineprivate
110 {
112 {
113 return;
114 }
115
120
121 int deep = config_params.param5;
122 int deep_next = config_params_next.param5;
123 int max_count = m_ConfigHierarchyTextListbox.GetNumItems();
124 int remove_lines_count = 0;
125 // Print(max_count);
126 for ( int i = row + 1; i < max_count; i++)
127 {
128 if ( deep < deep_next && i <= max_count )
129 {
133 }
134 }
135
136 // remove remove_lines_count lines from row
137 // remove_lines_count = remove_lines_count - 1;
138 for ( i = 1; i < remove_lines_count; i++ )
139 {
140 int x = row + 1;
141 if ( x < max_count )
142 {
143 m_ConfigHierarchyTextListbox.RemoveRow( x );
144 }
145 }
146
147 string offset = "";
148 for ( i = 0; i < deep; i++)
149 {
150 offset = offset + " ";
151 }
152 m_ConfigHierarchyTextListbox.SetItem( row, offset + "+ " + config_params.param2, new ConfigParams( false, config_params.param2, 0, config_params.param4, deep ), 0 );
153 }
Icon x

Перекрестные ссылки x.

Используется в OnClick().

◆ ExpandHierarchy()

void ExpandHierarchy ( int row)
inlineprivate
70 {
72 {
73 return;
74 }
75
77
78 // get current row data
81
82 string config_path = config_params.param4;
83 int deep = config_params.param5;
84
85 string offset = "";
86 for ( int i = 0; i < deep; i++)
87 {
88 offset = offset + " ";
89 }
90
91 // change selected node
92 variables = m_ModuleConfigViewer.GetConfigHierarchy( config_path );
93 int childrens_count = variables.Count();
95
96 offset = offset + " ";
97
98 // render childrens
99 deep = deep + 1;
100 childrens_count = 0;
101 for ( i = variables.Count() - 1; i >= 0; i-- )
102 {
103 string new_config_path = ( config_path + " " + variables.Get(i) ).Trim();
104 m_ConfigHierarchyTextListbox.AddItem( offset + "+ " + variables.Get(i), new ConfigParams( false, variables.Get(i), childrens_count, new_config_path, deep ), 0, (row + 1) );
105 }
106 }

Используется в OnClick().

◆ FindInHierarchy()

void FindInHierarchy ( string class_name)
inlineprivate
185 {
186 m_ConfigHierarchyTextListbox.ClearItems();
187 m_ConfigVariablesTextListbox.ClearItems();
188
189 class_name.ToLower( );
190 string config_base_path = "configfile";
191
194
195 string filter_lower = class_name;
196 filter_lower.ToLower( );
197
199 filter_lower.Split( " ", filters );
200
201 for ( int i = 0; i < base_classes.Count(); i++ )
202 {
203 string config_path = config_base_path + " " + base_classes.Get(i);
205
206 for ( int j = 0; j < variables.Count(); j++ )
207 {
208 string variable = variables.Get(j);
209 string variable_lower = variable;
210 variable_lower.ToLower( );
211
212 for ( int k = 0; k < filters.Count(); k++ )
213 {
214 if ( variable_lower.Contains(filters.Get(k)))
215 {
216 string new_config_path = ( config_path + " " + variable ).Trim();
217 m_ConfigHierarchyTextListbox.AddItem( "+ " + variable, new ConfigParams( false, variable, 0, new_config_path, 0 ), 0);
218 break;
219 }
220 }
221 }
222 }
223 }
class OptionSelectorMultistate extends OptionSelector class_name

Перекрестные ссылки class_name и Debug::GetBaseConfigClasses().

Используется в ChangeConfigFilter().

◆ GetCurrentLocationName()

string GetCurrentLocationName ( )
inlineprivate
85 {
86 if ( m_LstPositionList.GetSelectedRow() != -1 )
87 {
88 string position_name;
89 m_LstPositionList.GetItemText( m_LstPositionList.GetSelectedRow(), 0, position_name );
90 return position_name;
91 }
92 return "";
93 }
TextListboxWidget m_LstPositionList
Definition UIPopupScriptPositionManager.c:3

◆ GetSceneEditor()

PluginSceneManager GetSceneEditor ( )
inlineprotected
56 {
57 PluginSceneManager m = PluginSceneManager.Cast( GetPlugin(PluginSceneManager) );
58 return m;
59 }
PluginBase GetPlugin(typename plugin_type)
Definition PluginManager.c:316

Перекрестные ссылки GetPlugin().

◆ OnChange() [1/5]

bool OnChange ( Widget w,
int x,
int y,
bool finished )
inlineprivate
30 {
31 return false;
32 }

◆ OnChange() [2/5]

override bool OnChange ( Widget w,
int x,
int y,
bool finished )
inlineprivate
226 {
227 super.OnChange( w, x, y, finished );
228
229 if ( w == m_ObjectConfigFilter )
230 {
232 }
233
234 return false;
235 }
Icon y
void ChangeConfigFilter()
Definition UIPopupScriptConfigs.c:23

Перекрестные ссылки ChangeConfigFilter(), x и y.

◆ OnChange() [3/5]

override bool OnChange ( Widget w,
int x,
int y,
bool finished )
inlineprivate
64 {
65 if ( w == m_EdxRotationDelta )
66 {
67 int angle = m_EdxRotationDelta.GetText().ToInt();
68
69 if ( angle > 0 )
70 {
71 m_ModuleSceneManager.SetRotationAngle( angle );
72 }
73
74 return true;
75 }
76
77 return false;
78 }
EditBoxWidget m_EdxRotationDelta
Definition UIPopupScriptEditorSettings.c:5
PluginSceneManager m_ModuleSceneManager
Definition UIPopupScriptEditorSettings.c:9

◆ OnChange() [4/5]

override bool OnChange ( Widget w,
int x,
int y,
bool finished )
inlineprivate
206 {
207 if ( w == m_SldStartTime )
208 {
209 float slider_value_start_time = m_SldStartTime.GetCurrent() * 0.01;
212 m_CurrHour = start_time / 60;
214
216
218
219 return true;
220 }
221 else if ( w == m_SldStartDay )
222 {
223 float slider_value_start_day = m_SldStartDay.GetCurrent();
224 float start_day_f = slider_value_start_day * 3.64 + 1;
226
227 for ( int i = 0; i < 12; i++ )
228 {
229 int days = m_DaysInMonth[i];
230 if ( start_day <= days )
231 {
232 m_CurrMonth = i+1;
234 break;
235 }
236 else
237 {
238 start_day -= days;
239 }
240 }
241
243
245
246 return true;
247 }
248 else if ( w == m_SldOvercast )
249 {
250 m_CurrOvercast = m_SldOvercast.GetCurrent() * 0.01;
251 GetGame().GetWeather().GetOvercast().Set( m_CurrOvercast, 0, 1000 );
252
254
255 return true;
256 }
257 else if ( w == m_SldRain )
258 {
259 m_CurrRain = m_SldRain.GetCurrent() * 0.01;
260 GetGame().GetWeather().GetRain().Set( m_CurrRain, 0, 1000 );
261
263
264 return true;
265 }
266 else if ( w == m_SldFog )
267 {
268 m_CurrFog = m_SldFog.GetCurrent() * 0.01;
269 GetGame().GetWeather().GetFog().Set( m_CurrFog, 0, 1000 );
270
272
273 return true;
274 }
275 else if ( w == m_SldWindForce )
276 {
277 float wind_slider = m_SldWindForce.GetCurrent() * 0.01;
278 m_CurrWindForce = GetGame().GetWeather().GetWindMaximumSpeed() * wind_slider;
279 GetGame().GetWeather().SetWindSpeed( m_CurrWindForce );
280
282
283 return true;
284 }
285
286 return false;
287 }
SliderWidget m_SldFog
Definition UIPopupScriptSceneManager.c:25
int m_CurrMonth
Definition UIPopupScriptSceneManager.c:41
int m_CurrHour
Definition UIPopupScriptSceneManager.c:43
int m_CurrDay
Definition UIPopupScriptSceneManager.c:42
int m_CurrYear
Definition UIPopupScriptSceneManager.c:40
void UpdateSliderStartDay(int month, int day)
Definition UIPopupScriptSceneManager.c:407
SliderWidget m_SldWindForce
Definition UIPopupScriptSceneManager.c:27
SliderWidget m_SldStartDay
Definition UIPopupScriptSceneManager.c:19
float m_CurrWindForce
Definition UIPopupScriptSceneManager.c:48
int m_CurrMinute
Definition UIPopupScriptSceneManager.c:44
float m_CurrOvercast
Definition UIPopupScriptSceneManager.c:45
void UpdateSliderRain()
Definition UIPopupScriptSceneManager.c:419
SliderWidget m_SldStartTime
Definition UIPopupScriptSceneManager.c:17
SliderWidget m_SldRain
Definition UIPopupScriptSceneManager.c:23
SliderWidget m_SldOvercast
Definition UIPopupScriptSceneManager.c:21
float m_CurrFog
Definition UIPopupScriptSceneManager.c:47
float m_CurrRain
Definition UIPopupScriptSceneManager.c:46
void UpdateSliderOvercast()
Definition UIPopupScriptSceneManager.c:413
void UpdateSliderWindForce()
Definition UIPopupScriptSceneManager.c:431
void UpdateSliderFog()
Definition UIPopupScriptSceneManager.c:425
static const int m_DaysInMonth[12]
Definition UIPopupScriptSceneManager.c:11
void UpdateSliderStartTime(int hour, int minute)
Definition UIPopupScriptSceneManager.c:401

Перекрестные ссылки GetGame(), UpdateSliderFog(), UpdateSliderOvercast(), UpdateSliderRain(), UpdateSliderStartDay(), UpdateSliderStartTime() и UpdateSliderWindForce().

◆ OnChange() [5/5]

override bool OnChange ( Widget w,
int x,
int y,
bool finished )
inlineprivate
116 {
117 if ( w == m_SldStartTime )
118 {
119 float slider_value_start_time = m_SldStartTime.GetCurrent() * 0.01;
122 m_CurrHour = start_time / 60;
124
126
128
129 return true;
130 }
131 else if ( w == m_SldStartDay )
132 {
133 float slider_value_start_day = m_SldStartDay.GetCurrent();
134 float start_day_f = slider_value_start_day * 3.64 + 1;
136
137 for ( int i = 0; i < 12; i++ )
138 {
139 int days = m_DaysInMonth[i];
140 if ( start_day <= days )
141 {
142 m_CurrMonth = i+1;
144 break;
145 }
146 else
147 {
148 start_day -= days;
149 }
150 }
151
153
155
156 return true;
157 }
158 else if ( w == m_SldOvercast )
159 {
161
162 m_CurrOvercast = m_SldOvercast.GetCurrent() * 0.01;
163 GetGame().GetWeather().GetOvercast().Set( m_CurrOvercast, 0, 1000 );
164
165 return true;
166 }
167 else if ( w == m_SldRain )
168 {
170
171 m_CurrRain = m_SldRain.GetCurrent() * 0.01;
172 GetGame().GetWeather().GetRain().Set( m_CurrRain, 0, 1000 );
173
174 return true;
175 }
176 else if ( w == m_SldFog )
177 {
179
180 m_CurrFog = m_SldFog.GetCurrent() * 0.01;
181 GetGame().GetWeather().GetFog().Set( m_CurrFog, 0, 1000 );
182
183 return true;
184 }
185 else if ( w == m_SldWindForce )
186 {
188
189 m_CurrWindForce = m_SldWindForce.GetCurrent() * 0.01;
190 //GetGame().GetWeather().SetWindSpeed( m_CurrWindForce );
191
192 return true;
193 }
194
195 return false;
196 }

Перекрестные ссылки GetGame(), UpdateSliderFog(), UpdateSliderOvercast(), UpdateSliderRain(), UpdateSliderStartDay(), UpdateSliderStartTime() и UpdateSliderWindForce().

◆ OnClick() [1/13]

bool OnClick ( Widget w,
int x,
int y,
int button )
inlineprivate
25 {
26 return false;
27 }

◆ OnClick() [2/13]

override bool OnClick ( Widget w,
int x,
int y,
int button )
inlineprivate
238 {
239 super.OnClick( w, x, y, button );
240
241 if ( w == m_BtnOk )
242 {
243 PopupBack();
244 return true;
245 }
246 else if ( w == m_BtnCancel )
247 {
248 PopupBack();
249 return true;
250 }
251 else if ( w == m_BtnCopyToClipboard )
252 {
254 return true;
255 }
256 else if ( w == m_ConfigHierarchyTextListbox )
257 {
258 int objects_row_index = m_ConfigHierarchyTextListbox.GetSelectedRow();
259
261 {
264
265 if ( config_params.param1 == false )
266 {
268 }
269 else
270 {
272 }
274 }
275
276 return true;
277 }
278
279 return false;
280 }
void CollapseHierarchy(int row)
Definition UIPopupScriptConfigs.c:109
ButtonWidget m_BtnOk
Definition UIPopupScriptConfigs.c:3
void RenderVariables(int row)
Definition UIPopupScriptConfigs.c:52
void AddItemToClipboard(TextListboxWidget text_listbox_widget)
Definition UIPopupScriptConfigs.c:41
ButtonWidget m_BtnCancel
Definition UIPopupScriptConfigs.c:4
void ExpandHierarchy(int row)
Definition UIPopupScriptConfigs.c:69
ButtonWidget m_BtnCopyToClipboard
Definition UIPopupScriptConfigs.c:5
UIPopupScript PopupBack()
Definition UIPopupScript.c:37

Перекрестные ссылки AddItemToClipboard(), CollapseHierarchy(), ExpandHierarchy(), PopupBack(), RenderVariables(), x и y.

◆ OnClick() [3/13]

override bool OnClick ( Widget w,
int x,
int y,
int button )
inlineprivate
39 {
40 super.OnClick(w, x, y, button);
41
42 if ( w == m_WgtTglSeleHighlight )
43 {
44 m_ModuleSceneManager.SetDrawSelection(m_WgtTglSeleHighlight.IsChecked());
45 }
46 else if ( w == m_WgtTglSavePlayerPos )
47 {
48 m_ModuleSceneManager.SetLoadPlayerPos(m_WgtTglSavePlayerPos.IsChecked());
49 }
50 else if ( w == m_BtnCancel )
51 {
52 PopupBack();
53
54 return true;
55 }
56
57 return false;
58 }
CheckBoxWidget m_WgtTglSeleHighlight
Definition UIPopupScriptEditorSettings.c:3
CheckBoxWidget m_WgtTglSavePlayerPos
Definition UIPopupScriptEditorSettings.c:4

Перекрестные ссылки PopupBack(), x и y.

◆ OnClick() [4/13]

override bool OnClick ( Widget w,
int x,
int y,
int button )
inlineprivate
54 {
55 super.OnClick(w, x, y, button);
56
57 if ( w == m_BtnRun )
58 {
59 if ( m_SceneObject != NULL )
60 {
61 string text_run;
62 m_MedxInitScript.GetText( text_run );
64 }
65 }
66 else if ( w == m_BtnSave )
67 {
68 if ( m_SceneObject != NULL )
69 {
70 string text_script;
73 }
74
75 PopupBack();
76
77 return true;
78 }
79 else if ( w == m_BtnCancel )
80 {
81 PopupBack();
82
83 return true;
84 }
85
86 return false;
87 }
void SetInitScript(string init_script)
Definition SceneObject.c:91
int m_SceneObjectIndex
Definition UIPopupScriptInitScript.c:9
SceneObject m_SceneObject
Definition UIPopupScriptInitScript.c:10
ButtonWidget m_BtnSave
Definition UIPopupScriptInitScript.c:6
ButtonWidget m_BtnRun
Definition UIPopupScriptInitScript.c:5
MultilineEditBoxWidget m_MedxInitScript
Definition UIPopupScriptInitScript.c:3

Перекрестные ссылки PopupBack(), SceneObject::SetInitScript(), x и y.

◆ OnClick() [5/13]

override bool OnClick ( Widget w,
int x,
int y,
int button )
inlineprivate
19 {
20 super.OnClick(w, x, y, button);
21
22 if ( w == m_BtnOk )
23 {
24 PopupBack();
25
26 return true;
27 }
28
29 return false;
30 }

Перекрестные ссылки PopupBack(), x и y.

◆ OnClick() [6/13]

override bool OnClick ( Widget w,
int x,
int y,
int button )
inlineprivate
56 {
57 if ( w == m_TeleportButton )
58 {
59 float pos_x = m_TxtSelectedX.GetText().ToFloat();
60 float pos_z = m_TxtSelectedY.GetText().ToFloat();
61
62 PluginSceneManager.GetInstance().SelectedObjectSetPosX( pos_x );
63 PluginSceneManager.GetInstance().SelectedObjectSetPosZ( pos_z );
64 PopupBack();
65 return true;
66 }
67 else if ( w == m_CancelButton )
68 {
69 PopupBack();
70 return true;
71 }
72 return false;
73 }
ButtonWidget m_TeleportButton
Definition UIPopupScriptPositionManager.c:9
ButtonWidget m_CancelButton
Definition UIPopupScriptPositionManager.c:10
EditBoxWidget m_TxtSelectedX
Definition UIPopupScriptPositionManager.c:4
EditBoxWidget m_TxtSelectedY
Definition UIPopupScriptPositionManager.c:5

Перекрестные ссылки PopupBack().

◆ OnClick() [7/13]

override bool OnClick ( Widget w,
int x,
int y,
int button )
inlineprivate
19 {
20 super.OnClick( w, x, y, button );
21
22 if ( w == m_BtnOk )
23 {
24 EditBoxWidget wgt_text = EditBoxWidget.Cast( m_WgtRoot.FindAnyWidget("fld_ppp_pn_new_name") );
26 m_ConfigDebugProfile.PresetAdd( wgt_text.GetText() );
27
28 SceneEditorMenu menu = SceneEditorMenu.Cast( GetGame().GetUIManager().GetMenu() );
29 menu.RefreshLists();
30 PopupBack();
31
32 return true;
33 }
34 else if ( w == m_BtnCancel )
35 {
36 PopupBack();
37
38 return true;
39 }
40
41 return false;
42 }
PluginConfigDebugProfile m_ConfigDebugProfile
Definition PluginItemDiagnostic.c:58
Definition EnWidgets.c:354
Definition PluginConfigDebugProfileFixed.c:2

Перекрестные ссылки GetGame(), GetPlugin(), m_ConfigDebugProfile, m_WgtRoot, PopupBack(), x и y.

◆ OnClick() [8/13]

override bool OnClick ( Widget w,
int x,
int y,
int button )
inlineprivate
27 {
28 super.OnClick( w, x, y, button );
29
30 if ( w == m_BtnOk )
31 {
32 EditBoxWidget wgt_text = EditBoxWidget.Cast( m_WgtRoot.FindAnyWidget("fld_ppp_pr_new_name") );
33 SceneEditorMenu menu = SceneEditorMenu.Cast( GetGame().GetUIManager().GetMenu() );
34 menu.RenamePreset( wgt_text.GetText() );
35 menu.RefreshLists();
36
37 PopupBack();
38
39 return true;
40 }
41 else if ( w == m_BtnCancel )
42 {
43 PopupBack();
44 return true;
45 }
46
47 return false;
48 }

Перекрестные ссылки GetGame(), m_WgtRoot, PopupBack(), x и y.

◆ OnClick() [9/13]

override bool OnClick ( Widget w,
int x,
int y,
int button )
inlineprivate
20 {
21 super.OnClick(w, x, y, button);
22
23 if ( w == m_BtnYes )
24 {
25 PluginSceneManager editor = PluginSceneManager.Cast( GetPlugin(PluginSceneManager) );
26
27 editor.SceneDelete(m_DeleteScene);
28
29 PopupBack();
30
31 return true;
32 }
33 else if ( w == m_BtnNo )
34 {
36 PopupBack();
37 return true;
38 }
39
40 return false;
41 }
ButtonWidget m_BtnYes
Definition UIPopupScriptSceneDelete.c:3
string m_DeleteScene
Definition UIPopupScriptSceneDelete.c:5
ButtonWidget m_BtnNo
Definition UIPopupScriptSceneDelete.c:4
const string STRING_EMPTY
Definition constants.c:54

Перекрестные ссылки GetPlugin(), PopupBack(), STRING_EMPTY, x и y.

◆ OnClick() [10/13]

override bool OnClick ( Widget w,
int x,
int y,
int button )
inlineprivate
96 {
97 super.OnClick(w, x, y, button);
98
99 string scene_name;
100 PluginSceneManager editor;
101
102 if ( w == m_BtnCancel )
103 {
105
106 Weather weather = GetGame().GetWeather();
107 weather.GetOvercast().Set( m_OrigOvercast, 0, 1000 );
108 weather.GetRain().Set( m_OrigRain, 0, 1000 );
109 weather.GetFog().Set( m_OrigFog, 0, 1000 );
110 weather.SetWindSpeed( m_OrigWindForce );
111
112 PopupBack();
113 return true;
114 }
115 else if ( w == m_BtnSceneNew )
116 {
117 PopupOpen(SceneEditorMenu.POPUP_ID_SCENE_NEW, NULL);
118
119 return true;
120 }
121 else if ( w == m_BtnSceneLoad )
122 {
123 if ( m_LstListScenes.GetSelectedRow() != -1 )
124 {
125 m_LstListScenes.GetItemText( m_LstListScenes.GetSelectedRow(), 0, scene_name );
126 editor = PluginSceneManager.Cast( GetPlugin(PluginSceneManager) );
127
128 editor.SceneLoad(scene_name);
129 PopupBack();
130
131 return true;
132 }
133 }
134 else if ( w == m_BtnSceneRename )
135 {
136 m_LstListScenes.GetItemText( m_LstListScenes.GetSelectedRow(), 0, scene_name );
137
138 UIPopupScriptSceneRename popup_rename = UIPopupScriptSceneRename.Cast( PopupOpen(SceneEditorMenu.POPUP_ID_SCENE_RENAME, NULL) );
139 popup_rename.SetRenameName(scene_name);
140
141 return true;
142 }
143 else if ( w == m_BtnSceneDuplicate )
144 {
145 if ( m_LstListScenes.GetSelectedRow() != -1 )
146 {
147 m_LstListScenes.GetItemText( m_LstListScenes.GetSelectedRow(), 0, scene_name );
148 editor = PluginSceneManager.Cast( GetPlugin(PluginSceneManager) );
149
150 editor.SceneDuplicate(scene_name);
152
153 return true;
154 }
155 }
156 else if ( w == m_BtnSceneDelete )
157 {
158 if ( m_LstListScenes.GetSelectedRow() != -1 )
159 {
160 m_LstListScenes.GetItemText( m_LstListScenes.GetSelectedRow(), 0, scene_name );
161 editor = PluginSceneManager.Cast( GetPlugin(PluginSceneManager) );
162
163 editor.SceneDelete(scene_name);
164
165 if ( editor.SceneCanDelete(scene_name) )
166 {
167 UIPopupScriptSceneDelete popup_delete = UIPopupScriptSceneDelete.Cast( PopupOpen(SceneEditorMenu.POPUP_ID_SCENE_DELETE, NULL) );
168 popup_delete.SetDeleteName(scene_name);
169 }
170 else
171 {
172 UIPopupScriptNotify popup_notify = UIPopupScriptNotify.Cast( PopupOpen(SceneEditorMenu.POPUP_ID_NOTIFY, NULL) );
173 popup_notify.SetLabelText("You cant delete current loaded scene!");
174 }
175
177 return true;
178 }
179 }
180 else if ( w == m_BtnSave )
181 {
191
192 editor = PluginSceneManager.Cast( GetPlugin(PluginSceneManager) );
195 editor.SceneSave();
196
197 PopupBack();
198
199 return true;
200 }
201
202 return false;
203 }
int m_OrigMinute
Definition UIPopupScriptSceneManager.c:34
float m_OrigFog
Definition UIPopupScriptSceneManager.c:37
float m_OrigOvercast
Definition UIPopupScriptSceneManager.c:35
ButtonWidget m_BtnSceneNew
Definition UIPopupScriptSceneManager.c:4
int m_OrigMonth
Definition UIPopupScriptSceneManager.c:31
int m_OrigYear
Definition UIPopupScriptSceneManager.c:30
UIPopupScript PopupOpen(int popup_id, Param param)
Definition UIPopupScript.c:46
ButtonWidget m_BtnSceneDuplicate
Definition UIPopupScriptSceneManager.c:7
void UIPopupScriptSceneDelete(Widget wgt)
Definition UIPopupScriptSceneDelete.c:10
void UIPopupScriptNotify(Widget wgt)
Definition UIPopupScriptNotify.c:9
int m_OrigHour
Definition UIPopupScriptSceneManager.c:33
ButtonWidget m_BtnSceneRename
Definition UIPopupScriptSceneManager.c:6
int m_OrigDay
Definition UIPopupScriptSceneManager.c:32
ButtonWidget m_BtnSceneDelete
Definition UIPopupScriptSceneManager.c:8
void UIPopupScriptSceneRename(Widget wgt)
Definition UIPopupScriptSceneRename.c:10
float m_OrigRain
Definition UIPopupScriptSceneManager.c:36
TextListboxWidget m_LstListScenes
Definition UIPopupScriptSceneManager.c:9
void UpdateSceneList()
Definition UIPopupScriptSceneManager.c:292
float m_OrigWindForce
Definition UIPopupScriptSceneManager.c:38
ButtonWidget m_BtnSceneLoad
Definition UIPopupScriptSceneManager.c:5
Definition Weather.c:165

Перекрестные ссылки GetGame(), GetPlugin(), m_CurrDay, m_CurrFog, m_CurrHour, m_CurrMinute, m_CurrMonth, m_CurrOvercast, m_CurrRain, m_CurrWindForce, m_CurrYear, PopupBack(), PopupOpen(), UpdateSceneList(), x и y.

◆ OnClick() [11/13]

override bool OnClick ( Widget w,
int x,
int y,
int button )
inlineprivate
19 {
20 super.OnClick(w, x, y, button);
21
22 if ( w == m_BtnOk )
23 {
24 EditBoxWidget wgt_text = EditBoxWidget.Cast( m_WgtRoot.FindAnyWidget("fld_ppp_sn_new_name") );
25
26 PluginSceneManager editor = PluginSceneManager.Cast( GetPlugin(PluginSceneManager) );
27
28 Log("OnClick -> SceneLoad");
29
30 editor.SceneLoad(wgt_text.GetText());
31 editor.SceneSave();
32
33 PopupBack();
34
35 return true;
36 }
37 else if ( w == m_BtnCancel )
38 {
39 PopupBack();
40
41 return true;
42 }
43
44 return false;
45 }
class LogTemplates Log(string message, LogTemplateID template_id=0)
Creates debug log (optional) from LogTemplate which are registred.
Definition LogTemplates.c:75

Перекрестные ссылки GetPlugin(), Log(), m_WgtRoot, PopupBack(), x и y.

◆ OnClick() [12/13]

override bool OnClick ( Widget w,
int x,
int y,
int button )
inlineprivate
20 {
21 super.OnClick(w, x, y, button);
22
23 if ( w == m_BtnOk )
24 {
25 EditBoxWidget wgt_text = EditBoxWidget.Cast( m_WgtRoot.FindAnyWidget("fld_ppp_sn_rnm_new_name") );
26
27 PluginSceneManager editor = PluginSceneManager.Cast( GetPlugin(PluginSceneManager) );
28
29 editor.SceneRename(m_RenameName, wgt_text.GetText());
31
32 PopupBack();
33
34 return true;
35 }
36 else if ( w == m_BtnCancel )
37 {
38 PopupBack();
39
40 return true;
41 }
42
43 return false;
44 }
string m_RenameName
Definition UIPopupScriptSceneRename.c:5

Перекрестные ссылки GetPlugin(), m_WgtRoot, PopupBack(), STRING_EMPTY, x и y.

◆ OnClick() [13/13]

override bool OnClick ( Widget w,
int x,
int y,
int button )
inlineprivate
80 {
81 super.OnClick(w, x, y, button);
82
83 if ( w == m_BtnSave )
84 {
94
95 PluginSceneManager editor = PluginSceneManager.Cast( GetPlugin(PluginSceneManager) );
98
99 PopupBack();
100
101 return true;
102 }
103 else if ( w == m_BtnCancel )
104 {
105
106 PopupBack();
107
108 return true;
109 }
110
111 return false;
112 }

Перекрестные ссылки GetPlugin(), m_CurrDay, m_CurrFog, m_CurrHour, m_CurrMinute, m_CurrMonth, m_CurrOvercast, m_CurrRain, m_CurrWindForce, m_CurrYear, PopupBack(), x и y.

◆ OnClose() [1/3]

void OnClose ( )
inlineprivate
16 {
17 }

◆ OnClose() [2/3]

override void OnClose ( )
inlineprivate
352 {
353 GetGame().GetUpdateQueue(CALL_CATEGORY_SYSTEM).Remove(this.OnUpdate);
354 }

Перекрестные ссылки CALL_CATEGORY_SYSTEM, GetGame() и OnUpdate().

◆ OnClose() [3/3]

override void OnClose ( )
inlineprivate
234 {
235 Weather weather = GetGame().GetWeather();
236
238 weather.GetOvercast().Set( m_OrigOvercast, 0, 1000 );
239 weather.GetRain().Set( m_OrigRain, 0, 1000 );
240 weather.GetFog().Set( m_OrigFog, 0, 1000 );
241 //weather.SetWindSpeed( m_OrigWindForce );
242 }

Перекрестные ссылки GetGame().

◆ OnItemSelected()

void OnItemSelected ( Widget w,
int x,
int y,
int row,
int column,
int oldRow,
int oldColumn )
inlineprivate
76 {
77 /*
78 vector position = m_ConfigDebugProfileFixed.GetPositionByNameEx( GetCurrentLocationName() );
79 m_TxtSelectedX.SetText( position[0].ToString() );
80 m_TxtSelectedY.SetText( position[2].ToString() );
81 */
82 }

◆ OnOpen() [1/8]

void OnOpen ( Param param)
inlineprivate
12 {
13 }

◆ OnOpen() [2/8]

override void OnOpen ( Param param)
inlineprivate
36 {
37 m_ModuleConfigViewer = PluginConfigViewer.Cast( GetPlugin( PluginConfigViewer ) );
39 }

Перекрестные ссылки ClearHierarchy() и GetPlugin().

◆ OnOpen() [3/8]

override void OnOpen ( Param param)
inlineprivate
29 {
30 m_WgtTglSeleHighlight.SetChecked( m_ModuleSceneManager.GetDrawSelection() );
31 m_WgtTglSavePlayerPos.SetChecked( m_ModuleSceneManager.GetLoadPlayerPos() );
32 m_EdxRotationDelta.SetText( m_ModuleSceneManager.GetRotationAngle().ToString() );
33 }

◆ OnOpen() [4/8]

override void OnOpen ( Param param)
inlineprivate
32 {
33 m_MedxInitScript.SetText( "" );
34
35 if ( param != NULL )
36 {
38 int index = param_scene_object.param1;
40
41 if ( index > -1 && scene_object != NULL )
42 {
46 }
47 }
48 }
Definition SceneObject.c:2
string GetInitScript()
Definition SceneObject.c:83

Перекрестные ссылки SceneObject::GetInitScript().

◆ OnOpen() [5/8]

override void OnOpen ( Param param)
inlineprivate
39 {
40 if( PluginSceneManager.GetInstance() )
41 {
42 if( PluginSceneManager.GetInstance().GetSelectedSceneObject() )
43 {
44 vector player_pos = PluginSceneManager.GetInstance().GetSelectedSceneObject().GetPosition();
45
46 m_TxtCurrentX.SetText( player_pos[0].ToString() );
47 m_TxtCurrentY.SetText( player_pos[2].ToString() );
48 }
49 }
50 }
proto string ToString()
EditBoxWidget m_TxtCurrentX
Definition UIPopupScriptPositionManager.c:6
EditBoxWidget m_TxtCurrentY
Definition UIPopupScriptPositionManager.c:7
Definition EnConvert.c:106

Перекрестные ссылки ToString().

◆ OnOpen() [6/8]

override void OnOpen ( Param param)
inlineprivate
18 {
19 SceneEditorMenu menu = SceneEditorMenu.Cast( GetGame().GetUIManager().GetMenu() );
20 m_Editbox.SetText( menu.GetCurrentPresetName() );
21 }
EditBoxWidget m_Editbox
Definition UIPopupScriptPresetRename.c:5

Перекрестные ссылки GetGame().

◆ OnOpen() [7/8]

override void OnOpen ( Param param)
inlineprivate
318 {
319 //Log("Poup Scene Manager OnOpen");
320
323
324 Weather weather = GetGame().GetWeather();
325 m_OrigOvercast = weather.GetOvercast().GetActual();
326 m_OrigRain = weather.GetRain().GetActual();
327 m_OrigFog = weather.GetFog().GetActual();
328 m_OrigWindForce = weather.GetWindSpeed();
329
339
340 Print( "Year" );
341 Print( m_CurrYear );
342
343 GetGame().GetUpdateQueue(CALL_CATEGORY_SYSTEM).Insert(this.OnUpdate);
344
345 ResetSliders();
346 }
void ResetSliders()
Definition UIPopupScriptSceneManager.c:367
proto void Print(void var)
Prints content of variable to console/log.

Перекрестные ссылки CALL_CATEGORY_SYSTEM, GetGame(), m_OrigDay, m_OrigFog, m_OrigHour, m_OrigMinute, m_OrigMonth, m_OrigOvercast, m_OrigRain, m_OrigWindForce, m_OrigYear, OnUpdate(), Print(), ResetSliders() и UpdateSceneList().

◆ OnOpen() [8/8]

override void OnOpen ( Param param)
inlineprivate
202 {
204
205 Weather weather = GetGame().GetWeather();
206
207 m_OrigOvercast = weather.GetOvercast().GetActual();
208 m_OrigRain = weather.GetRain().GetActual();
209 m_OrigFog = weather.GetFog().GetActual();
210 m_OrigWindForce = weather.GetWindSpeed();
211
221
222 Print( "Year" );
223 Print( m_CurrYear );
224
225 GetGame().GetUpdateQueue(CALL_CATEGORY_SYSTEM).Insert(this.OnUpdate);
226
227 ResetSliders();
228 }

Перекрестные ссылки CALL_CATEGORY_SYSTEM, GetGame(), m_OrigDay, m_OrigFog, m_OrigHour, m_OrigMinute, m_OrigMonth, m_OrigOvercast, m_OrigRain, m_OrigWindForce, m_OrigYear, OnUpdate(), Print() и ResetSliders().

◆ OnUpdate() [1/2]

void OnUpdate ( )
inlineprivate
360 {
361 m_TxtWeatherTime.SetText(GetGame().GetWeather().GetTime().ToString());
362 }
float GetTime()
Definition NotificationSystem.c:35
TextWidget m_TxtWeatherTime
Definition UIPopupScriptSceneManager.c:15

Перекрестные ссылки GetGame(), GetTime() и ToString().

◆ OnUpdate() [2/2]

void OnUpdate ( )
inlineprivate
248 {
249 m_TxtWeatherTime.SetText(GetGame().GetWeather().GetTime().ToString());
250 }

Перекрестные ссылки GetGame(), GetTime() и ToString().

◆ PopupBack()

UIPopupScript PopupBack ( )
inlineprotected
38 {
39 SceneEditorMenu menu = SceneEditorMenu.Cast( GetGame().GetUIManager().GetMenu() );
40 return menu.PopupBack();
41 }

Перекрестные ссылки GetGame().

Используется в OnClick().

◆ PopupOpen()

UIPopupScript PopupOpen ( int popup_id,
Param param )
inlineprotected
47 {
48 SceneEditorMenu menu = SceneEditorMenu.Cast( GetGame().GetUIManager().GetMenu() );
49 return menu.PopupOpen(popup_id, param);
50 }

Перекрестные ссылки GetGame().

Используется в OnClick().

◆ RenderVariables()

void RenderVariables ( int row)
inlineprivate
53 {
55 if( row > -1 && row < m_ConfigHierarchyTextListbox.GetNumItems() )
56 {
60 string path = config_params.param4;
61 variables = m_ModuleConfigViewer.GetConfigVariables( path );
62 for ( int i = 0; i < variables.Count(); i++ )
63 {
65 }
66 }
67 }
string path
Definition OptionSelectorMultistate.c:142

Перекрестные ссылки path.

Используется в OnClick().

◆ ResetSliders() [1/2]

void ResetSliders ( )
inlineprivate
368 {
369 int year, month, day, hour, minute;
370 GetGame().GetWorld().GetDate( year, month, day, hour, minute );
371 m_SldStartTime.SetCurrent( ((hour * 60) + minute) / 14.39 );
373
374 float start_day = day;
375 int month_tmp = month;
376 while ( month_tmp > 1 )
377 {
378 month_tmp--;
380 }
381 m_SldStartDay.SetCurrent( start_day / 3.64 );
383
384 Weather weather = GetGame().GetWeather();
385
386 m_SldOvercast.SetCurrent(weather.GetOvercast().GetActual() * 100);
388
389 m_SldRain.SetCurrent(weather.GetRain().GetActual() * 100);
391
392 m_SldFog.SetCurrent(weather.GetFog().GetActual() * 100);
394
395 float wind_slider = m_SldWindForce.GetCurrent() * 0.01;
396 m_CurrWindForce = weather.GetWindMaximumSpeed() * wind_slider;
397 weather.SetWindSpeed( m_CurrWindForce );
399 }

Перекрестные ссылки GetGame(), UpdateSliderFog(), UpdateSliderOvercast(), UpdateSliderRain(), UpdateSliderStartDay(), UpdateSliderStartTime() и UpdateSliderWindForce().

Используется в OnOpen().

◆ ResetSliders() [2/2]

void ResetSliders ( )
inlineprivate
256 {
257 int year, month, day, hour, minute;
258 GetGame().GetWorld().GetDate( year, month, day, hour, minute );
259 m_SldStartTime.SetCurrent( ((hour * 60) + minute) / 14.39 );
261
262 float start_day = day;
263 int month_tmp = month;
264 while ( month_tmp > 1 )
265 {
266 month_tmp--;
268 }
269 m_SldStartDay.SetCurrent( start_day / 3.64 );
271
272 Weather weather = GetGame().GetWeather();
273
274 m_SldOvercast.SetCurrent(weather.GetOvercast().GetActual() * 100);
276
277 m_SldRain.SetCurrent(weather.GetRain().GetActual() * 100);
279
280 m_SldFog.SetCurrent(weather.GetFog().GetActual() * 100);
282
283 float slider_wind_value = ( weather.GetWindSpeed() / weather.GetWindMaximumSpeed() ) * 100;
284 m_SldWindForce.SetCurrent( slider_wind_value );
286 }

Перекрестные ссылки GetGame(), UpdateSliderFog(), UpdateSliderOvercast(), UpdateSliderRain(), UpdateSliderStartDay(), UpdateSliderStartTime() и UpdateSliderWindForce().

◆ SetDeleteName()

void SetDeleteName ( string scene_name)
inlineprivate
44 {
46 }

◆ SetLabelText()

void SetLabelText ( string text)
inlineprivate
36 {
37 m_TxtLabel.SetText(text);
38 }
TextWidget m_TxtLabel
Definition UIPopupScriptNotify.c:4

◆ SetRenameName()

void SetRenameName ( string rename_name)
inlineprivate
50 {
52 }

◆ Show()

void Show ( bool show)
inlineprivate
20 {
21 m_WgtRoot.Show(show);
22 }

Перекрестные ссылки m_WgtRoot.

Используется в UIScriptedMenu::PopupOpen().

◆ UIPopupScriptConfigs()

void UIPopupScriptConfigs ( Widget wgt)
inlineprivate
15 {
16 m_BtnOk = ButtonWidget.Cast( wgt.FindAnyWidget("btn_ppp_pc_ok") );
17 m_ConfigHierarchyTextListbox = TextListboxWidget.Cast( wgt.FindAnyWidget("ConfigHierarchy") );
18 m_ConfigVariablesTextListbox = TextListboxWidget.Cast( wgt.FindAnyWidget("ConfigVariables") );
19 m_BtnCopyToClipboard = ButtonWidget.Cast( wgt.FindAnyWidget("btn_ppp_pc_copy") );
20 m_ObjectConfigFilter = EditBoxWidget.Cast( wgt.FindAnyWidget("ObjectConfigFilter") );
21 }

◆ UIPopupScriptEditorSettings()

void UIPopupScriptEditorSettings ( Widget wgt)
inlineprivate
15 {
16 m_ModuleSceneManager = PluginSceneManager.Cast( GetPlugin(PluginSceneManager) );
17
18 m_WgtTglSeleHighlight = CheckBoxWidget.Cast( wgt.FindAnyWidget("cbx_ppp_est_flag_selection") );
19 m_WgtTglSavePlayerPos = CheckBoxWidget.Cast( wgt.FindAnyWidget("cbx_ppp_est_flag_load_player_pos") );
20 m_EdxRotationDelta = EditBoxWidget.Cast( wgt.FindAnyWidget("ebx_ppp_est_rotation_delta_value") );
21
22 m_BtnCancel = ButtonWidget.Cast( wgt.FindAnyWidget("btn_ppp_est_cancel") );
23 }

Перекрестные ссылки GetPlugin().

◆ UIPopupScriptInitScript()

void UIPopupScriptInitScript ( Widget wgt)
inlineprivate
18 {
19 m_ModuleSceneManager = PluginSceneManager.Cast( GetPlugin(PluginSceneManager) );
20
21 m_MedxInitScript = MultilineEditBoxWidget.Cast( wgt.FindAnyWidget("pnl_ppp_is_init_script_value") );
22
23 m_BtnRun = ButtonWidget.Cast( wgt.FindAnyWidget("btn_ppp_is_run") );
24 m_BtnSave = ButtonWidget.Cast( wgt.FindAnyWidget("btn_ppp_is_save") );
25 m_BtnCancel = ButtonWidget.Cast( wgt.FindAnyWidget("btn_ppp_is_cancel") );
26 }

Перекрестные ссылки GetPlugin().

◆ UIPopupScriptNotify()

void UIPopupScriptNotify ( Widget wgt)
inlineprivate
10 {
11 m_BtnOk = ButtonWidget.Cast( wgt.FindAnyWidget("btn_ppp_notify_ok") );
12 m_TxtLabel = TextWidget.Cast( wgt.FindAnyWidget("txt_ppp_notify_label") );
13 }
Definition EnWidgets.c:220

◆ UIPopupScriptPositionManager()

void UIPopupScriptPositionManager ( Widget wgt)
inlineprivate
16 {
17 m_ConfigDebugProfileFixed = PluginConfigDebugProfileFixed.Cast( GetPlugin( PluginConfigDebugProfileFixed ) );
18 m_LstPositionList = TextListboxWidget.Cast( wgt.FindAnyWidget("tls_ppp_pm_positions_list") );
19 m_TxtSelectedX = EditBoxWidget.Cast( wgt.FindAnyWidget("pnl_ppp_pm_selected_x_value") );
20 m_TxtSelectedY = EditBoxWidget.Cast( wgt.FindAnyWidget("pnl_ppp_pm_selected_y_value") );
21 m_TxtCurrentX = EditBoxWidget.Cast( wgt.FindAnyWidget("pnl_ppp_pm_current_x_value") );
22 m_TxtCurrentY = EditBoxWidget.Cast( wgt.FindAnyWidget("pnl_ppp_pm_current_y_value") );
23 m_TeleportButton = ButtonWidget.Cast( wgt.FindAnyWidget("btn_ppp_pm_teleport") );
24 m_CancelButton = ButtonWidget.Cast( wgt.FindAnyWidget("btn_ppp_pm_cancel") );
25 /*
26 TStringArray positions_array = new TStringArray;
27 m_ConfigDebugProfileFixed.GetAllPositionsNames( positions_array );
28
29 for ( int i = 0; i < positions_array.Count(); i++ )
30 {
31 m_LstPositionList.AddItem( positions_array.Get(i), new LocationParams ( positions_array.Get(i), false, vector.Zero), 0);
32 }*/
33 }
PluginConfigDebugProfileFixed m_ConfigDebugProfileFixed
Definition UIPopupScriptPositionManager.c:8

Перекрестные ссылки GetPlugin().

◆ UIPopupScriptPresetNew()

void UIPopupScriptPresetNew ( Widget wgt)
inlineprivate
10 {
11 m_BtnOk = ButtonWidget.Cast( wgt.FindAnyWidget("btn_ppp_pn_ok") );
12 m_BtnCancel = ButtonWidget.Cast( wgt.FindAnyWidget("btn_ppp_pn_cancel") );
13 }

◆ UIPopupScriptPresetRename()

void UIPopupScriptPresetRename ( Widget wgt)
inlineprivate
11 {
12 m_BtnOk = ButtonWidget.Cast( wgt.FindAnyWidget("btn_ppp_pr_ok") );
13 m_BtnCancel = ButtonWidget.Cast( wgt.FindAnyWidget("btn_ppp_pr_cancel") );
14 m_Editbox = EditBoxWidget.Cast( wgt.FindAnyWidget("fld_ppp_pr_new_name") );
15 }

◆ UIPopupScriptSceneDelete()

void UIPopupScriptSceneDelete ( Widget wgt)
inlineprivate
11 {
12 m_BtnYes = ButtonWidget.Cast( wgt.FindAnyWidget("btn_ppp_sn_dlt_yes") );
13 m_BtnNo = ButtonWidget.Cast( wgt.FindAnyWidget("btn_ppp_sn_dlt_no") );
14 }

◆ UIPopupScriptSceneManager()

void UIPopupScriptSceneManager ( Widget wgt)
inlineprivate
54 {
55 m_BtnCancel = ButtonWidget.Cast( wgt.FindAnyWidget("btn_ppp_sm_cancel") );
56 m_BtnSceneNew = ButtonWidget.Cast( wgt.FindAnyWidget("btn_ppp_sm_mission_new") );
57 m_BtnSceneLoad = ButtonWidget.Cast( wgt.FindAnyWidget("btn_ppp_sm_mission_load") );
58 m_BtnSceneRename = ButtonWidget.Cast( wgt.FindAnyWidget("btn_ppp_sm_mission_rename") );
59 m_BtnSceneDelete = ButtonWidget.Cast( wgt.FindAnyWidget("btn_ppp_sm_mission_delete") );
60 m_BtnSceneDuplicate = ButtonWidget.Cast( wgt.FindAnyWidget("btn_ppp_sm_mission_duplicate") );
61
62 m_LstListScenes = TextListboxWidget.Cast( wgt.FindAnyWidget("tls_ppp_sm_scene_list") );
63
64 m_BtnSave = ButtonWidget.Cast( wgt.FindAnyWidget("btn_ppp_st_save") );
65
66 m_TxtWeatherTime = TextWidget.Cast( wgt.FindAnyWidget("txt_ppp_st_w_time_value") );
67
68 m_SldStartTime = SliderWidget.Cast( wgt.FindAnyWidget("sld_ppp_st_start_time") );
69 m_TxtStartTimeValue = TextWidget.Cast( wgt.FindAnyWidget("txt_ppp_st_start_time_value") );
70
71 m_SldStartDay = SliderWidget.Cast( wgt.FindAnyWidget("sld_ppp_st_start_day") );
72 m_TxtStartDayValue = TextWidget.Cast( wgt.FindAnyWidget("txt_ppp_st_start_day_value") );
73
74 m_SldOvercast = SliderWidget.Cast( wgt.FindAnyWidget("sld_ppp_st_overcast") );
75 m_TxtOvercastValue = TextWidget.Cast( wgt.FindAnyWidget("txt_ppp_st_overcast_value") );
76
77 m_SldRain = SliderWidget.Cast( wgt.FindAnyWidget("sld_ppp_st_rain") );
78 m_TxtRainValue = TextWidget.Cast( wgt.FindAnyWidget("txt_ppp_st_rain_value") );
79
80 m_SldFog = SliderWidget.Cast( wgt.FindAnyWidget("sld_ppp_st_fog") );
81 m_TxtFogValue = TextWidget.Cast( wgt.FindAnyWidget("txt_ppp_st_fog_value") );
82
83 m_SldWindForce = SliderWidget.Cast( wgt.FindAnyWidget("sld_ppp_st_wind_force") );
84 m_TxtWindForceValue = TextWidget.Cast( wgt.FindAnyWidget("txt_ppp_st_wind_force_value") );
85 }
TextWidget m_TxtRainValue
Definition UIPopupScriptSceneManager.c:24
TextWidget m_TxtFogValue
Definition UIPopupScriptSceneManager.c:26
TextWidget m_TxtWindForceValue
Definition UIPopupScriptSceneManager.c:28
TextWidget m_TxtOvercastValue
Definition UIPopupScriptSceneManager.c:22
TextWidget m_TxtStartTimeValue
Definition UIPopupScriptSceneManager.c:18
TextWidget m_TxtStartDayValue
Definition UIPopupScriptSceneManager.c:20

◆ UIPopupScriptSceneNew()

void UIPopupScriptSceneNew ( Widget wgt)
inlineprivate
10 {
11 m_BtnOk = ButtonWidget.Cast( wgt.FindAnyWidget("btn_ppp_sn_ok") );
12 m_BtnCancel = ButtonWidget.Cast( wgt.FindAnyWidget("btn_ppp_sn_cancel") );
13 }

◆ UIPopupScriptSceneRename()

void UIPopupScriptSceneRename ( Widget wgt)
inlineprivate
11 {
12 m_BtnOk = ButtonWidget.Cast( wgt.FindAnyWidget("btn_ppp_sn_rnm_ok") );
13 m_BtnCancel = ButtonWidget.Cast( wgt.FindAnyWidget("btn_ppp_sn_rnm_cancel") );
14 }

◆ UIPopupScriptSceneSettings()

void UIPopupScriptSceneSettings ( Widget wgt)
inlineprivate
47 {
48 m_BtnSave = ButtonWidget.Cast( wgt.FindAnyWidget("btn_ppp_st_save") );
49 m_BtnCancel = ButtonWidget.Cast( wgt.FindAnyWidget("btn_ppp_st_cancel") );
50
51 m_TxtWeatherTime = TextWidget.Cast( wgt.FindAnyWidget("txt_ppp_st_w_time_value") );
52
53 m_SldStartTime = SliderWidget.Cast( wgt.FindAnyWidget("sld_ppp_st_start_time") );
54 m_TxtStartTimeValue = TextWidget.Cast( wgt.FindAnyWidget("txt_ppp_st_start_time_value") );
55
56 m_SldStartDay = SliderWidget.Cast( wgt.FindAnyWidget("sld_ppp_st_start_day") );
57 m_TxtStartDayValue = TextWidget.Cast( wgt.FindAnyWidget("txt_ppp_st_start_day_value") );
58
59 m_SldOvercast = SliderWidget.Cast( wgt.FindAnyWidget("sld_ppp_st_overcast") );
60 m_TxtOvercastValue = TextWidget.Cast( wgt.FindAnyWidget("txt_ppp_st_overcast_value") );
61
62 m_SldRain = SliderWidget.Cast( wgt.FindAnyWidget("sld_ppp_st_rain") );
63 m_TxtRainValue = TextWidget.Cast( wgt.FindAnyWidget("txt_ppp_st_rain_value") );
64
65 m_SldFog = SliderWidget.Cast( wgt.FindAnyWidget("sld_ppp_st_fog") );
66 m_TxtFogValue = TextWidget.Cast( wgt.FindAnyWidget("txt_ppp_st_fog_value") );
67
68 m_SldWindForce = SliderWidget.Cast( wgt.FindAnyWidget("sld_ppp_st_wind_force") );
69 m_TxtWindForceValue = TextWidget.Cast( wgt.FindAnyWidget("txt_ppp_st_wind_force_value") );
70 }

◆ UpdateSceneList()

void UpdateSceneList ( )
inlineprivate
293 {
294 m_LstListScenes.ClearItems();
295
296 PluginSceneManager editor = PluginSceneManager.Cast( GetPlugin(PluginSceneManager) );
297
298 TStringArray scene_list = editor.GetSceneList();
299 string loaded_scene_name = editor.SceneGetName();
300
301 for ( int i = 0; i < scene_list.Count(); ++i )
302 {
303 string scene_name = scene_list.Get(i);
304
305 m_LstListScenes.AddItem(scene_name, NULL, 0);
306
308 {
309 m_LstListScenes.SelectRow(i);
310 }
311 }
312 }

Перекрестные ссылки GetPlugin().

Используется в OnClick() и OnOpen().

◆ UpdateSliderFog() [1/2]

void UpdateSliderFog ( )
inlineprivate
426 {
427 string label_text = m_SldFog.GetCurrent().ToString()+"%";
428 m_TxtFogValue.SetText( label_text );
429 }

Используется в OnChange() и ResetSliders().

◆ UpdateSliderFog() [2/2]

void UpdateSliderFog ( )
inlineprivate
313 {
314 string label_text = m_SldFog.GetCurrent().ToString()+"%";
315 m_TxtFogValue.SetText( label_text );
316 }

◆ UpdateSliderOvercast() [1/2]

void UpdateSliderOvercast ( )
inlineprivate
414 {
415 string label_text = m_SldOvercast.GetCurrent().ToString()+"%";
417 }

Используется в OnChange() и ResetSliders().

◆ UpdateSliderOvercast() [2/2]

void UpdateSliderOvercast ( )
inlineprivate
301 {
302 string label_text = m_SldOvercast.GetCurrent().ToString()+"%";
304 }

◆ UpdateSliderRain() [1/2]

void UpdateSliderRain ( )
inlineprivate
420 {
421 string label_text = m_SldRain.GetCurrent().ToString()+"%";
422 m_TxtRainValue.SetText( label_text );
423 }

Используется в OnChange() и ResetSliders().

◆ UpdateSliderRain() [2/2]

void UpdateSliderRain ( )
inlineprivate
307 {
308 string label_text = m_SldRain.GetCurrent().ToString()+"%";
309 m_TxtRainValue.SetText( label_text );
310 }

◆ UpdateSliderStartDay() [1/2]

void UpdateSliderStartDay ( int month,
int day )
inlineprivate
408 {
409 string label_text = day.ToString() + "." + month.ToString() + ". " + m_CurrYear.ToString();
411 }

Используется в OnChange() и ResetSliders().

◆ UpdateSliderStartDay() [2/2]

void UpdateSliderStartDay ( int month,
int day )
inlineprivate
295 {
296 string label_text = day.ToString() + "." + month.ToString() + ". " + m_CurrYear.ToString();
298 }

◆ UpdateSliderStartTime() [1/2]

void UpdateSliderStartTime ( int hour,
int minute )
inlineprivate
402 {
403 string label_text = hour.ToStringLen(2) + ":" + minute.ToStringLen(2);
405 }

Используется в OnChange() и ResetSliders().

◆ UpdateSliderStartTime() [2/2]

void UpdateSliderStartTime ( int hour,
int minute )
inlineprivate
289 {
290 string label_text = hour.ToStringLen(2) + ":" + minute.ToStringLen(2);
292 }

◆ UpdateSliderWindForce() [1/2]

void UpdateSliderWindForce ( )
inlineprivate
432 {
433 string label_text = m_CurrWindForce.ToString()+"ms";
435 }
proto string ToString()

Перекрестные ссылки float::ToString().

Используется в OnChange() и ResetSliders().

◆ UpdateSliderWindForce() [2/2]

void UpdateSliderWindForce ( )
inlineprivate
319 {
320 string label_text = m_SldWindForce.GetCurrent().ToString()+"%";
322 }

Поля

◆ m_BtnCancel

ButtonWidget m_BtnCancel
private

◆ m_BtnCopyToClipboard

ButtonWidget m_BtnCopyToClipboard
private

◆ m_BtnNo

ButtonWidget m_BtnNo
private

◆ m_BtnOk

ButtonWidget m_BtnOk
private

◆ m_BtnRun

ButtonWidget m_BtnRun
private

◆ m_BtnSave

ButtonWidget m_BtnSave
private

◆ m_BtnSceneDelete

ButtonWidget m_BtnSceneDelete
private

◆ m_BtnSceneDuplicate

ButtonWidget m_BtnSceneDuplicate
private

◆ m_BtnSceneLoad

ButtonWidget m_BtnSceneLoad
private

◆ m_BtnSceneNew

ButtonWidget m_BtnSceneNew
private

◆ m_BtnSceneRename

ButtonWidget m_BtnSceneRename
private

◆ m_BtnYes

ButtonWidget m_BtnYes
private

◆ m_CancelButton

ButtonWidget m_CancelButton
private

◆ m_ConfigDebugProfileFixed

PluginConfigDebugProfileFixed m_ConfigDebugProfileFixed
private

◆ m_ConfigHierarchyTextListbox

TextListboxWidget m_ConfigHierarchyTextListbox
private

◆ m_ConfigVariablesTextListbox

TextListboxWidget m_ConfigVariablesTextListbox
private

◆ m_CurrDay

int m_CurrDay
private

Используется в OnClick().

◆ m_CurrFog

float m_CurrFog
private

Используется в OnClick().

◆ m_CurrHour

int m_CurrHour
private

Используется в OnClick().

◆ m_CurrMinute

int m_CurrMinute
private

Используется в OnClick().

◆ m_CurrMonth

int m_CurrMonth
private

Используется в OnClick().

◆ m_CurrOvercast

float m_CurrOvercast
private

Используется в OnClick().

◆ m_CurrRain

float m_CurrRain
private

Используется в OnClick().

◆ m_CurrWindForce

float m_CurrWindForce
private

Используется в OnClick().

◆ m_CurrYear

int m_CurrYear
private

Используется в OnClick().

◆ m_DaysInMonth

static const int m_DaysInMonth = { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }
staticprivate
11{ 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 };

◆ m_DeleteScene

string m_DeleteScene
private

◆ m_Editbox

EditBoxWidget m_Editbox
private

◆ m_EdxRotationDelta

EditBoxWidget m_EdxRotationDelta
private

◆ m_LstListScenes

TextListboxWidget m_LstListScenes
private

◆ m_LstPositionList

TextListboxWidget m_LstPositionList
private

◆ m_MedxInitScript

MultilineEditBoxWidget m_MedxInitScript
private

◆ m_ModuleConfigViewer

PluginConfigViewer m_ModuleConfigViewer
private

◆ m_ModuleSceneManager

PluginSceneManager m_ModuleSceneManager
private

◆ m_ObjectConfigFilter

EditBoxWidget m_ObjectConfigFilter
private

◆ m_OrigDay

int m_OrigDay
private

Используется в OnOpen().

◆ m_OrigFog

float m_OrigFog
private

Используется в OnOpen().

◆ m_OrigHour

int m_OrigHour
private

Используется в OnOpen().

◆ m_OrigMinute

int m_OrigMinute
private

Используется в OnOpen().

◆ m_OrigMonth

int m_OrigMonth
private

Используется в OnOpen().

◆ m_OrigOvercast

float m_OrigOvercast
private

Используется в OnOpen().

◆ m_OrigRain

float m_OrigRain
private

Используется в OnOpen().

◆ m_OrigWindForce

float m_OrigWindForce
private

Используется в OnOpen().

◆ m_OrigYear

int m_OrigYear
private

Используется в OnOpen().

◆ m_RenameName

string m_RenameName
private

◆ m_SceneObject

SceneObject m_SceneObject
private

◆ m_SceneObjectIndex

int m_SceneObjectIndex
private

◆ m_SldFog

SliderWidget m_SldFog
private

◆ m_SldOvercast

SliderWidget m_SldOvercast
private

◆ m_SldRain

SliderWidget m_SldRain
private

◆ m_SldStartDay

SliderWidget m_SldStartDay
private

◆ m_SldStartTime

SliderWidget m_SldStartTime
private

◆ m_SldWindForce

SliderWidget m_SldWindForce
private

◆ m_TeleportButton

ButtonWidget m_TeleportButton
private

◆ m_TxtCurrentX

EditBoxWidget m_TxtCurrentX
private

◆ m_TxtCurrentY

EditBoxWidget m_TxtCurrentY
private

◆ m_TxtFogValue

TextWidget m_TxtFogValue
private

◆ m_TxtLabel

TextWidget m_TxtLabel
private

◆ m_TxtOvercastValue

TextWidget m_TxtOvercastValue
private

◆ m_TxtRainValue

TextWidget m_TxtRainValue
private

◆ m_TxtSelectedX

EditBoxWidget m_TxtSelectedX
private

◆ m_TxtSelectedY

EditBoxWidget m_TxtSelectedY
private

◆ m_TxtStartDayValue

TextWidget m_TxtStartDayValue
private

◆ m_TxtStartTimeValue

TextWidget m_TxtStartTimeValue
private

◆ m_TxtWeatherTime

TextWidget m_TxtWeatherTime
private

◆ m_TxtWindForceValue

TextWidget m_TxtWindForceValue
private

◆ m_WgtRoot

Widget m_WgtRoot
protected

Используется в Show() и UIPopupScript().

◆ m_WgtTglSavePlayerPos

CheckBoxWidget m_WgtTglSavePlayerPos
private

◆ m_WgtTglSeleHighlight

CheckBoxWidget m_WgtTglSeleHighlight
private

Объявления и описания членов классов находятся в файлах: