19 class PluginDiagMenuModded
30 protected string m_ModdedDiagsExampleRootMenu =
"BI - DiagsModdingExample";
35 protected string m_ModdedDiagsExampleSubMenu =
"Example Sub Menu";
43 protected int m_ModdedDiagsExampleRootMenuID;
44 protected int m_ModdedDiagsExampleBoolID;
45 protected int m_ModdedDiagsExampleSubMenuID;
46 protected int m_ModdedDiagsExampleRangeID;
55 override protected void RegisterModdedDiagsIDs()
57 super.RegisterModdedDiagsIDs();
59 m_ModdedDiagsExampleRootMenuID = GetModdedDiagID();
60 m_ModdedDiagsExampleBoolID = GetModdedDiagID();
61 m_ModdedDiagsExampleSubMenuID = GetModdedDiagID();
62 m_ModdedDiagsExampleRangeID = GetModdedDiagID();
72 override protected void RegisterModdedDiags()
74 super.RegisterModdedDiags();
87 DiagMenu.RegisterMenu(m_ModdedDiagsExampleRootMenuID, m_ModdedDiagsExampleRootMenu, GetModdedRootMenu());
89 DiagMenu.RegisterBool(m_ModdedDiagsExampleBoolID,
"",
"Modded Example Bool", m_ModdedDiagsExampleRootMenuID);
93 DiagMenu.RegisterMenu(m_ModdedDiagsExampleSubMenuID, m_ModdedDiagsExampleSubMenu, m_ModdedDiagsExampleRootMenuID);
95 DiagMenu.RegisterRange(m_ModdedDiagsExampleRangeID,
"",
"Modded Example Range", m_ModdedDiagsExampleSubMenuID,
"3 9 6 3");
102 class DummyDoxygenClass
104 int m_IgnoreThisVariable;
114 class PluginDiagMenuClientModded
123 override protected void BindCallbacks()
125 super.BindCallbacks();
127 DiagMenu.BindCallback(m_ModdedDiagsExampleBoolID, CBModdedDiadIDsExampleBool);
128 DiagMenu.BindCallback(m_ModdedDiagsExampleRangeID, CBModdedDiadIDsExampleRange);
142 static void CBModdedDiadIDsExampleBool(
bool enabled)
144 Print(
"CBModdedDiadIDsExampleBool: " + enabled);
160 static void CBModdedDiadIDsExampleRange(
float value)
162 Print(
"CBModdedDiadIDsExampleRange: " + value);