Skip to content

Commit ba626a0

Browse files
committed
Change command
1 parent 0b48f58 commit ba626a0

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

locale/en/example-mod.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ example-mod=Lightweight modular example mod with various features and compatibil
1919
[string-mod-setting]
2020

2121
[example-mod-commands]
22-
delete_UI=- deletes UI of "Example mod" mod
22+
delete-example-UI=- deletes UI of "Example mod" mod

models/example-module.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ local function on_game_created_from_scenario(event)
4545
end
4646

4747

48-
local function delete_UI_command(cmd)
48+
local function delete_example_UI_command(cmd)
4949
if cmd.player_index == 0 then
5050
print("Deleted UIs")
5151
else
@@ -121,7 +121,7 @@ module.events = {
121121
-- [optional]
122122
-- Check folder "command-wrapper"
123123
module.commands = {
124-
delete_UI = delete_UI_command,
124+
delete_example_UI = delete_example_UI_command,
125125
}
126126

127127
return module

switchable-commands.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ Returns tables of commands without functions as command "settings". All paramete
1515
]]--
1616

1717
return {
18-
delete_UI = {name = "delete-UI", description = {"example-mod-commands.delete-UI"}}, -- See example-module.lua
18+
delete_example_UI = {name = "delete-example-UI", description = {"example-mod-commands.delete-example-UI"}}, -- See example-module.lua
1919
}

0 commit comments

Comments
 (0)