|
|
|
@ -42,66 +42,69 @@ protected function Finalizer()
|
|
|
|
|
|
|
|
|
|
protected function BuildData(CommandDataBuilder builder) |
|
|
|
|
{ |
|
|
|
|
builder.Name(P("feature")).Group(P("admin")) |
|
|
|
|
.Summary(P("Managing features.")) |
|
|
|
|
.Describe(P("Command for managing features and their configs.")); |
|
|
|
|
builder.SubCommand(P("enable")) |
|
|
|
|
.ParamText(P("feature"),, P("feature")) |
|
|
|
|
.OptionalParams() |
|
|
|
|
.ParamText(P("config")) |
|
|
|
|
.Describe(P("Enables specified <feature>. If <config> isn't specified -" |
|
|
|
|
builder.Group(P("admin")); |
|
|
|
|
builder.Summary(P("Managing features.")); |
|
|
|
|
builder.Describe(P("Command for managing features and their configs.")); |
|
|
|
|
builder.SubCommand(P("enable")); |
|
|
|
|
builder.ParamText(P("feature"),, P("feature")); |
|
|
|
|
builder.OptionalParams(); |
|
|
|
|
builder.ParamText(P("config")); |
|
|
|
|
builder.Describe(P("Enables specified <feature>. If <config> isn't specified -" |
|
|
|
|
@ "choses the \"default\" one, making new config with default" |
|
|
|
|
@ "settings if it doesn't exist.")); |
|
|
|
|
builder.SubCommand(P("disable")) |
|
|
|
|
.ParamText(P("feature"),, P("feature")) |
|
|
|
|
.Describe(P("Disables specified <feature>.")); |
|
|
|
|
builder.SubCommand(P("showconf")) |
|
|
|
|
.ParamText(P("feature"),, P("feature")) |
|
|
|
|
.OptionalParams() |
|
|
|
|
.ParamText(P("config")) |
|
|
|
|
.Describe(P("Show given <config> for the given <feature>.")); |
|
|
|
|
builder.SubCommand(P("editconf")) |
|
|
|
|
.ParamText(P("feature"),, P("feature")) |
|
|
|
|
.ParamText(P("config")) |
|
|
|
|
.ParamText(P("variable_path")) |
|
|
|
|
.ParamJSON(P("value")) |
|
|
|
|
.Describe(P("Changes a value inside given <config> of the given" |
|
|
|
|
builder.SubCommand(P("disable")); |
|
|
|
|
builder.ParamText(P("feature"),, P("feature")); |
|
|
|
|
builder.Describe(P("Disables specified <feature>.")); |
|
|
|
|
builder.SubCommand(P("showconf")); |
|
|
|
|
builder.ParamText(P("feature"),, P("feature")); |
|
|
|
|
builder.OptionalParams(); |
|
|
|
|
builder.ParamText(P("config")); |
|
|
|
|
builder.Describe(P("Show given <config> for the given <feature>.")); |
|
|
|
|
builder.SubCommand(P("editconf")); |
|
|
|
|
builder.ParamText(P("feature"),, P("feature")); |
|
|
|
|
builder.ParamText(P("config")); |
|
|
|
|
builder.ParamText(P("variable_path")); |
|
|
|
|
builder.ParamJSON(P("value")); |
|
|
|
|
builder.Describe(P("Changes a value inside given <config> of the given" |
|
|
|
|
@ "<feature> by setting value at JSON path <variable_path> to" |
|
|
|
|
@ "the JSON value <value>. Changes won't be immediately applied to" |
|
|
|
|
@ "the game and kept as pending.")); |
|
|
|
|
builder.SubCommand(P("saveconf")) |
|
|
|
|
.ParamText(P("feature"),, P("feature")) |
|
|
|
|
.ParamText(P("config")) |
|
|
|
|
.Describe(P("Saves pending changes for the given <config> of the given" |
|
|
|
|
builder.SubCommand(P("saveconf")); |
|
|
|
|
builder.ParamText(P("feature"),, P("feature")); |
|
|
|
|
builder.ParamText(P("config")); |
|
|
|
|
builder.Describe(P("Saves pending changes for the given <config> of the given" |
|
|
|
|
@ "<feature>.")); |
|
|
|
|
builder.SubCommand(P("newconf")) |
|
|
|
|
.ParamText(P("feature"),, P("feature")) |
|
|
|
|
.ParamText(P("config")) |
|
|
|
|
.Describe(P("Creates new config for the given <feature>.")); |
|
|
|
|
builder.SubCommand(P("removeconf")) |
|
|
|
|
.ParamText(P("feature"),, P("feature")) |
|
|
|
|
.ParamText(P("config")) |
|
|
|
|
.Describe(P("Removes specified <config> of the specified <feature>.")); |
|
|
|
|
builder.SubCommand(P("autoconf")) |
|
|
|
|
.ParamText(P("feature"),, P("feature")) |
|
|
|
|
.OptionalParams() |
|
|
|
|
.ParamText(P("config")) |
|
|
|
|
.Describe(P("Changes current auto config config of the specified" |
|
|
|
|
builder.SubCommand(P("newconf")); |
|
|
|
|
builder.ParamText(P("feature"),, P("feature")); |
|
|
|
|
builder.ParamText(P("config")); |
|
|
|
|
builder.Describe(P("Creates new config for the given <feature>.")); |
|
|
|
|
builder.SubCommand(P("removeconf")); |
|
|
|
|
builder.ParamText(P("feature"),, P("feature")); |
|
|
|
|
builder.ParamText(P("config")); |
|
|
|
|
builder.Describe(P("Removes specified <config> of the specified <feature>.")); |
|
|
|
|
builder.SubCommand(P("autoconf")); |
|
|
|
|
builder.ParamText(P("feature"),, P("feature")); |
|
|
|
|
builder.OptionalParams(); |
|
|
|
|
builder.ParamText(P("config")); |
|
|
|
|
builder.Describe(P("Changes current auto config config of the specified" |
|
|
|
|
@ "<feature>. Auto config is a config that is supposed to be" |
|
|
|
|
@ "automatically enabled at the start of the Acedia, unless" |
|
|
|
|
@ "otherwise specified for the loader.")); |
|
|
|
|
builder.Option(P("all")) |
|
|
|
|
.Describe(F("Affects subcommand {$TextEmphasis showconf} by making it" |
|
|
|
|
builder.Option(P("all")); |
|
|
|
|
builder.Describe(F("Affects subcommand {$TextEmphasis showconf} by making it" |
|
|
|
|
@ "show all available configs.")); |
|
|
|
|
builder.Option(P("save")) |
|
|
|
|
.Describe(F("Affects subcommand {$TextEmphasis editconf} by making it" |
|
|
|
|
builder.Option(P("save")); |
|
|
|
|
builder.Describe(F("Affects subcommand {$TextEmphasis editconf} by making it" |
|
|
|
|
@ "also save all pending changes.")); |
|
|
|
|
announcer = ACommandFeature_Announcer( |
|
|
|
|
_.memory.Allocate(class'ACommandFeature_Announcer')); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
protected function Executed(CallData arguments, EPlayer instigator) |
|
|
|
|
{ |
|
|
|
|
protected function Executed( |
|
|
|
|
CallData arguments, |
|
|
|
|
EPlayer instigator, |
|
|
|
|
CommandPermissions permissions |
|
|
|
|
) { |
|
|
|
|
local bool saveFlag, allFlag; |
|
|
|
|
|
|
|
|
|
announcer.Setup(none, instigator, othersConsole); |
|
|
|
@ -637,6 +640,6 @@ private function HashTable GetCurrentSelectedConfigData()
|
|
|
|
|
return GetCurrentConfigData(selectedConfigName); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
defaultproperties |
|
|
|
|
{ |
|
|
|
|
defaultproperties { |
|
|
|
|
preferredName = "feature" |
|
|
|
|
} |