Created
April 24, 2023 05:18
-
-
Save MediaResAchaea/71afb7f8844613952d03830f9ccdcc93 to your computer and use it in GitHub Desktop.
Svo Balances for Zgui
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function zgui.buildBalances() | |
zgui.balances = {} | |
--Create the main Adjustable | |
zgui.balances.window = Adjustable.Container:new({ | |
name = "zgui.balances.window", | |
x = 0, y = 0, | |
width = "50%", | |
height = "50%", | |
adjLabelstyle = zgui.adjLabelstyle, | |
buttonstyle=[[ | |
QLabel{ border-radius: 5px; background-color: rgba(140,140,140,100%);} | |
QLabel::hover{ background-color: rgba(160,160,160,50%);} | |
]], | |
buttonFontSize = 10, | |
buttonsize = 15, | |
},main) | |
zgui.balances.window:changeMenuStyle("dark") | |
--Create the log container | |
zgui.balances.container = Geyser.Container:new({ | |
name = "zgui.balances.container", | |
x = 0, y = 0, | |
width = "100%", | |
height = "100%", | |
},zgui.balances.window) | |
--Each Balance Toggle | |
----------------------------------------------------------------------------- | |
--Balance | |
zgui.balances.balance = Geyser.Label:new({ | |
name = "zgui.balances.balance", | |
x = "1%", y = "2%", | |
width = "98%", | |
height = "10%", | |
},zgui.balances.container) | |
zgui.balances.balance:setStyleSheet([[ | |
background-color: rgba(150,50,50,50%); | |
border-top-left-radius: 10px; | |
border-top-right-radius: 10px; | |
border-bottom-left-radius: 10px; | |
border-bottom-right-radius: 10px; | |
margin-right: 1px; | |
margin-left: 1px; | |
]]) | |
zgui.balances.balance:echo("<center>Balance") | |
--Equilibrium | |
zgui.balances.equilibrium = Geyser.Label:new({ | |
name = "zgui.balances.equilibrium", | |
x = "1%", y = "15%", | |
width = "98%", | |
height = "10%", | |
},zgui.balances.container) | |
zgui.balances.equilibrium:setStyleSheet([[ | |
background-color: rgba(150,50,50,50%); | |
border-top-left-radius: 10px; | |
border-top-right-radius: 10px; | |
border-bottom-left-radius: 10px; | |
border-bottom-right-radius: 10px; | |
margin-right: 1px; | |
margin-left: 1px; | |
]]) | |
zgui.balances.equilibrium:echo("<center>Equilibrium") | |
--Tree | |
zgui.balances.tree = Geyser.Label:new({ | |
name = "zgui.balances.tree", | |
x = "3%", y = "35%", | |
width = "94%", | |
height = "8%", | |
},zgui.balances.container) | |
zgui.balances.tree:setStyleSheet([[ | |
background-color: rgba(150,50,50,50%); | |
border-top-left-radius: 10px; | |
border-top-right-radius: 10px; | |
border-bottom-left-radius: 10px; | |
border-bottom-right-radius: 10px; | |
margin-right: 1px; | |
margin-left: 1px; | |
]]) | |
zgui.balances.tree:echo("<center>Tree") | |
--Focus | |
zgui.balances.focus = Geyser.Label:new({ | |
name = "zgui.balances.focus", | |
x = "3%", y = "45%", | |
width = "94%", | |
height = "8%", | |
},zgui.balances.container) | |
zgui.balances.focus:setStyleSheet([[ | |
background-color: rgba(150,50,50,50%); | |
border-top-left-radius: 10px; | |
border-top-right-radius: 10px; | |
border-bottom-left-radius: 10px; | |
border-bottom-right-radius: 10px; | |
margin-right: 1px; | |
margin-left: 1px; | |
]]) | |
zgui.balances.focus:echo("<center>Focus") | |
--Sipping | |
zgui.balances.sip = Geyser.Label:new({ | |
name = "zgui.balances.sip", | |
x = "3%", y = "65%", | |
width = "94%", | |
height = "8%", | |
},zgui.balances.container) | |
zgui.balances.sip:setStyleSheet([[ | |
background-color: rgba(150,50,50,50%); | |
border-top-left-radius: 10px; | |
border-top-right-radius: 10px; | |
border-bottom-left-radius: 10px; | |
border-bottom-right-radius: 10px; | |
margin-right: 1px; | |
margin-left: 1px; | |
]]) | |
zgui.balances.sip:echo("<center>Sipping") | |
--Moss | |
zgui.balances.moss = Geyser.Label:new({ | |
name = "zgui.balances.moss", | |
x = "3%", y = "75%", | |
width = "94%", | |
height = "8%", | |
},zgui.balances.container) | |
zgui.balances.moss:setStyleSheet([[ | |
background-color: rgba(150,50,50,50%); | |
border-top-left-radius: 10px; | |
border-top-right-radius: 10px; | |
border-bottom-left-radius: 10px; | |
border-bottom-right-radius: 10px; | |
margin-right: 1px; | |
margin-left: 1px; | |
]]) | |
zgui.balances.moss:echo("<center>Moss") | |
--Herb | |
zgui.balances.herb = Geyser.Label:new({ | |
name = "zgui.balances.herb", | |
x = "5%", y = "90%", | |
width = "30%", | |
height = "8%", | |
},zgui.balances.container) | |
zgui.balances.herb:setStyleSheet([[ | |
background-color: rgba(150,50,50,50%); | |
border-top-left-radius: 5px; | |
border-top-right-radius: 5px; | |
border-bottom-left-radius: 5px; | |
border-bottom-right-radius: 5px; | |
margin-right: 1px; | |
margin-left: 1px; | |
]]) | |
zgui.balances.herb:echo("<center>Herb") | |
--Smoke | |
zgui.balances.smoke = Geyser.Label:new({ | |
name = "zgui.balances.smoke", | |
x = "35%", y = "90%", | |
width = "30%", | |
height = "8%", | |
},zgui.balances.container) | |
zgui.balances.smoke:setStyleSheet([[ | |
background-color: rgba(150,50,50,50%); | |
border-top-left-radius: 5px; | |
border-top-right-radius: 5px; | |
border-bottom-left-radius: 5px; | |
border-bottom-right-radius: 5px; | |
margin-right: 1px; | |
margin-left: 1px; | |
]]) | |
zgui.balances.smoke:echo("<center>Smoke") | |
--Salve | |
zgui.balances.salve = Geyser.Label:new({ | |
name = "zgui.balances.salve", | |
x = "65%", y = "90%", | |
width = "30%", | |
height = "8%", | |
},zgui.balances.container) | |
zgui.balances.salve:setStyleSheet([[ | |
background-color: rgba(150,50,50,50%); | |
border-top-left-radius: 5px; | |
border-top-right-radius: 5px; | |
border-bottom-left-radius: 5px; | |
border-bottom-right-radius: 5px; | |
margin-right: 1px; | |
margin-left: 1px; | |
]]) | |
zgui.balances.salve:echo("<center>Salve") | |
----------------------------------------------------------------------------- | |
zgui.balances.window:setTitle("Survival","gray") | |
zgui.balances.window:show() | |
if not table.contains(zgui.modules, "Balances") then | |
table.insert(zgui.modules, "Balances") | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function zgui.showBals() | |
if svo then | |
for k,v in pairs(svo.bals) do | |
if k == "balance" or k == "equilibrium" or k == "tree" or k == "focus" or k == "sip" or k == "moss" or k == "herb" or k == "smoke" or k == "salve" then | |
if v then | |
zgui.balances[k]:setStyleSheet([[ | |
background-color: rgba(50,150,50,25%); | |
border-top-left-radius: 10px; | |
border-top-right-radius: 10px; | |
border-bottom-left-radius: 10px; | |
border-bottom-right-radius: 10px; | |
margin-right: 5px; | |
margin-left: 5px; | |
]]) | |
elseif not v then | |
zgui.balances[k]:setStyleSheet([[ | |
background-color: rgba(150,50,50,50%); | |
border-top-left-radius: 10px; | |
border-top-right-radius: 10px; | |
border-bottom-left-radius: 10px; | |
border-bottom-right-radius: 10px; | |
margin-right: 1px; | |
margin-left: 1px; | |
]]) | |
end | |
end | |
end | |
end | |
end | |
--[[ | |
fitness = true, | |
immunity = true, --7s | |
dragonheal = true, | |
fool = true, | |
voice = true, | |
rage = true, | |
shrugging = true, | |
la | |
ra | |
legs | |
]]-- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if zgui.balances and svo then zgui.showBals() end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment