added new parameter
This commit is contained in:
parent
95ea1957dd
commit
1efd0c110a
@ -7,6 +7,11 @@ UPDATE_ON_HOVER --@type: boolean
|
||||
- the "Read Bag" function reads the content of the chaos bag to update the context menu
|
||||
- example usage: "Unrelenting" (to only display valid tokens)
|
||||
|
||||
KEEP_OPEN --@type: boolean
|
||||
- meant for cards that seal single tokens multiple times (one by one)
|
||||
- makes the context menu stay open after selecting an option
|
||||
- example usage: "Unrelenting"
|
||||
|
||||
SHOW_SINGLE_RELEASE --@type: boolean
|
||||
- enables an entry in the context menu
|
||||
- this entry allows releasing a single token
|
||||
@ -94,7 +99,7 @@ function generateContextMenu()
|
||||
if not SHOW_MULTI_SEAL then
|
||||
self.addContextMenuItem("Seal " .. map.name, function(playerColor)
|
||||
sealToken(map.name, playerColor)
|
||||
end, true)
|
||||
end, KEEP_OPEN)
|
||||
else
|
||||
self.addContextMenuItem("Seal " .. SHOW_MULTI_SEAL .. " " .. map.name, function(playerColor)
|
||||
readBag()
|
||||
|
@ -2,4 +2,6 @@ VALID_TOKENS = {
|
||||
["Curse"] = true
|
||||
}
|
||||
|
||||
KEEP_OPEN = true
|
||||
|
||||
require("playercards/CardsThatSealTokens")
|
||||
|
@ -3,5 +3,6 @@ VALID_TOKENS = {
|
||||
}
|
||||
|
||||
SHOW_SINGLE_RELEASE = true
|
||||
KEEP_OPEN = true
|
||||
|
||||
require("playercards/CardsThatSealTokens")
|
||||
|
@ -3,5 +3,6 @@ VALID_TOKENS = {
|
||||
}
|
||||
|
||||
SHOW_SINGLE_RELEASE = true
|
||||
KEEP_OPEN = true
|
||||
|
||||
require("playercards/CardsThatSealTokens")
|
||||
|
@ -3,5 +3,6 @@ VALID_TOKENS = {
|
||||
}
|
||||
|
||||
SHOW_SINGLE_RELEASE = true
|
||||
KEEP_OPEN = true
|
||||
|
||||
require("playercards/CardsThatSealTokens")
|
||||
|
@ -2,4 +2,6 @@ VALID_TOKENS = {
|
||||
["Bless"] = true
|
||||
}
|
||||
|
||||
KEEP_OPEN = true
|
||||
|
||||
require("playercards/CardsThatSealTokens")
|
||||
|
@ -3,5 +3,6 @@ VALID_TOKENS = {
|
||||
}
|
||||
|
||||
SHOW_SINGLE_RELEASE = true
|
||||
KEEP_OPEN = true
|
||||
|
||||
require("playercards/CardsThatSealTokens")
|
||||
|
@ -4,5 +4,6 @@ INVALID_TOKENS = {
|
||||
}
|
||||
|
||||
UPDATE_ON_HOVER = true
|
||||
KEEP_OPEN = true
|
||||
|
||||
require("playercards/CardsThatSealTokens")
|
||||
|
Loading…
Reference in New Issue
Block a user