Code:
texts = require('texts')
box = {}
box.pos = {}
box.pos.x = 0
box.pos.y = 0
box.text = {}
box.text.font = 'Dotum'
box.text.size = 9
box.bg = {}
box.bg.alpha = 175
if gearswap.pathsearch({'Data/'..player.main_job..'box.lua'}) then --reloads pos settings
include('Data/'..player.main_job..'box.lua')
end
window = texts.new(box)
function initialize(text, settings)
local properties = L{}
if player.sub_job == 'DNC' then
properties:append('\\cs(255,0,0)Max Step = \\cs(255,255,0)${stepm}')
properties:append('\\cs(255,0,0)Steps\n \\cs(255,255,0)Will ${ssteps|Not }Stop')
end
if windower.wc_match(player.main_job, "WHM|BLM|RDM|BRD|SMN|SCH|GEO") then
properties:append('\\cs(255,0,0)Staves\n \\cs(255,255,0)Will ${cstaff|Not }Change')
properties:append('\\cs(255,0,0)Staves Set To \\cs(255,255,0)${ustaff}')
end
properties:append('\\cs(255,0,0)Conquest Neck\n \\cs(255,255,0)Will ${cneckc|Not }Change')
properties:append('\\cs(255,0,0)Conquest Ring\n \\cs(255,255,0)Will ${cringc|Not }Change')
properties:append('\\cs(255,0,0)Conquest\n \\cs(0,255,0)Neck Type = \\cs(255,255,0)${cneck}\n \\cs(0,255,0)Ring Type = \\cs(255,255,0)${cring}')
text:clear()
text:append(properties:concat('\n'))
end
initialize(window, box)
function updatedisplay()--call function any time you want to update the screen
local info = {}
info.stepm = Stepmax
info.ssteps = Stopsteps and '' or 'Not '
info.cstaff = Changestaff and '' or 'Not '
info.ustaff = Usestaff
info.cneckc = Conquest.neck.change and '' or 'Not '
info.cringc = Conquest.ring.change and '' or 'Not '
info.cneck = Conquest.neck.case[Conquest.neck.case_id]
info.cring = Conquest.ring.case[Conquest.ring.case_id]
window:update(info)
window:show()
end
function file_unload()
window:destroy() --kills display when gs is reset
end