Code: Select all
function createHpGauge(gname, xpx, ypx, gmessage)
local gauge = Geyser.Gauge:new({name = gname, x = xpx .."px", y = ypx .."px", width = "80px", height = "15px",
message = gmessage, fgColor = "white",},
leftBar)
gauge.front:setStyleSheet([[
background-color: RoyalBlue;
padding: 1px;
]])
gauge.back:setStyleSheet([[
background-color: gray;
]])
return gauge
end
function createManaGauge(gname, xpx, ypx, gmessage)
local gauge = Geyser.Gauge:new({name = gname, x = xpx .."px", y = ypx .."px", width = "80px", height = "10px",
message = gmessage, fgColor = "white",},
leftBar)
gauge.front:setStyleSheet([[
background-color: ForestGreen;
]])
gauge.back:setStyleSheet([[
background-color: gray;
]])
return gauge
end
--function createLeftBar()
leftBar = Geyser.Container:new({x=0,y=0,width="100px",height="100%",name="leftBar"})
local xcord = 10
local ycord = -50
--hpgauges
--Makena
gaugeHpMakena = createHpGauge("gaugeHpMakena", xcord, ycord, "Makena")
--Ahriman
ycord = ycord-100
gaugeHpAhriman = createHpGauge("gaugeHpAhriman", xcord, ycord, "Ahriman")
--Fey
ycord = ycord-100
gaugeHpFey = createHpGauge("gaugeHpFey", xcord, ycord, "Fey")
--Tyler
ycord = ycord-100
gaugeHpTyler = createHpGauge("gaugeHpTyler", xcord, ycord, "Tyler")
--Saros
ycord = ycord-100
gaugeHpSaros = createHpGauge("gaugeHpSaros", xcord, ycord, "Saros")
--managauges
ycord = -33
--Makena
gaugeManaMakena = createManaGauge("gaugeManaMakena", xcord, ycord, "")
--Ahriman
ycord = ycord-100
gaugeManaAhriman = createManaGauge("gaugeManaAhriman", xcord, ycord, "")
--Fey
ycord = ycord-100
gaugeManaFey = createManaGauge("gaugeManaFey", xcord, ycord, "")
--Tyler
ycord = ycord-100
gaugeManaTyler = createManaGauge("gaugeManaTyler", xcord, ycord, "")
--Saros
ycord = ycord-100
gaugeManaSaros = createManaGauge("gaugeManaSaros", xcord, ycord, "")
This does not seem right, what am I doing wrong?