This commit is contained in:
@@ -312,3 +312,18 @@ function Meter.draw()
|
||||
Ascension.draw(bar_x - 4, ascension_y, { spacing = 8 })
|
||||
end
|
||||
|
||||
--- Draws only the ascension letters at the same position as in Meter.draw().
|
||||
--- Used when meters are hidden but ascension letters still need to be visible.
|
||||
--- @within Meter
|
||||
function Meter.draw_ascension_only()
|
||||
local screen_w = Config.screen.width
|
||||
local screen_h = Config.screen.height
|
||||
local bar_w = screen_w * 0.25
|
||||
local edge = math.max(2, math.floor(screen_w * 0.03))
|
||||
local bar_x = screen_w - bar_w - edge
|
||||
local line_h = 3
|
||||
local start_y = screen_h * 0.05
|
||||
local ascension_y = start_y + 3 * line_h + 1
|
||||
Ascension.draw(bar_x - 4, ascension_y, { spacing = 8 })
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user