changed icon
This commit is contained in:
parent
ae1d538c59
commit
bcfd405651
@ -47,7 +47,7 @@
|
|||||||
{
|
{
|
||||||
"Name": "NavigationOverlayIcon",
|
"Name": "NavigationOverlayIcon",
|
||||||
"Type": 0,
|
"Type": 0,
|
||||||
"URL": "http://cloud-3.steamusercontent.com/ugc/2038485431575931195/7EDAE98E027FF101263E62E940180E65BE343FEE/"
|
"URL": "http://cloud-3.steamusercontent.com/ugc/2038485431576357223/9B834B6C40D02D2796C4027D52FFFDF2F1DFBAA5/"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"Name": "option-gear",
|
"Name": "option-gear",
|
||||||
|
@ -493,19 +493,26 @@ function loadCamera(player, _, idValue)
|
|||||||
if cameraParams[newMatIndex][index].distance <= 0 then
|
if cameraParams[newMatIndex][index].distance <= 0 then
|
||||||
local divisor, minX, maxX, minZ, maxZ
|
local divisor, minX, maxX, minZ, maxZ
|
||||||
|
|
||||||
for _, v in pairs(playmatApi.searchPlaymat(newMatColor)) do
|
for i, v in pairs(playmatApi.searchPlaymat(newMatColor)) do
|
||||||
local bounds = v.hit_object.getBounds()
|
local bounds = v.hit_object.getBounds()
|
||||||
local x1 = bounds['center'][1] - bounds['size'][1] / 2
|
local x1 = bounds['center'][1] - bounds['size'][1] / 2
|
||||||
local x2 = bounds['center'][1] + bounds['size'][1] / 2
|
local x2 = bounds['center'][1] + bounds['size'][1] / 2
|
||||||
local z1 = bounds['center'][3] - bounds['size'][3] / 2
|
local z1 = bounds['center'][3] - bounds['size'][3] / 2
|
||||||
local z2 = bounds['center'][3] + bounds['size'][3] / 2
|
local z2 = bounds['center'][3] + bounds['size'][3] / 2
|
||||||
|
|
||||||
minX = math.min(x1, minX)
|
if i == 1 then
|
||||||
maxX = math.max(x2, maxX)
|
minX = x1
|
||||||
minZ = math.min(z1, minZ)
|
maxX = x2
|
||||||
maxZ = math.max(z2, maxZ)
|
minZ = z1
|
||||||
|
maxZ = z2
|
||||||
|
else
|
||||||
|
minX = math.min(x1, minX)
|
||||||
|
maxX = math.max(x2, maxX)
|
||||||
|
minZ = math.min(z1, minZ)
|
||||||
|
maxZ = math.max(z2, maxZ)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
-- White/Orange
|
|
||||||
-- White/Orange
|
-- White/Orange
|
||||||
if index == 3 or index == 4 then
|
if index == 3 or index == 4 then
|
||||||
divisor = {x = 1, z = 1.6 } -- screen ratio * 1.2 (for my macbook pro, no idea how to generalize this)
|
divisor = {x = 1, z = 1.6 } -- screen ratio * 1.2 (for my macbook pro, no idea how to generalize this)
|
||||||
@ -514,12 +521,14 @@ function loadCamera(player, _, idValue)
|
|||||||
divisor = {x = 1.6, z = 1}
|
divisor = {x = 1.6, z = 1}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local rotation = playmatApi.returnRotation()
|
||||||
|
|
||||||
-- need to wait if the player color changed
|
-- need to wait if the player color changed
|
||||||
Wait.frames(
|
Wait.frames(
|
||||||
function() player.lookAt({
|
function() player.lookAt({
|
||||||
position = { (minX + maxX) / 2, 0, (minZ + maxZ) / 2 },
|
position = { (minX + maxX) / 2, 0, (minZ + maxZ) / 2 },
|
||||||
pitch = 75.823,
|
pitch = 75.823,
|
||||||
yaw = playmatApi.returnRotation().y + 180,
|
yaw = rotation.y + 180,
|
||||||
distance = 0.64 * math.max((maxX - minX) / divisor.x, (maxZ - minZ) / divisor.z) + 7
|
distance = 0.64 * math.max((maxX - minX) / divisor.x, (maxZ - minZ) / divisor.z) + 7
|
||||||
})
|
})
|
||||||
end, 2)
|
end, 2)
|
||||||
@ -565,6 +574,7 @@ function resetClaimColors()
|
|||||||
|
|
||||||
for i = 1, 4 do
|
for i = 1, 4 do
|
||||||
for j = 1, 4 do
|
for j = 1, 4 do
|
||||||
|
playermatData[i].claims = {}
|
||||||
playermatData[i].claims[j] = (i == j)
|
playermatData[i].claims[j] = (i == j)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -29,8 +29,8 @@
|
|||||||
outline="#303030"
|
outline="#303030"
|
||||||
rectAlignment="LowerRight"
|
rectAlignment="LowerRight"
|
||||||
width="35"
|
width="35"
|
||||||
height="183"
|
height="146"
|
||||||
offsetXY="-1 80"
|
offsetXY="-1 120"
|
||||||
spacing="2">
|
spacing="2">
|
||||||
<Button icon="cthulhu"
|
<Button icon="cthulhu"
|
||||||
tooltip="Campaigns"
|
tooltip="Campaigns"
|
||||||
@ -41,14 +41,25 @@
|
|||||||
<Button icon="devourer"
|
<Button icon="devourer"
|
||||||
tooltip="Community Content"
|
tooltip="Community Content"
|
||||||
onClick="onClick_toggleUi(Community Content)"/>
|
onClick="onClick_toggleUi(Community Content)"/>
|
||||||
<Button icon="NavigationOverlayIcon"
|
|
||||||
tooltip="Navigation Overlay"
|
|
||||||
onClick="onClick_toggleUi(Navigation Overlay)"/>
|
|
||||||
<Button icon="option-gear"
|
<Button icon="option-gear"
|
||||||
tooltip="Options"
|
tooltip="Options"
|
||||||
onClick="onClick_toggleUi(Options)"/>
|
onClick="onClick_toggleUi(Options)"/>
|
||||||
</VerticalLayout>
|
</VerticalLayout>
|
||||||
|
|
||||||
|
<!-- Navigation Overlay button (not visibly to Grey) -->
|
||||||
|
<Panel visibility="White|Brown|Red|Orange|Yellow|Green|Teal|Blue|Purple|Pink|Black"
|
||||||
|
color="#000000"
|
||||||
|
outlineSize="1 1"
|
||||||
|
outline="#303030"
|
||||||
|
rectAlignment="LowerRight"
|
||||||
|
width="35"
|
||||||
|
height="35"
|
||||||
|
offsetXY="-1 65">
|
||||||
|
<Button icon="NavigationOverlayIcon"
|
||||||
|
tooltip="Navigation Overlay"
|
||||||
|
onClick="onClick_toggleUi(Navigation Overlay)"/>
|
||||||
|
</Panel>
|
||||||
|
|
||||||
<!-- Basic UI that will be replaced based on title -->
|
<!-- Basic UI that will be replaced based on title -->
|
||||||
<VerticalLayout id="load_ui"
|
<VerticalLayout id="load_ui"
|
||||||
visibility="Admin"
|
visibility="Admin"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user