Fixed
This commit is contained in:
parent
eb28f3346a
commit
1b71a85f53
14
init.lua
14
init.lua
|
@ -1646,10 +1646,11 @@ local function get_model_fs(fs, data, def, model_alias)
|
||||||
local hex = fmt("%02x", v.color)
|
local hex = fmt("%02x", v.color)
|
||||||
|
|
||||||
while #hex < 8 do
|
while #hex < 8 do
|
||||||
hex = hex .. "0"
|
hex = "0" .. hex
|
||||||
end
|
end
|
||||||
|
|
||||||
_name = fmt("%s^[multiply:%s", v.name, fmt("#%s", hex))
|
_name = fmt("%s^[multiply:%s", v.name,
|
||||||
|
fmt("#%s%s", sub(hex, 3), sub(hex, 1, 2)))
|
||||||
else
|
else
|
||||||
_name = fmt("%s^[multiply:%s", v.name, v.color)
|
_name = fmt("%s^[multiply:%s", v.name, v.color)
|
||||||
end
|
end
|
||||||
|
@ -1934,7 +1935,14 @@ local function get_waypoint_fs(fs, data, name, yextra, ctn_len)
|
||||||
end
|
end
|
||||||
|
|
||||||
fs("style_type[label;font_size=17]")
|
fs("style_type[label;font_size=17]")
|
||||||
fs("label", 0.15, y + 0.33, clr(fmt("#%02x", v.color), waypoint_name))
|
|
||||||
|
local hex = fmt("%02x", v.color)
|
||||||
|
|
||||||
|
while #hex < 6 do
|
||||||
|
hex = "0" .. hex
|
||||||
|
end
|
||||||
|
|
||||||
|
fs("label", 0.15, y + 0.33, clr(fmt("#%s", hex), waypoint_name))
|
||||||
|
|
||||||
local del = fmt("waypoint_%u_delete", v.id)
|
local del = fmt("waypoint_%u_delete", v.id)
|
||||||
fs(fmt("style[%s;fgimg=%s;fgimg_hovered=%s;content_offset=0]", del, PNG.trash, PNG.trash_hover))
|
fs(fmt("style[%s;fgimg=%s;fgimg_hovered=%s;content_offset=0]", del, PNG.trash, PNG.trash_hover))
|
||||||
|
|
Ŝarĝante…
Reference in New Issue