mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-01 05:43:01 +00:00
re-aliasing
This commit is contained in:
parent
4ab8e7ca2c
commit
8247a595b1
2 changed files with 50 additions and 34 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -242,6 +242,7 @@ temp/
|
||||||
|
|
||||||
# VorTechnix stuff
|
# VorTechnix stuff
|
||||||
.vdev/
|
.vdev/
|
||||||
|
*.old.lua
|
||||||
# Created by https://www.toptal.com/developers/gitignore/api/archives
|
# Created by https://www.toptal.com/developers/gitignore/api/archives
|
||||||
# Edit at https://www.toptal.com/developers/gitignore?templates=archives
|
# Edit at https://www.toptal.com/developers/gitignore?templates=archives
|
||||||
|
|
||||||
|
|
|
@ -1,34 +1,49 @@
|
||||||
-- ███████ ███████ ██ ███████ ██████ ████████ ██████ ██████ ███████
|
-- ███████ ███████ ██ ███████ ██████ ████████ ██████ ██████ ███████
|
||||||
-- ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
|
-- ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
|
||||||
-- ███████ █████ ██ █████ ██ ██ ██ ██ ██████ ███████
|
-- ███████ █████ ██ █████ ██ ██ ██ ██ ██████ ███████
|
||||||
-- ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
|
-- ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
|
||||||
-- ███████ ███████ ███████ ███████ ██████ ██ ██████ ██ ██ ███████
|
-- ███████ ███████ ███████ ███████ ██████ ██ ██████ ██ ██ ███████
|
||||||
|
|
||||||
-- Chat commands that operate on selections.
|
-- Chat commands that operate on selections.
|
||||||
|
|
||||||
local wea_cmdpath = worldeditadditions_commands.modpath .. "/commands/selectors/"
|
local wea_cmdpath = worldeditadditions_commands.modpath .. "/commands/selectors/"
|
||||||
local weac = worldeditadditions_core
|
local weac = worldeditadditions_core
|
||||||
|
|
||||||
dofile(wea_cmdpath.."srel.lua")
|
dofile(wea_cmdpath.."srel.lua")
|
||||||
dofile(wea_cmdpath.."scentre.lua")
|
dofile(wea_cmdpath.."scentre.lua")
|
||||||
dofile(wea_cmdpath.."scloud.lua")
|
dofile(wea_cmdpath.."scloud.lua")
|
||||||
dofile(wea_cmdpath.."scol.lua")
|
dofile(wea_cmdpath.."smake.lua")
|
||||||
dofile(wea_cmdpath.."scube.lua")
|
dofile(wea_cmdpath.."spop.lua")
|
||||||
dofile(wea_cmdpath.."sfactor.lua")
|
dofile(wea_cmdpath.."spush.lua")
|
||||||
dofile(wea_cmdpath.."smake.lua")
|
dofile(wea_cmdpath.."sshift.lua")
|
||||||
dofile(wea_cmdpath.."spop.lua")
|
dofile(wea_cmdpath.."sstack.lua")
|
||||||
dofile(wea_cmdpath.."spush.lua")
|
|
||||||
dofile(wea_cmdpath.."srect.lua")
|
--- DEPRECATED ---
|
||||||
dofile(wea_cmdpath.."sshift.lua")
|
dofile(wea_cmdpath.."scol.lua")
|
||||||
dofile(wea_cmdpath.."sstack.lua")
|
dofile(wea_cmdpath.."scube.lua")
|
||||||
|
dofile(wea_cmdpath.."srect.lua")
|
||||||
dofile(wea_cmdpath.."unmark.lua")
|
-- TODO: Deprecate this.
|
||||||
dofile(wea_cmdpath.."mark.lua")
|
dofile(wea_cmdpath.."sfactor.lua")
|
||||||
dofile(wea_cmdpath.."pos1-2.lua")
|
--- END DEPRECATED ---
|
||||||
dofile(wea_cmdpath.."reset.lua")
|
|
||||||
|
dofile(wea_cmdpath.."unmark.lua")
|
||||||
-- Aliases
|
dofile(wea_cmdpath.."mark.lua")
|
||||||
weac.register_alias("sfac", "sfactor")
|
dofile(wea_cmdpath.."pos1-2.lua")
|
||||||
|
dofile(wea_cmdpath.."reset.lua")
|
||||||
weac.register_alias("1", "pos1", true) -- true = override target
|
|
||||||
weac.register_alias("2", "pos2", true) -- true = override target
|
-- Aliases
|
||||||
|
weac.register_alias("sfac", "sfactor")
|
||||||
|
|
||||||
|
-- Pre-subcommand aliases
|
||||||
|
weac.register_alias("s rel", "srel")
|
||||||
|
weac.register_alias("s centre", "scentre")
|
||||||
|
weac.register_alias("s cloud", "scloud")
|
||||||
|
weac.register_alias("s factor", "sfactor")
|
||||||
|
weac.register_alias("s make", "smake")
|
||||||
|
weac.register_alias("s pop", "spop")
|
||||||
|
weac.register_alias("s push", "spush")
|
||||||
|
weac.register_alias("s shift", "sshift")
|
||||||
|
weac.register_alias("s stack", "sstack")
|
||||||
|
|
||||||
|
weac.register_alias("1", "pos1", true) -- true = override target
|
||||||
|
weac.register_alias("2", "pos2", true) -- true = override target
|
||||||
|
|
Loading…
Reference in a new issue