222 btw.SetChecked(
true);
223 btw.SetTextColor(
ARGB(255, 255, 0, 0));
294 if (
o.IsKindOf(type))
300 lines[0] =
o.GetPosition();
301 lines[1] =
o.GetPosition() +
"0 30 0";
310 Debug.
Log(
string.Format(
"found %1 instances of type %1",
i, type));
316 ScriptConsole.m_MarkedEntities.Clear();
585 PluginDeveloper
plugin = PluginDeveloper.Cast(
GetPlugin(PluginDeveloper));
643 if (!
GetGame().IsKindOf(
object,
"DZ_LightAI") && !
GetGame().IsKindOf(
object,
"Man"))
645 DayZGame.m_IsPreviewSpawn =
true;
648 DayZGame.m_IsPreviewSpawn =
false;
823 return ARGB(255, 255, 0, 0);
825 return ARGB(255, 0, 255, 0);
827 return ARGB(255, 130, 130, 255);
829 return ARGB(255, 255, 255, 0);
831 return ARGB(255, 255, 169, 0);
851 if (
f.IndexOf(
":") == 1)
853 string clr =
f.Substring(0, 1);
854 f =
f.Substring(2,
f.Length() - 2);
1007 if (
cbw.IsChecked())
1010 cbw.SetTextColor(
ARGB(255, 255, 0, 0));
1015 cbw.SetTextColor(
ARGB(255, 255, 255, 255));
1144 DayZPhysics.
RaycastRV(
rayStart,
rayEnd,
hitPos,
hitNormal,
hitComponentIndex,
hitObjects,
NULL,
player,
false,
false,
ObjIntersectView, 0.3);
1309 m_Developer.SpawnEntityOnGroundPatternGrid(
player,
m_SelectedObject,
count,
m_DamageEditBox.GetText().ToFloat(), 1,
rows,
columns,
rowStep,
columnStep,
m_IsShiftDown,
m_WithPhysicsCheckbox.IsChecked());
1387 if (
GetGame().IsMultiplayer())
1478 message +=
"\n== Interact (F)\n\n";
1484 ActionBase
ia = ActionBase.Cast(
iaction);
1485 message +=
string.Format(
"%1 <%2>\n",
Widget.TranslateString(
ia.GetText()),
ia.ClassName());
1493 message +=
"\n== Continuous Interact (F hold)\n\n";
1500 message +=
string.Format(
"%1 <%2>\n",
Widget.TranslateString(
cia.GetText()),
cia.ClassName());
1508 message +=
"\n== Single (LMB)\n\n";
1514 ActionBase
sa = ActionBase.Cast(
saction);
1515 message +=
string.Format(
"%1 <%2>\n",
Widget.TranslateString(
sa.GetText()),
sa.ClassName());
1524 message +=
"\n== Continuous (LMB hold)\n\n";
1529 ActionBase
ca = ActionBase.Cast(
caction);
1530 message +=
string.Format(
"%1 <%2>\n",
Widget.TranslateString(
ca.GetText()),
ca.ClassName());
1535 message +=
"\n== Crafting recipes \n\n";
1542 if (
recipe.IsItemInRecipe(
"Inventory_Base"))
const int ECE_CREATEPHYSICS
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
FindInventoryLocationType
flags for searching locations in inventory
InventoryLocationType
types of Inventory Location
PluginBase GetPlugin(typename plugin_type)
Param3< string, bool, bool > PresetParams
class JsonUndergroundAreaTriggerData GetPosition
static proto bool RaycastRV(vector begPos, vector endPos, out vector contactPos, out vector contactDir, out int contactComponent, set< Object > results=NULL, Object with=NULL, Object ignore=NULL, bool sorted=false, bool ground_only=false, int iType=ObjIntersectView, float radius=0.0, CollisionFlags flags=CollisionFlags.NEARESTCONTACT)
Raycasts world by given parameters.
static void Log(string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
Prints debug message with normal prio.
static bool IsFreeCameraEnabled()
ButtonWidget m_DrawInWorldClear
ref array< string > m_CategoryButtonsNames
void SpawnPreset(EntityAI target, bool clear_inventory, string preset_name, InventoryLocationType location=InventoryLocationType.ATTACHMENT, float distance=0)
TextWidget m_ItemQuantityLabel
ButtonWidget m_SpawnOnCursor
void PrepareFilters(string filter, out TStringArray filters, out TIntArray colors)
ButtonWidget m_PresetSetDefaultButton
CheckBoxWidget m_WithPhysicsCheckbox
ButtonWidget m_SpawnGroundPatternGrid
ref map< Widget, string > m_SpawnButtonsOriginalText
CheckBoxWidget m_ClearInventory
EditBoxWidget m_QuantityEditBox
TextListboxWidget m_PresetItemsTextListbox
static int m_ObjectsScope
ButtonWidget m_DrawInWorld
CheckBoxWidget m_ShowProtected
static string GetLastSelectedObject()
MissionGameplay m_MissionGameplay
MultilineEditBoxWidget m_ObjectFilter
CheckBoxWidget m_ItemPreviewCheckbox
void SelectObject(bool hide_presets=true)
int GetCurrentItemIndex()
void ShowItemTransferButtons()
override bool OnKeyDown(Widget w, int x, int y, int key)
ButtonWidget m_PresetRemoveItemButton
void NewPreset(string preset_name)
CheckBoxWidget m_CategoryMergeType
ButtonWidget m_ItemMoveUpButton
static bool m_WithPhysics
static void DrawItemsClear()
static int ITEMS_SELECTED_ROW
TextWidget m_SelectedObjectText
EditBoxWidget m_DamageEditBox
void SetDefaultPreset(int preset_index)
ButtonWidget m_SpawnInHands
ButtonWidget m_PresetDeleteButton
string GetCurrentItemName()
override bool OnDoubleClick(Widget w, int x, int y, int button)
static float m_ItemQuantity
EditBoxWidget m_BatchSpawnQuantity
static EntityAI m_PreviewEntity
EditBoxWidget m_DrawDistanceWidget
ButtonWidget m_SpawnOnTarget
ButtonWidget m_PresetNewButton
bool ListItemRelatedActions()
string GetCurrentObjectName()
override bool OnChange(Widget w, int x, int y, bool finished)
bool IsCurrentPresetFixed()
void ~ScriptConsoleItemsTab()
ButtonWidget m_SpawnGroundButton
int GetPresetIndexByName(string preset_name)
static ref array< Shape > m_DebugShapes
ButtonWidget m_ItemNameCopy
ButtonWidget m_FilterOrderButton
EditBoxWidget m_RectSpawnRow
ImageWidget m_FilterOrderImage
bool m_FilterOrderReversed
TextListboxWidget m_ObjectsTextListbox
PluginDeveloper m_Developer
string PreprocessFilterText(MultilineEditBoxWidget w)
ItemPreviewWidget m_ItemPreviewWidget
void ChangeFilter(TStringArray classes, TextListboxWidget widget, MultilineEditBoxWidget filterWidget, int categoryMask=-1, bool ignoreScope=false)
static void DrawItems(string type, float distance=0)
ButtonWidget m_ListActions
EditBoxWidget m_RectSpawnRowStep
EditBoxWidget m_RectSpawnColumnStep
TextListboxWidget m_PresetsTextListbox
int GetCurrentPresetIndex()
void RenamePreset(string new_preset_name)
const string CONST_DEFAULT_PRESET_PREFIX
void SetTextSpawnButton(ButtonWidget w, bool special, string suffix=" Special")
ButtonWidget m_PresetRenameButton
bool IsPresetFixed(string preset_name)
override bool OnClick(Widget w, int x, int y, int button)
ButtonWidget m_ItemMoveDownButton
void SetPreviewObject(string object)
static int PRESETS_SELECTED_ROW
ref array< Widget > m_CategoryButtonsWidgets
static float DRAW_DISTANCE
void ScriptConsoleItemsTab(Widget root, ScriptConsole console, Widget button, ScriptConsoleTabBase parent=null)
ref Timer m_RefreshFilterTimer
static string m_LastSelectedObject
static int ITEMS_IN_PRESET_SELECTED_ROW
string GetCurrentPresetName()
TextWidget m_ItemDamageLabel
EditBoxWidget m_RectSpawnColumn
ButtonWidget m_PresetAddItemtButton
int GetFilterColor(string color)
override bool OnItemSelected(Widget w, int x, int y, int row, int column, int oldRow, int oldColumn)
void RemoveItemFromPreset()
TStringArray GetItemsClasses()
EditBoxWidget m_SpawnDistanceEditBox
void SetObject(string object)
void SaveProfileSpawnDistance()
void ChangeFilterItems(bool forced=false)
void SetFilterOrder(bool reversed)
ButtonWidget m_SpawnBatchButton
ButtonWidget m_SpawnInInvButton
override void Update(float timeslice)
static int m_SelectedObjectIsPreset
PluginConfigDebugProfile m_ConfigDebugProfile
void AddItemToClipboard(TextListboxWidget text_listbox_widget)
ScriptConsole m_ScriptConsole
PluginConfigDebugProfileFixed m_ConfigDebugProfileFixed
proto native CGame GetGame()
array< string > TStringArray
proto native int KeyState(KeyCode key)
static proto float Pow(float v, float power)
Return power of v ^ power.
proto native void dBodyDestroy(notnull IEntity ent)
Destroys attached physics body.
int ARGB(int a, int r, int g, int b)