changed icon
This commit is contained in:
parent
ae1d538c59
commit
bcfd405651
@ -47,7 +47,7 @@
|
||||
{
|
||||
"Name": "NavigationOverlayIcon",
|
||||
"Type": 0,
|
||||
"URL": "http://cloud-3.steamusercontent.com/ugc/2038485431575931195/7EDAE98E027FF101263E62E940180E65BE343FEE/"
|
||||
"URL": "http://cloud-3.steamusercontent.com/ugc/2038485431576357223/9B834B6C40D02D2796C4027D52FFFDF2F1DFBAA5/"
|
||||
},
|
||||
{
|
||||
"Name": "option-gear",
|
||||
|
@ -493,19 +493,26 @@ function loadCamera(player, _, idValue)
|
||||
if cameraParams[newMatIndex][index].distance <= 0 then
|
||||
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 x1 = 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 z2 = bounds['center'][3] + bounds['size'][3] / 2
|
||||
|
||||
if i == 1 then
|
||||
minX = x1
|
||||
maxX = x2
|
||||
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
|
||||
-- White/Orange
|
||||
end
|
||||
|
||||
-- White/Orange
|
||||
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)
|
||||
@ -514,12 +521,14 @@ function loadCamera(player, _, idValue)
|
||||
divisor = {x = 1.6, z = 1}
|
||||
end
|
||||
|
||||
local rotation = playmatApi.returnRotation()
|
||||
|
||||
-- need to wait if the player color changed
|
||||
Wait.frames(
|
||||
function() player.lookAt({
|
||||
position = { (minX + maxX) / 2, 0, (minZ + maxZ) / 2 },
|
||||
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
|
||||
})
|
||||
end, 2)
|
||||
@ -565,6 +574,7 @@ function resetClaimColors()
|
||||
|
||||
for i = 1, 4 do
|
||||
for j = 1, 4 do
|
||||
playermatData[i].claims = {}
|
||||
playermatData[i].claims[j] = (i == j)
|
||||
end
|
||||
end
|
||||
|
@ -29,8 +29,8 @@
|
||||
outline="#303030"
|
||||
rectAlignment="LowerRight"
|
||||
width="35"
|
||||
height="183"
|
||||
offsetXY="-1 80"
|
||||
height="146"
|
||||
offsetXY="-1 120"
|
||||
spacing="2">
|
||||
<Button icon="cthulhu"
|
||||
tooltip="Campaigns"
|
||||
@ -41,14 +41,25 @@
|
||||
<Button icon="devourer"
|
||||
tooltip="Community Content"
|
||||
onClick="onClick_toggleUi(Community Content)"/>
|
||||
<Button icon="NavigationOverlayIcon"
|
||||
tooltip="Navigation Overlay"
|
||||
onClick="onClick_toggleUi(Navigation Overlay)"/>
|
||||
<Button icon="option-gear"
|
||||
tooltip="Options"
|
||||
onClick="onClick_toggleUi(Options)"/>
|
||||
</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 -->
|
||||
<VerticalLayout id="load_ui"
|
||||
visibility="Admin"
|
||||
|
Loading…
Reference in New Issue
Block a user