class DiagMenuSource
Part of Diag menu API definition
Methods 21
static proto bool IsInitialized()Checks if DiagMenu is initialized
Referenced by UiHintPanel.RandomizePageIndex()
static proto void InitScriptDiags()To be used before registering scripted diags
static proto void ClearScriptDiags()To be used when scripted diags should not be present
Referenced by PluginDiagMenu.OnDestroy()
Register a new menu
idintThe unique ID of the menu in the range [0,512]namestringThe name of the menuparentintThe index of the parent of the menu
static proto void RegisterItem(int id, string shortcut, string name, int parent, string values, func callback = null)Register a new item
idintThe unique ID of the item in the range [0,512]shortcutstringThe keyboard shortcut of the itemnamestringThe name of the itemparentintThe index of the parent of the itemvaluesstringThe values of the item separated by commas, internally this will be an int starting at 0 for the first itemcallbackfuncCallback to call when the value is changed (OPTIONAL) (Also read BindCallback)
static proto void RegisterBool(int id, string shortcut, string name, int parent, bool reverse = false, func callback = null)Register a new bool item
idintThe unique ID of the item in the range [0,512]shortcutstringThe keyboard shortcut of the itemnamestringThe name of the itemparentstringThe index of the parent of the itemvaluesstringThe values of the item, separated by commasreverseboolWhether to reverse the bool (OPTIONAL)callbackfuncCallback to call when the value is changed (OPTIONAL) (Also read BindCallback)
NoteThis is just a RegisterItem with value="true,false" or when reversed value="false,true"
static proto void RegisterRange(int id, string shortcut, string name, int parent, string valuenames, func callback = null)Register a new range item
idintThe unique ID of the item in the range [0,512]shortcutstringThe keyboard shortcut of the itemnamestringThe name of the itemparentintThe index of the parent of the itemvaluesstringRange specification in format "min,max,startValue,step"callbackfuncCallback to call when the value is changed (OPTIONAL) (Also read BindCallback)
static proto void Unregister(int id)Unregister the item at given id
Referenced by PluginDiagMenu.RegisterDiags()
Bind a callback to the given id
NoteOnly one callback can be registered, so when attempting to registering multiple, only the last one will be present
NoteThe callbacks are required to have one of following signatures - All Register... support: o static void Callback(); - RegisterItem & RegisterBool: o static void Callback(int value); o static void Callback(int value, int id); o static void Callback(bool value); o static void Callback(bool value, int id); - RegisterRange: o static void Callback(float value); o static void Callback(float value, int id); o static void Callback(int value); o static void Callback(int value, int id);
NoteKeep in mind that bool and int are interchangeable, so 'bool value' is possible for RegisterRange too
Referenced by PluginDiagMenuClient.BindCallbacks()
static proto void UnbindCallback(int id)Unbind the callback from the given id
Get value as bool from the given script id
Referenced by ActionMenu.UpdateWidgets(), ActionTargets.FilterObstructedObjectsEx(), ActionTargets.Update(), and 112 more
Get value as int from the given script id
Referenced by DayZPlayerImplement.HandleWeapons(), FeatureTimeAccel.WriteCategoryBit(), MissionGameplay.ShowHairDebugValues()
Show 10 more
, PluginDiagMenu.CheckActivateBleedingSourceLevel(), PluginDiagMenu.CheckBurst(), PluginDiagMenu.CheckDayzPlayerMenu(), PluginDiagMenu.CheckFinisherOverride(), PluginDiagMenu.CheckHitDirection(), PluginDiagMenu.CheckInvincibility(), PluginDiagMenu.WriteCategoryBit(), PluginDiagMenuClient.CBMiscHitIndication(), PluginDiagMenuClient.UpdateWeaponLiftDiag(), and Weapon_Base.UseWeaponObstruction()Set value at the given script id
Referenced by ModifiersManager.SetModifiers(), PlayerBase.SetBloodyHandsBase(), PluginDiagMenu.CheckActivateAllBS()
Show 26 more
, PluginDiagMenu.CheckBulletImpact(), PluginDiagMenu.CheckCamShake(), PluginDiagMenu.CheckCraftingDump(), PluginDiagMenu.CheckFixItems(), PluginDiagMenu.CheckFreezeEntity(), PluginDiagMenu.CheckGenerateRecipeCache(), PluginDiagMenu.CheckGoUnconscious(), PluginDiagMenu.CheckGoUnconsciousDelayed(), PluginDiagMenu.CheckHairHide(), PluginDiagMenu.CheckHitDirection(), PluginDiagMenu.CheckKillPlayer(), PluginDiagMenu.CheckPlayerReset(), PluginDiagMenu.CheckReloadBS(), PluginDiagMenu.CheckShockImpact(), PluginDiagMenu.CheckSimulateDivisionByZero(), PluginDiagMenu.CheckSimulateErrorFunction(), PluginDiagMenu.CheckSimulateInfiniteLoop(), PluginDiagMenu.CheckSimulateNULLPointer(), PluginDiagMenu.OnInit(), PluginDiagMenu.OnRPC(), PluginDiagMenu.RegisterDeveloperDiags(), PluginDiagMenu.SetTimeAccelMenuState(), PluginDiagMenuClient.CBDumpCrashData(), PluginDiagMenuClient.CBPRADetect(), PluginDiagMenuClient.DiagButtonActionParams(), and PluginDiagMenuClient.MatGhostDebug()Get range value at the given script id
Referenced by PluginDiagMenu.CheckActivateBleedingSource(), PluginDiagMenu.CheckBleedingIndicators(), PluginDiagMenu.CheckDisplayMenu()
Show 13 more
, PluginDiagMenu.CheckHairLevel(), PluginDiagMenu.CheckHitDirection(), PluginDiagMenu.CheckLifeSpanPlaytimeUpdate(), PluginDiagMenu.CheckSpecialtyLevel(), PluginDiagMenu.CheckTimeAccel(), PluginDiagMenu.GetTimeAccelMenuState(), PluginDiagMenuClient.CBBBleedingIndicators(), PluginDiagMenuClient.CBMiscHairHide(), PluginDiagMenuClient.CBMiscHitIndication(), PluginDiagMenuClient.CBSetGeyserDiagData(), PluginDiagMenuClient.SimulateMode(), PluginDiagMenuClient.SpawnHitDirEffect(), and SymptomManager.OnTick()Set range value at the given script id
Get value at the given engine id
Get range value at the given engine id
Referenced by DayZPlayerImplement.CommandHandlerDebug()