fixed lua

This commit is contained in:
Sheppy 2015-10-15 00:22:25 +02:00
parent 4f0a2bc5ad
commit 8fe2eb0dc6

View File

@ -5,8 +5,8 @@ local ref_medium
local trigger = true local trigger = true
function widget:GetInfo() function widget:GetInfo()
return { return {
name = "Selecteion Priority", name = "Selection Priority",
desc = "TEST", desc = "Sorts Units by Priority (atackunit>builder/commander>buildings)",
author = "Sheppy", author = "Sheppy",
date = "2015", date = "2015",
license = "PD", -- should be compatible with Spring license = "PD", -- should be compatible with Spring
@ -18,17 +18,33 @@ end
function widget:CommandNotify(cmdID, cmdParams, cmdOptions) function widget:CommandNotify(cmdID, cmdParams, cmdOptions)
if trigger then if trigger then
ref_medium = { ref_medium = {
--arm
"armcom", "armcom",
"armaca", "armaca",
"armacv",
"armack",
"armca", "armca",
"armck", "armacv",
"armcv", "armcv",
"armack",
"armck",
"armcs", "armcs",
"armacsub" "armacs",
"armacsub",
"armch",
"corch",
--core
"coracs",
"corcom",
"coraca",
"coracv",
"corack",
"corca",
"corck",
"corcv",
"corcs",
"coracsub"
} }
ref_low = { ref_low = {
--arm
"armaap", "armaap",
"armalab", "armalab",
"armap", "armap",
@ -70,7 +86,58 @@ ref_low = {
"armuwmme", "armuwmme",
"armuwmmm", "armuwmmm",
"cmgeo", "cmgeo",
"asubpen" "asubpen",
--core
"coraap",
"coralab",
"corap",
"coradvsol",
"coravp",
"corarad",
"coralab",
"corbrtha",
"corckfus",
"corclaw",
"corestor",
"corfmkr",
"corfus",
"corlab",
"corjam",
"cormakr",
"cormex",
"cormoho",
"cornanotc",
"corrad",
"corsolar",
"cortide",
"corvp",
"corwin",
"aafus",
"amgeo",
"coruwfus",
"coreyes",
"corason",
"corasy",
"corch",
"corhp",
"cormmkr",
"corsy",
"corgeo",
"coruwadves",
"corshltx",
"coruwmex",
"coruwmme",
"coruwmmm",
"cmgeo",
"asubpen",
"armhp",
"armllt",
"armhlt",
"armjamt",
"corhp",
"corllt",
"corhlt",
"corjamt"
} }
Spring.Echo("Done.") Spring.Echo("Done.")
trigger = false trigger = false