added offering token

This commit is contained in:
Chr1Z93 2024-02-09 14:05:12 +01:00
parent ca1603a270
commit d67971f421
3 changed files with 70 additions and 10 deletions

View File

@ -388,6 +388,64 @@
}, },
"Value": 0, "Value": 0,
"XmlUI": "" "XmlUI": ""
},
"8": {
"AltLookAngle": {
"x": 0,
"y": 0,
"z": 0
},
"Autoraise": true,
"ColorDiffuse": {
"b": 1,
"g": 1,
"r": 1
},
"CustomImage": {
"CustomToken": {
"MergeDistancePixels": 10,
"Stackable": true,
"StandUp": false,
"Thickness": 0.3
},
"ImageScalar": 1,
"ImageSecondaryURL": "",
"ImageURL": "http://cloud-3.steamusercontent.com/ugc/2342503777954079997/156B97A89D6168F1199EE2E0FE155839627C8BCD/",
"WidthScale": 0
},
"Description": "",
"DragSelectable": true,
"GMNotes": "",
"GUID": "2b4348",
"Grid": true,
"GridProjection": false,
"Hands": false,
"HideWhenFaceDown": false,
"IgnoreFoW": false,
"LayoutGroupSortIndex": 0,
"Locked": false,
"LuaScript": "",
"LuaScriptState": "",
"MeasureMovement": false,
"Memo": "offering",
"Name": "Custom_Token",
"Nickname": "Offering",
"Snap": false,
"Sticky": true,
"Tooltip": true,
"Transform": {
"posX": 44,
"posY": 1.5,
"posZ": 8,
"rotX": 0,
"rotY": 270,
"rotZ": 0,
"scaleX": 0.17,
"scaleY": 0.17,
"scaleZ": 0.17
},
"Value": 0,
"XmlUI": ""
} }
}, },
"Sticky": true, "Sticky": true,

View File

@ -113,12 +113,13 @@ do
-- stateIDs for the multi-stated resource tokens -- stateIDs for the multi-stated resource tokens
local stateTable = { local stateTable = {
["resource"] = 1, ["resource"] = 1,
["ammo"] = 2, ["ammo"] = 2,
["bounty"] = 3, ["bounty"] = 3,
["charge"] = 4, ["charge"] = 4,
["evidence"] = 5, ["evidence"] = 5,
["secret"] = 6, ["secret"] = 6,
["supply"] = 7 ["supply"] = 7,
["offering"] = 8
} }
-- Table of data extracted from the token source bag, keyed by the Memo on each token which -- Table of data extracted from the token source bag, keyed by the Memo on each token which

View File

@ -11,12 +11,13 @@ TOKEN_INDEX[9] = "resource"
local stateTable = { local stateTable = {
["resource"] = 1, ["resource"] = 1,
["ammo"] = 2, ["ammo"] = 2,
["bounty"] = 3, ["bounty"] = 3,
["charge"] = 4, ["charge"] = 4,
["evidence"] = 5, ["evidence"] = 5,
["secret"] = 6, ["secret"] = 6,
["supply"] = 7 ["supply"] = 7,
["offering"] = 8
} }
---@param index number Index of the pressed key ---@param index number Index of the pressed key