I -NEED- someone to help me code up a GUI. I know exactly what I want the problem is I just can't code for the life of me. It doesn't have to be anything to glitzy but I would just like the basics of it down so I can start trying my hand at combat (then if Zulah will take a commission make it look awesomesauce.. or if you can do it MANY CREDITS FOR YOU). Will pay credits. At the moment it'll basically be a bunch of buttons assigned to tabs. Need need need need need!
0
Comments
I will not draw them in the order that they are requested... rather in the order that I get inspiration/artist block.
Artemis says, "You are so high maintenance, Tharvis, gosh."
Tecton says, "It's still your fault, Tharvis."
-- Health, mana, endurance, and willpower gauges, and the colors needed to make them --
Rutile.GUI.Gauges.Colors =
{
{
"#F5C3AA",
"#C32833",
"#C32833",
"#D76950"
},
{
"#39316A",
"#5B5593",
"#1E186E",
"#26297A",
},
{
"#fbdbc2",
"#e4c66e",
"#d5a513",
"#f9c533",
},
{
"#b494c3",
"#7f5690",
"#540b64",
"#6f1e85"
}
}
Rutile.GUI.Gauges.HP = Geyser.Gauge:new({
name="hpbar",
x=480, y=-20,
width=160, height="20px",
})
Rutile.GUI.Gauges.HP.front:setStyleSheet([[background-color: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #F5C3AA, stop: 0.48 #C32833, stop: 0.5 #F03228, stop: 1 #D76950);
border-top: 1px black solid;
border-left: 1px black solid;
border-bottom: 1px black solid;
border-radius: 5;
padding: 3px;
]])
Rutile.GUI.Gauges.HP.back:setStyleSheet([[background-color: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #B3A9A7, stop: 0.48 #5f4c45, stop: 0.5 #19110f, stop: 1 #9c9794);
border-width: 1px;
border-color: black;
border-style: solid;
border-radius: 5;
padding: 3px;
]])
Rutile.GUI.Gauges.MP = Geyser.Gauge:new({
name="mpbar",
x=650, y=-20,
width=160, height="20px",
})
Rutile.GUI.Gauges.MP.front:setStyleSheet([[background-color: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #5B5593, stop: 0.48 #39316A, stop: 0.5 #1E186E, stop: 1 #26297A);
border-top: 1px black solid;
border-left: 1px black solid;
border-bottom: 1px black solid;
border-radius: 5;
padding: 3px;
]])
Rutile.GUI.Gauges.MP.back:setStyleSheet([[background-color: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #B3A9A7, stop: 0.48 #5f4c45, stop: 0.5 #19110f, stop: 1 #9c9794);
border-width: 1px;
border-color: black;
border-style: solid;
border-radius: 5;
padding: 3px;
]])
Rutile.GUI.Gauges.EP = Geyser.Gauge:new({
name="epbar",
x=820, y=-20,
width=160, height="20px",
})
Rutile.GUI.Gauges.EP.front:setStyleSheet([[background-color: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #fbdbc2, stop: 0.48 #e4c66e, stop: 0.5 #d5a513, stop: 1 #f9c533);
border-top: 1px black solid;
border-left: 1px black solid;
border-bottom: 1px black solid;
border-radius: 5;
padding: 3px;
]])
Rutile.GUI.Gauges.EP.back:setStyleSheet([[background-color: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #B3A9A7, stop: 0.48 #5f4c45, stop: 0.5 #19110f, stop: 1 #9c9794);
border-width: 1px;
border-color: black;
border-style: solid;
border-radius: 5;
padding: 3px;
]])
Rutile.GUI.Gauges.WP = Geyser.Gauge:new({
name="wpbar",
x=990, y=-20,
width=160, height="20px",
})
Rutile.GUI.Gauges.WP.front:setStyleSheet([[background-color: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #b494c3, stop: 0.48 #7f5690, stop: 0.5 #540b64, stop: 1 #6f1e85);
border-top: 1px black solid;
border-left: 1px black solid;
border-bottom: 1px black solid;
border-radius: 5;
padding: 3px;
]])
Rutile.GUI.Gauges.WP.back:setStyleSheet([[background-color: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #B3A9A7, stop: 0.48 #5f4c45, stop: 0.5 #19110f, stop: 1 #9c9794);
border-width: 1px;
border-color: black;
border-style: solid;
border-radius: 5;
padding: 3px;
]])
------------------------------------------------------------------------
And here is the updateVitals event script, called on gmcp.Char.Vitals
function updateVitals(_,_)
Rutile.GUI.Gauges.HP:setValue(tonumber(gmcp.Char.Vitals.hp),tonumber(gmcp.Char.Vitals.maxhp), "<b>"..gmcp.Char.Vitals.hp.."/"..gmcp.Char.Vitals.maxhp.."</b>")
Rutile.GUI.Gauges.MP:setValue(tonumber(gmcp.Char.Vitals.mp),tonumber(gmcp.Char.Vitals.maxmp), "<b>"..gmcp.Char.Vitals.mp.."/"..gmcp.Char.Vitals.maxmp.."</b>")
Rutile.GUI.Gauges.EP:setValue(tonumber(gmcp.Char.Vitals.ep),tonumber(gmcp.Char.Vitals.maxep))
Rutile.GUI.Gauges.WP:setValue(tonumber(gmcp.Char.Vitals.wp),tonumber(gmcp.Char.Vitals.maxwp))
end
Artemis says, "You are so high maintenance, Tharvis, gosh."
Tecton says, "It's still your fault, Tharvis."
→My Mudlet Scripts
Here's my YouTube channel for references: http://www.youtube.com/channel/UC_ZY59zJZLHypwk8Vvib2Mw
You can set a style sheet to a variable
default_style = "background-color: red; border-width: 1px; border-color: black; border-radius: 7"
then just
GeyserWindow:setStyleSheet(default_style)
saves a lot of typing if you have a lot of windows.
- 2014/05/13 03:37:22 - Jhui dies gasping for breath, asphyxiated by the power of Hanley Silverstorm's kai.
SerpentKai Go!
also looking for gui, will pay credits, pm me here if interested
@Cynthius I think @Akaya still has a site dedicated to GUI's
Artemis says, "You are so high maintenance, Tharvis, gosh."
Tecton says, "It's still your fault, Tharvis."
I'd place an order but your website is horribly broken. I cannot look at the layout or features screen. It re-directs to 'free stuff'
has your email changed? sent you a few without a response