Skip to content

Commit 5c88bd4

Browse files
authored
feat(stats): ✨ add player level to vitals window (#80)
1 parent 6dba6f3 commit 5c88bd4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

prs-stats.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -244,14 +244,14 @@ function PRSstats.stats()
244244
PRSstats.UW = Geyser.UserWindow:new({name = "Stats", titleText ="Vitals", x = "75%", y = "75%", height="25%", width="25%", docked = true, restoreLayout = true})
245245

246246
if gmcp and gmcp.Char and gmcp.Char.player then
247-
PRSstats.UW:setTitle("Vitals - "..gmcp.Char.player.name)
247+
PRSstats.UW:setTitle("Vitals - "..gmcp.Char.player.name.." (Level "..gmcp.Char.player.level..")")
248248
add_gauges()
249249
else
250250
local initialize_ev_handler = registerAnonymousEventHandler("gmcp.Char.player", function()
251251
if gmcp and gmcp.Char and gmcp.Char.player and gmcp.Char.player.name then
252-
PRSstats.UW:setTitle("Vitals - "..gmcp.Char.player.name)
252+
PRSstats.UW:setTitle("Vitals - "..gmcp.Char.player.name.." (Level "..gmcp.Char.player.level..")")
253253
add_gauges()
254254
end
255255
end, true)
256256
end
257-
end
257+
end

0 commit comments

Comments
 (0)