Use hexadecimal RRGGBB instead of colorkeys, rename getColor to parseColor

This commit is contained in:
sfan5 2013-07-06 10:32:58 +02:00 committed by Nils Dagsson Moskopp
parent 5864868a03
commit 5d8ea4dc07
Signed by: erle
GPG Key ID: A3BC671C35191080
2 changed files with 5 additions and 5 deletions

View File

@ -389,7 +389,7 @@ end
--------------------------------------------------------------------------------
function menubar.refresh()
menubar.formspec = "box[-2,7.625;15.75,1.75;BLK]"
menubar.formspec = "box[-2,7.625;15.75,1.75;000000]"
menubar.buttons = {}
local button_base = -1.8

View File

@ -187,9 +187,9 @@ function modstore.getmodlist(list)
" of " .. (list.pagecount +1) .. "]"
retval = retval .. "button[11.6,-0.1;0.5,0.5;btn_modstore_page_up;^]"
retval = retval .. "box[11.6,0.35;0.28,8.6;BLK]"
retval = retval .. "box[11.6,0.35;0.28,8.6;000000]"
local scrollbarpos = 0.35 + (8.1/list.pagecount) * list.page
retval = retval .. "box[11.6," ..scrollbarpos .. ";0.28,0.5;LIM]"
retval = retval .. "box[11.6," ..scrollbarpos .. ";0.28,0.5;32CD32]"
retval = retval .. "button[11.6,9.0;0.5,0.5;btn_modstore_page_down;v]"
@ -210,7 +210,7 @@ function modstore.getmodlist(list)
if details ~= nil then
local screenshot_ypos = (i-1 - (list.page * modstore.modsperpage))*1.9 +0.2
retval = retval .. "box[0," .. screenshot_ypos .. ";11.4,1.75;WHT]"
retval = retval .. "box[0," .. screenshot_ypos .. ";11.4,1.75;FFFFFF]"
--screenshot
if details.screenshot_url ~= nil and
@ -272,4 +272,4 @@ function modstore.get_details(modid)
local retval = engine.get_modstore_details(tostring(modid))
modstore.details_cache[modid] = retval
return retval
end
end