Fix inventory layout integration and qualify ordinary UI and radio guidance
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
||||
[WorkbenchPluginAttribute(name: "Isolated vanilla inventory control", wbModules: {"WorldEditor"})]
|
||||
class ERRIC_InventoryControlPlugin : WorldEditorPlugin
|
||||
{
|
||||
override void RunCommandline()
|
||||
{
|
||||
string enabled, play;
|
||||
WorldEditor editor = Workbench.GetModule(WorldEditor);
|
||||
if (editor && System.GetCLIParam("erricInventoryControl", enabled) && enabled == "1" && System.GetCLIParam("errPlay", play) && play == "1")
|
||||
editor.SwitchToGameMode();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user