updated bottom bar
This commit is contained in:
parent
b47619c4a6
commit
efa0ef763f
@ -105,14 +105,9 @@
|
|||||||
"URL": "https://steamusercontent-a.akamaihd.net/ugc/2450610458480705628/FE3FD9F32E8704BEB7DD6327225D9D8244115A48/"
|
"URL": "https://steamusercontent-a.akamaihd.net/ugc/2450610458480705628/FE3FD9F32E8704BEB7DD6327225D9D8244115A48/"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"Name": "arrow-down",
|
"Name": "blurse",
|
||||||
"Type": 0,
|
"Type": 0,
|
||||||
"URL": "https://steamusercontent-a.akamaihd.net/ugc/2448359292156394304/63B2D48BB94DD4CD4F897D8528E049D521298B02/"
|
"URL": "https://steamusercontent-a.akamaihd.net/ugc/2448359292169458161/DDF4F777B738E2BDD9AF7B3B98AF200DB12485C0/"
|
||||||
},
|
|
||||||
{
|
|
||||||
"Name": "caret",
|
|
||||||
"Type": 0,
|
|
||||||
"URL": "https://steamusercontent-a.akamaihd.net/ugc/2448359292156394421/CFAF0262FEDE662D399A5D786E7450B49B952C99/"
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"Name": "Exit",
|
"Name": "Exit",
|
||||||
|
@ -1176,25 +1176,25 @@ function onClick_spawnPlaceholder(player)
|
|||||||
changeWindowVisibilityForColor(player.color, "downloadWindow", false)
|
changeWindowVisibilityForColor(player.color, "downloadWindow", false)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- toggles the visibility of the bless / curse manager UI
|
|
||||||
function showHideBlurse(player)
|
|
||||||
local visibility = changeWindowVisibilityForColor(player.color, "blessCurseManager")
|
|
||||||
changeWindowVisibilityForColor(player.color, "hideBlurse", visibility)
|
|
||||||
blurseVisibility[player.color] = visibility
|
|
||||||
end
|
|
||||||
|
|
||||||
-- toggles the visibility of the respective UI
|
-- toggles the visibility of the respective UI
|
||||||
---@param player tts__Player Player that triggered this
|
---@param player tts__Player Player that triggered this
|
||||||
---@param windowId string Name of the UI to toggle
|
---@param windowId string Name of the UI to toggle
|
||||||
function onClick_toggleUi(player, windowId)
|
function onClick_toggleUi(player, windowId)
|
||||||
|
-- let the Navigation Overlay handle the toggling of its visibility modes
|
||||||
if windowId == "Navigation Overlay" then
|
if windowId == "Navigation Overlay" then
|
||||||
navigationOverlayApi.cycleVisibility(player.color)
|
navigationOverlayApi.cycleVisibility(player.color)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
-- hide the playAreaGallery / downloadWindow if visible
|
-- hide the playAreaGallery / downloadWindow if visible
|
||||||
if windowId == "downloadWindow" or windowId == "playAreaGallery" then
|
if windowId == "downloadWindow" then
|
||||||
changeWindowVisibilityForColor(player.color, windowId, false)
|
changeWindowVisibilityForColor(player.color, "playAreaGallery", false)
|
||||||
|
elseif windowId == "playAreaGallery" then
|
||||||
|
changeWindowVisibilityForColor(player.color, "downloadWindow", false)
|
||||||
|
elseif windowId == "blessCurseManager" then
|
||||||
|
-- store the state of the Bless/Curse Manager UI to restore it onLoad()
|
||||||
|
blurseVisibility[player.color] = changeWindowVisibilityForColor(player.color, "blessCurseManager")
|
||||||
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
changeWindowVisibilityForColor(player.color, windowId)
|
changeWindowVisibilityForColor(player.color, windowId)
|
||||||
@ -1900,16 +1900,13 @@ function applyHidingToCard(card, handColor)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- loads the visibility of the Bless/Curse Manager XML from the internal variable
|
||||||
function updateBlurseVisibility()
|
function updateBlurseVisibility()
|
||||||
function coroBlurse()
|
local count = 1
|
||||||
for playerColor, state in pairs(blurseVisibility) do
|
for playerColor, state in pairs(blurseVisibility) do
|
||||||
changeWindowVisibilityForColor(playerColor, "blessCurseManager", state)
|
Wait.frames(function() changeWindowVisibilityForColor(playerColor, "blessCurseManager", state) end, count)
|
||||||
changeWindowVisibilityForColor(playerColor, "hideBlurse", state)
|
count = count + 3
|
||||||
coroutine.yield()
|
|
||||||
end
|
|
||||||
return 1
|
|
||||||
end
|
end
|
||||||
startLuaCoroutine(Global, "coroBlurse")
|
|
||||||
end
|
end
|
||||||
|
|
||||||
---------------------------------------------------------
|
---------------------------------------------------------
|
||||||
|
@ -10,30 +10,8 @@
|
|||||||
offsetXY="0 69"
|
offsetXY="0 69"
|
||||||
outlineSize="2 2"
|
outlineSize="2 2"
|
||||||
outline="#303030"/>
|
outline="#303030"/>
|
||||||
<Button class="blurseButton"
|
|
||||||
onClick="showHideBlurse"
|
|
||||||
tooltipPosition="Left"
|
|
||||||
tooltipBackgroundColor="rgba(0,0,0,1)"
|
|
||||||
color="White" />
|
|
||||||
</Defaults>
|
</Defaults>
|
||||||
|
|
||||||
<!-- show button for the Bless / Curse Manager -->
|
|
||||||
<Panel class="showHide"
|
|
||||||
id="showBlurse">
|
|
||||||
<Button class="blurseButton"
|
|
||||||
tooltip="Show Bless/Curse Manager"
|
|
||||||
image="arrow-down"/>
|
|
||||||
</Panel>
|
|
||||||
|
|
||||||
<!-- hide button for the Bless / Curse Manager -->
|
|
||||||
<Panel class="showHide"
|
|
||||||
active="false"
|
|
||||||
id="hideBlurse">
|
|
||||||
<Button class="blurseButton"
|
|
||||||
tooltip="Hide Bless/Curse Manager"
|
|
||||||
image="caret"/>
|
|
||||||
</Panel>
|
|
||||||
|
|
||||||
<!-- window to control bless / curse tokens in chaos bag -->
|
<!-- window to control bless / curse tokens in chaos bag -->
|
||||||
<!-- height = row heights + 2x outline -->
|
<!-- height = row heights + 2x outline -->
|
||||||
<TableLayout id="blessCurseManager"
|
<TableLayout id="blessCurseManager"
|
||||||
@ -41,7 +19,8 @@
|
|||||||
active="false"
|
active="false"
|
||||||
height="104"
|
height="104"
|
||||||
width="144"
|
width="144"
|
||||||
rectAlignment="MiddleRight"
|
offsetXY="-1 250"
|
||||||
|
rectAlignment="LowerRight"
|
||||||
raycastTarget="true"
|
raycastTarget="true"
|
||||||
outlineSize="2 2"
|
outlineSize="2 2"
|
||||||
outline="#303030">
|
outline="#303030">
|
||||||
|
@ -1,20 +1,28 @@
|
|||||||
<Defaults>
|
<Defaults>
|
||||||
<Button class="navbar"
|
<Button class="navbar"
|
||||||
|
tooltipOffset="-135"
|
||||||
tooltipPosition="Left"
|
tooltipPosition="Left"
|
||||||
tooltipBackgroundColor="rgba(0,0,0,1)"
|
tooltipBackgroundColor="rgba(0,0,0,1)"
|
||||||
color="clear"/>
|
color="clear"/>
|
||||||
|
<VerticalLayout class="navbar"
|
||||||
|
width="800"
|
||||||
|
padding="70 70 70 70"
|
||||||
|
scale="0.05 0.05 1"
|
||||||
|
color="#000000"
|
||||||
|
outlineSize="20 20"
|
||||||
|
outline="#303030"
|
||||||
|
rectAlignment="LowerRight"/>
|
||||||
</Defaults>
|
</Defaults>
|
||||||
|
|
||||||
<!-- Buttons at the bottom right (height: n * width + spacing) -->
|
<!-- Buttons at the bottom right (height: n * width) -->
|
||||||
<VerticalLayout visibility="Admin"
|
<VerticalLayout class="navbar"
|
||||||
color="#000000"
|
visibility="Admin"
|
||||||
outlineSize="1 1"
|
height="2400"
|
||||||
outline="#303030"
|
offsetXY="-1 120">
|
||||||
rectAlignment="LowerRight"
|
<Button class="navbar"
|
||||||
width="38"
|
icon="blurse"
|
||||||
height="78"
|
tooltip="Bless/Curse Manager"
|
||||||
offsetXY="-1 123"
|
onClick="onClick_toggleUi(blessCurseManager)"/>
|
||||||
spacing="2">
|
|
||||||
<Button class="navbar"
|
<Button class="navbar"
|
||||||
icon="devourer"
|
icon="devourer"
|
||||||
tooltip="Downloadable Content"
|
tooltip="Downloadable Content"
|
||||||
@ -25,17 +33,12 @@
|
|||||||
onClick="onClick_toggleUi(optionPanel)"/>
|
onClick="onClick_toggleUi(optionPanel)"/>
|
||||||
</VerticalLayout>
|
</VerticalLayout>
|
||||||
|
|
||||||
<!-- Navigation Overlay button (not visibly to Grey and Black) -->
|
<!-- Navigation Overlay button -->
|
||||||
<Panel visibility="White|Brown|Red|Orange|Yellow|Green|Teal|Blue|Purple|Pink"
|
<VerticalLayout class="navbar"
|
||||||
color="#000000"
|
height="800"
|
||||||
outlineSize="1 1"
|
offsetXY="-1 80">
|
||||||
outline="#303030"
|
|
||||||
rectAlignment="LowerRight"
|
|
||||||
width="38"
|
|
||||||
height="38"
|
|
||||||
offsetXY="-1 85">
|
|
||||||
<Button class="navbar"
|
<Button class="navbar"
|
||||||
icon="NavigationOverlayIcon"
|
icon="NavigationOverlayIcon"
|
||||||
tooltip="Navigation Overlay"
|
tooltip="Navigation Overlay"
|
||||||
onClick="onClick_toggleUi(Navigation Overlay)"/>
|
onClick="onClick_toggleUi(Navigation Overlay)"/>
|
||||||
</Panel>
|
</VerticalLayout>
|
||||||
|
Loading…
Reference in New Issue
Block a user