Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion lib/fixes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,11 @@ end
function UIElement:update_text()
if self.config and self.config.text and not self.config.text_drawable then
self.config.lang = self.config.lang or G.LANG
self.config.text_drawable = love.graphics.newText(self.config.lang.font.FONT, {G.C.WHITE,self.config.text})
if self.config.font then
self.config.text_drawable = love.graphics.newText(self.config.font.FONT, {G.C.WHITE,self.config.text})
else
self.config.text_drawable = love.graphics.newText(self.config.lang.font.FONT, {G.C.WHITE,self.config.text})
end
end

if self.config.ref_table and self.config.ref_table[self.config.ref_value] ~= self.config.prev_value then
Expand Down