4 protected const string SCENE_DRAW_SELECTION =
"scene_editor_draw_selection";
5 protected const string SCENE_LOAD_PLAYER_POS =
"scene_editor_load_player_pos";
6 protected const string SCENE_ROTATION_ANGLE =
"scene_editor_rotation_angle";
7 protected const string ITEM_TAB_SELECTED =
"console_TabSelected";
8 protected const string PRESET_LIST =
"console_presets";
9 protected const string PRESET_DEFAULT =
"console_preset_default";
10 protected const string ITEM_SEARCH =
"console_ItemSearch";
11 protected const string SPAWN_DISTANCE =
"console_SpawnDistance";
12 protected const string CHAR_STATS_VIS =
"console_character_stats_visible";
13 protected const string CHAR_LEVELS_VIS =
"console_character_levels_visible";
14 protected const string CHAR_MODIFIERS_VIS =
"console_character_modifiers_visible";
15 protected const string CHAR_AGENTS_VIS =
"console_character_agents_visible";
16 protected const string CHAR_DEBUG_VIS =
"console_character_debug_visible";
17 protected const string CHAR_STOMACH_VIS =
"console_character_stomach_visible";
18 protected const string FREE_CAMERA_CROSSHAIR =
"console_free_camera_crosshair_visible";
19 protected const string VERSION_VIS =
"console_version_visible";
20 protected const string MERGE_TYPE =
"category_merge_type";
21 protected const string TEMP_VIS =
"console_temperature_visible";
22 protected const string SUB_PARAM_ITEM =
"item";
23 protected const string SUB_PARAM_ITEM_NAME =
"name";
24 protected const string SUB_PARAM_ITEM_HEALTH =
"health";
25 protected const string SUB_PARAM_ITEM_QUANTITY =
"quantity";
26 protected const string SUB_PARAM_ITEM_WITH_PHYSICS =
"with_physics";
27 protected const string LOGS_ENABLED =
"logs_enabled";
28 protected const string CONFIG_CLASSES_FLAG =
"toggled_config_classes_flag";
29 protected const string ITEM_CATEGORY_FLAG =
"toggled_item_categories_flag";
30 protected const string ITEM_PREVIEW =
"show_item_preview";
31 protected const string BATCH_RECT =
"batch_spawn_rect";
32 protected const string BATCH_QUANT =
"batch_spawn_quantity";
33 protected const string SOUNDFILTER =
"soundset_editbox";
34 protected const string ITEMDEBUG =
"item_debug";
35 protected const string SPAWN_LOC_INDEX =
"spawn_loc_index";
36 protected const string FILTER_REVERSED =
"filter_order_reversed";
40 protected const string POSITION_NAME_ROOT =
"console_positions_";
55 CfgParamArray
param =
new CfgParamArray(
"");
65 CfgParamBool
param =
new CfgParamBool(
"");
75 CfgParamFloat
param =
new CfgParamFloat(
"");
85 CfgParamInt
param =
new CfgParamInt(
"");
95 CfgParamString
param =
new CfgParamString(
"");
116 return param.GetValues();
120 if (m_DefaultValues.Contains(
key))
146 return param.GetValue();
150 if (m_DefaultValues.Contains(
key))
156 return SetBool(
key,
false).GetValue();
176 return param.GetValue();
180 if (m_DefaultValues.Contains(
key))
186 return SetFloat(
key, 0.0).GetValue();
206 return param.GetValue();
210 if (m_DefaultValues.Contains(
key))
216 return SetInt(
key, 0).GetValue();
239 return param.GetValue();
242 if (m_DefaultValues.Contains(
key))
244 CfgParamString
default_param = CfgParamString.Cast(m_DefaultValues.Get(
key));
250 return SetString(
key,
"").GetValue();
258 for (
int i = 0;
i <
items.Count();
i++)
280 m_DefaultValues.Insert(SCENE_DRAW_SELECTION, GetNewCfgParamBool(
true));
281 m_DefaultValues.Insert(SCENE_LOAD_PLAYER_POS, GetNewCfgParamBool(
true));
282 m_DefaultValues.Insert(SCENE_ROTATION_ANGLE, GetNewCfgParamInt(15));
283 m_DefaultValues.Insert(ITEM_TAB_SELECTED, GetNewCfgParamInt(0));
284 m_DefaultValues.Insert(PRESET_DEFAULT, GetNewCfgParamString(
""));
285 m_DefaultValues.Insert(ITEM_SEARCH, GetNewCfgParamString(
""));
286 m_DefaultValues.Insert(SPAWN_DISTANCE, GetNewCfgParamFloat(0.0));
287 m_DefaultValues.Insert(LOGS_ENABLED, GetNewCfgParamBool(
true));
288 m_DefaultValues.Insert(CHAR_STATS_VIS, GetNewCfgParamBool(
false));
289 m_DefaultValues.Insert(CHAR_LEVELS_VIS, GetNewCfgParamBool(
false));
290 m_DefaultValues.Insert(CHAR_MODIFIERS_VIS, GetNewCfgParamBool(
false));
291 m_DefaultValues.Insert(CHAR_AGENTS_VIS, GetNewCfgParamBool(
false));
292 m_DefaultValues.Insert(CHAR_DEBUG_VIS, GetNewCfgParamBool(
false));
293 m_DefaultValues.Insert(FREE_CAMERA_CROSSHAIR, GetNewCfgParamBool(
true));
294 m_DefaultValues.Insert(VERSION_VIS, GetNewCfgParamBool(
true));
295 m_DefaultValues.Insert(CONFIG_CLASSES_FLAG, GetNewCfgParamInt(15));
296 m_DefaultValues.Insert(TEMP_VIS, GetNewCfgParamBool(
false));
297 m_DefaultValues.Insert(MERGE_TYPE, GetNewCfgParamBool(
false));
298 m_DefaultValues.Insert(ITEM_PREVIEW, GetNewCfgParamBool(
true));
299 m_DefaultValues.Insert(BATCH_RECT, GetNewCfgParamArray(GetDefaultBatchRectParams()));
300 m_DefaultValues.Insert(BATCH_QUANT, GetNewCfgParamInt(10));
301 m_DefaultValues.Insert(SOUNDFILTER, GetNewCfgParamString(
""));
302 m_DefaultValues.Insert(ITEMDEBUG, GetNewCfgParamString(
"0 0 0"));
303 m_DefaultValues.Insert(SPAWN_LOC_INDEX, GetNewCfgParamInt(0));
304 m_DefaultValues.Insert(FILTER_REVERSED, GetNewCfgParamBool(
false));
310 CfgParamInt param1 =
new CfgParamInt(
"");
312 CfgParamInt param2 =
new CfgParamInt(
"");
314 CfgParamFloat param3 =
new CfgParamFloat(
"");
315 param3.SetValue(1.0);
316 CfgParamFloat param4 =
new CfgParamFloat(
"");
317 param4.SetValue(1.0);
339 CfgParamString
param = CfgParamString.Cast(
params.Get(
i));
340 m_PresetList.Insert(
param.GetValue());
350 return "$profile:debugProfile.cfg";
365 return GetBool(SCENE_DRAW_SELECTION);
370 SetBool(SCENE_DRAW_SELECTION,
value);
378 return GetBool(SCENE_LOAD_PLAYER_POS);
383 SetBool(SCENE_LOAD_PLAYER_POS,
value);
391 return GetInt(SCENE_ROTATION_ANGLE);
396 SetInt(SCENE_ROTATION_ANGLE,
value);
404 return GetInt(ITEM_TAB_SELECTED);
409 SetInt(ITEM_TAB_SELECTED,
value);
417 return GetInt(SPAWN_LOC_INDEX);
422 SetInt(SPAWN_LOC_INDEX,
value);
430 return GetBool(FILTER_REVERSED);
443 return GetString(PRESET_DEFAULT);
448 SetString(PRESET_DEFAULT,
value);
456 return GetArray(BATCH_RECT);
463 CfgParamString
param;
465 CfgParamInt param1 =
new CfgParamInt(
"");
466 param1.SetValue(
row);
467 CfgParamInt param2 =
new CfgParamInt(
"");
469 CfgParamFloat param3 =
new CfgParamFloat(
"");
471 CfgParamFloat param4 =
new CfgParamFloat(
"");
486 return GetInt(BATCH_QUANT);
491 SetInt(BATCH_QUANT,
value);
498 return GetString(ITEM_SEARCH);
503 SetString(ITEM_SEARCH,
value);
511 return GetFloat(SPAWN_DISTANCE);
516 SetFloat(SPAWN_DISTANCE,
value);
524 return GetBool(LOGS_ENABLED);
529 SetBool(LOGS_ENABLED,
value);
537 return GetBool(CHAR_LEVELS_VIS);
552 SetString(ITEMDEBUG, pos.
ToString(
false));
558 return GetString(ITEMDEBUG).ToVector();
566 return GetBool(CHAR_STATS_VIS);
580 return GetBool(CHAR_MODIFIERS_VIS);
593 return GetBool(CHAR_AGENTS_VIS);
606 return GetBool(CHAR_DEBUG_VIS);
619 return GetBool(CHAR_STOMACH_VIS);
632 return GetBool(FREE_CAMERA_CROSSHAIR);
645 return GetBool(VERSION_VIS);
658 return GetBool(MERGE_TYPE);
671 return GetString(SOUNDFILTER);
676 SetString(SOUNDFILTER,
content);
684 return GetBool(TEMP_VIS);
697 return GetBool(ITEM_PREVIEW);
702 SetBool(ITEM_PREVIEW, show);
711 return GetInt(CONFIG_CLASSES_FLAG);
716 SetInt(CONFIG_CLASSES_FLAG,
flag);
725 return GetInt(ITEM_CATEGORY_FLAG);
730 SetInt(ITEM_CATEGORY_FLAG,
flag);
770 CfgParamArray
param = CfgParamArray.Cast(
params.Get(
i));
772 CfgParamString
par = CfgParamString.Cast(
prms.Get(0));
795 CfgParamString
param;
799 param =
new CfgParamString(
"");
820 CfgParamString
param = CfgParamString.Cast(
params.Get(
i));
883 CfgParamString
param =
new CfgParamString(SUB_PARAM_ITEM_NAME);
886 CfgParamArray
item_params =
new CfgParamArray(SUB_PARAM_ITEM);
989 CfgParamFloat
new_param =
new CfgParamFloat(SUB_PARAM_ITEM_HEALTH);
1028 CfgParamInt
new_param =
new CfgParamInt(SUB_PARAM_ITEM_QUANTITY);
1067 CfgParamBool
new_param =
new CfgParamBool(SUB_PARAM_ITEM_WITH_PHYSICS);
1095 for (
i =
names.Count() - 1;
i >= 0 ;
i--)
1100 for (
i = 0;
i <
names.Count();
i++)
const int CFG_TYPE_STRING
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
Param3< string, bool, vector > LocationParams
class PluginLocalEnscriptHistory extends PluginLocalHistoryBase GetSubFolderName()
PluginBase GetPlugin(typename plugin_type)
void PluginConfigDebugProfileFixed()
int GetSceneEditorRotationAngle()
bool SetItemWithPhysics(string preset_name, int item_index, bool with_physics)
bool PresetAdd(string preset_name)
array< ref CfgParam > GetDefaultBatchRectParams()
CfgParamFloat GetNewCfgParamFloat(float value)
string GetDefaultPreset()
void SetItemSearch(string value)
CfgParamFloat SetFloat(string key, float value)
void SetCharacterStomachVisible(bool is_visible)
int GetItemCategoryFlag()
bool SetItemQuantity(string preset_name, int item_index, int quantity)
void SetSoundsetFilter(string content)
override string GetFileName()
CfgParamBool GetNewCfgParamBool(bool value)
CfgParamBool SetBool(string key, bool value)
void SetTabSelected(int value)
float GetFloat(string key)
TStringArray GetPresets()
void SetBatchSpawnRectangle(int row, int column, float rowStep, float columnStep)
static PluginConfigDebugProfile GetInstance()
bool ItemAddToPreset(string preset_name, string item_name)
bool ItemRemoveFromPreset(string preset_name, int item_index)
void SetSceneEditorLoadPlayerPos(bool value)
bool GetSceneEditorDrawSelection()
void SetCharacterDebugVisible(bool is_visible)
CfgParamArray GetNewCfgParamArray(array< ref CfgParam > params)
CfgParamArray SetArray(string key, array< ref CfgParam > params)
ref TStringArray m_PresetList
void SetSceneEditorDrawSelection(bool value)
bool GetCharacterDebugVisible()
bool GetSceneEditorLoadPlayerPos()
CfgParamString SetString(string key, string value)
void SetDefaultPreset(string value)
void SetFilterOrderReversed(bool reversed)
CfgParamInt SetInt(string key, int value)
bool GetPresetItems(string preset_name, out TStringArray arr, string param_name="")
void SetCharacterLevelsVisible(bool is_visible)
string GetSoundsetFilter()
CfgParamInt GetNewCfgParamInt(int value)
array< ref CfgParam > GetBatchSpawnRectangle()
void SetMergeType(bool is_visible)
bool GetCharacterLevelsVisible()
bool GetCharacterStomachVisible()
override string GetSubFolderName()
void SetCharacterStatsVisible(bool is_visible)
void CustomLocationsRemove(string name)
int GetItemQuantity(string preset_name, int item_index)
void SetFreeCameraCrosshairVisible(bool is_visible)
void SetConfigClassesFlag(int flag)
bool PresetRemove(string preset_name)
void PluginConfigDebugProfile()
string GetString(string key)
CfgParamString GetNewCfgParamString(string value)
void SetLogsEnabled(bool value)
float GetItemHealth(string preset_name, int item_index)
bool GetItemWithPhysics(string preset_name, int item_index)
int GetFilterOrderReversed()
bool CustomLocationsAdd(string name, vector position)
array< ref CfgParam > GetItemParams(string preset_name, int item_index)
CfgParam GetItemParam(string preset_name, int item_index, string param_name)
void GetSubParametersInStringArray(string setting_name, string sub_param_name, out TStringArray arr)
void GetLocationsData(out array< ref LocationParams > arr, bool isCustom)
void SetCharacterModifiersVisible(bool is_visible)
void RemovePreset(string preset_name)
int GetBatchSpawnQuantity()
bool GetCharacterStatsVisible()
bool GetFreeCameraCrosshairVisible()
bool SetItemHealth(string preset_name, int item_index, float health)
void SetSpawnDistance(float value)
ref map< string, ref CfgParam > m_DefaultValues
bool PresetRename(string old_preset_name, string new_preset_name)
bool GetShowItemPreview()
bool GetCharacterAgentsVisible()
void SetItemCategoryFlag(int flag)
void SetShowItemPreview(bool show)
void SetSceneEditorRotationAngle(int value)
bool SwapItem(string preset_name, int item1_index, int item2_index)
void SetVersionVisible(bool is_visible)
void SetCharacterAgentsVisible(bool is_visible)
void SetBatchSpawnQuantity(int value)
int GetConfigClassesFlag()
void SetPreset(string preset_name, int index=-1)
void SetTempVisible(bool is_visible)
void SetItemDebugPos(vector pos)
bool GetCharacterModifiersVisible()
array< ref CfgParam > GetArray(string key)
void SetSpawnLocIndex(int value)
proto string ToString(bool beautify=true)
Vector to string.
const string CFG_FILE_DEBUG_PROFILE
const string CFG_FILE_DEBUG_DIR
array< string > TStringArray
proto bool FileExist(string name)
Check existence of file.
const string STRING_EMPTY