Skip to content
Snippets Groups Projects
Commit 028495e3 authored by DarkGod's avatar DarkGod
Browse files

fix zonename

parent 1dfadf07
No related branches found
No related tags found
No related merge requests found
......@@ -32,6 +32,7 @@ newPackage{ id = "web", name = "Web", weight = 10,
small = {font="/data/font/DroidSans.ttf", normal=12, small=10, big=14},
default = {font="/data/font/DroidSans.ttf", normal=16, small=12, big=18},
bold = {font="/data/font/DroidSans.ttf", bold=true, normal=16, small=12, big=18},
zone = {font="/data/font/DroidSans.ttf", bold=true, normal=16, small=12, big=18},
mono = {font="/data/font/DroidSansMono.ttf", normal=16, small=12, big=18},
mono_small = {font="/data/font/DroidSansMono.ttf", normal=14, small=10, big=16},
flyer = {font="/data/font/INSULA__.ttf", normal=14, small=12, big=16},
......
......@@ -156,7 +156,7 @@ function _M:runReal()
self.caps_scroll = {s:glTexture()}
self.caps_scroll.w, self.caps_scroll.h = s:getSize()
self.zone_font = FontPackage:get("normal")
self.zone_font = FontPackage:get("zone")
self.inited = true
......@@ -1168,9 +1168,7 @@ function _M:updateZoneName()
end
if self.zone_name_s and self.old_zone_name == name then return end
self.zone_font:setStyle("bold")
local s = core.display.drawStringBlendedNewSurface(self.zone_font, name, unpack(colors.simple(colors.GOLD)))
self.zone_font:setStyle("normal")
self.zone_name_w, self.zone_name_h = s:getSize()
self.zone_name_s, self.zone_name_tw, self.zone_name_th = s:glTexture()
self.old_zone_name = name
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment