7 protected static bool s_bEnableRadialMenuLog =
false;
10 protected static bool s_bEnableRadialMenuDiag =
false;
12 protected static bool s_bDiagnosticsMenuRegistered =
false;
21 protected override event void OnOpen(IEntity owner)
27 Print(
"Radial menu " +
this +
" opened! Owner: " + owner);
34 protected override event void OnClose(IEntity owner)
40 Print(
"Radial menu " +
this +
" closed! Owner: " + owner);
47 protected override event void OnUpdate(IEntity owner,
float timeSlice)
58 if (!s_bDiagnosticsMenuRegistered)
61 const string radialMenuGroup =
"Radial Menu";
62 DiagMenu.RegisterMenu(
SCR_DebugMenuID.DEBUGUI_RADIALMENU_MENU, radialMenuGroup,
"");
63 DiagMenu.RegisterBool(
SCR_DebugMenuID.DEBUGUI_RADIALMENU_DIAGNOSTICS,
"",
"Enable diagnostics", radialMenuGroup);
64 DiagMenu.RegisterBool(
SCR_DebugMenuID.DEBUGUI_RADIALMENU_LOGGING,
"",
"Enable logging", radialMenuGroup);
65 s_bDiagnosticsMenuRegistered =
true;
82 static bool IsRadialMenuDiagEnabled()
84 s_bEnableRadialMenuDiag = DiagMenu.GetBool(
SCR_DebugMenuID.DEBUGUI_RADIALMENU_DIAGNOSTICS);
85 return s_bEnableRadialMenuDiag;
90 static bool IsRadialMenuLoggingEnabled()
92 s_bEnableRadialMenuLog = DiagMenu.GetBool(
SCR_DebugMenuID.DEBUGUI_RADIALMENU_LOGGING);
93 return s_bEnableRadialMenuLog;