reverting unwanted change
This commit is contained in:
parent
e6d9248997
commit
2b130a3f11
@ -4,10 +4,6 @@
|
||||
-- - sets counters to default values (resources and doom) or trauma values (health and sanity, if not disabled) from campaign log
|
||||
-- - puts everything on playmats and hands into respective trashcans
|
||||
-- - use the IGNORE_TAG to exclude objects from tidying (default: "CleanUpHelper_Ignore")
|
||||
information = {
|
||||
version = "2.4",
|
||||
last_updated = "24.11.2022"
|
||||
}
|
||||
|
||||
-- enable this for debugging
|
||||
local SHOW_RAYS = false
|
||||
@ -96,14 +92,13 @@ function onLoad(saved_data)
|
||||
-- context menu and buttons
|
||||
self.addContextMenuItem("More Information", function()
|
||||
printToAll("------------------------------", "White")
|
||||
printToAll("Clean Up Helper v" .. information["version"] .. " by Chr1Z", "Orange")
|
||||
printToAll("last updated: " .. information["last_updated"], "White")
|
||||
printToAll("Clean Up Helper by Chr1Z", "Orange")
|
||||
printToAll("ignore tag: " .. IGNORE_TAG, "White")
|
||||
printToAll("Player order in the campaign log for trauma import:\nWhite, Orange, Green, Red", "White")
|
||||
end)
|
||||
|
||||
-- index 0: button as label
|
||||
buttonParameters.label = "Clean Up Helper v" .. information["version"]
|
||||
buttonParameters.label = "Clean Up Helper"
|
||||
buttonParameters.click_function = "none"
|
||||
buttonParameters.position = { x = 0, y = 0.1, z = -1.525 }
|
||||
buttonParameters.height = 0
|
||||
@ -179,8 +174,11 @@ function cleanUp()
|
||||
|
||||
getTrauma()
|
||||
resetCounters()
|
||||
-- bless / curse manager prints removed amounts
|
||||
removeBlessCurse()
|
||||
|
||||
printToAll("Removing vector lines...", "White")
|
||||
removeLines()
|
||||
printToAll("Discarding player hands...", "White")
|
||||
discardHands()
|
||||
|
||||
@ -266,6 +264,10 @@ function removeBlessCurse()
|
||||
end
|
||||
end
|
||||
|
||||
-- remove drawn lines
|
||||
function removeLines()
|
||||
Global.setVectorLines({})
|
||||
end
|
||||
-- discard all hand objects
|
||||
function discardHands()
|
||||
for i = 1, 4 do
|
||||
|
Loading…
Reference in New Issue
Block a user