Improved "Take Clue for X" hotkeys
This commit is contained in:
parent
5febee03c5
commit
f118c27cd3
@ -448,19 +448,19 @@ function switchSeat(playerColor, direction)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function takeClueFromLocationWhite(_, hoveredObject)
|
function takeClueFromLocationWhite(_, hoveredObject)
|
||||||
takeClueFromLocation("White", hoveredObject)
|
takeClueFromLocation(playermatApi.getPlayerColor("White"), hoveredObject)
|
||||||
end
|
end
|
||||||
|
|
||||||
function takeClueFromLocationOrange(_, hoveredObject)
|
function takeClueFromLocationOrange(_, hoveredObject)
|
||||||
takeClueFromLocation("Orange", hoveredObject)
|
takeClueFromLocation(playermatApi.getPlayerColor("Orange"), hoveredObject)
|
||||||
end
|
end
|
||||||
|
|
||||||
function takeClueFromLocationGreen(_, hoveredObject)
|
function takeClueFromLocationGreen(_, hoveredObject)
|
||||||
takeClueFromLocation("Green", hoveredObject)
|
takeClueFromLocation(playermatApi.getPlayerColor("Green"), hoveredObject)
|
||||||
end
|
end
|
||||||
|
|
||||||
function takeClueFromLocationRed(_, hoveredObject)
|
function takeClueFromLocationRed(_, hoveredObject)
|
||||||
takeClueFromLocation("Red", hoveredObject)
|
takeClueFromLocation(playermatApi.getPlayerColor("Red"), hoveredObject)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- takes a clue from a location, player needs to hover the clue directly or the location
|
-- takes a clue from a location, player needs to hover the clue directly or the location
|
||||||
@ -506,15 +506,10 @@ function takeClueFromLocation(playerColor, hoveredObject)
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- determine the matColor and position
|
||||||
local clickableClues = GlobalApi.getOptionPanelState()["useClueClickers"]
|
local clickableClues = GlobalApi.getOptionPanelState()["useClueClickers"]
|
||||||
|
local matColor = playermatApi.getMatColor(playerColor)
|
||||||
-- handling for calling this for a specific mat via hotkey
|
local pos
|
||||||
local matColor, pos
|
|
||||||
if Player[playerColor] and Player[playerColor].seated then
|
|
||||||
matColor = playermatApi.getMatColor(playerColor)
|
|
||||||
else
|
|
||||||
matColor = playerColor
|
|
||||||
end
|
|
||||||
|
|
||||||
if clickableClues then
|
if clickableClues then
|
||||||
pos = { x = 0.49, y = 2.66, z = 0.00 }
|
pos = { x = 0.49, y = 2.66, z = 0.00 }
|
||||||
|
Loading…
Reference in New Issue
Block a user