From 307c57dcc494161d019d7ee394e7cdb1912ca11f Mon Sep 17 00:00:00 2001 From: Sfan5 Date: Sat, 6 Jul 2013 10:32:58 +0200 Subject: Use hexadecimal RRGGBB instead of colorkeys, rename getColor to parseColor --- builtin/modstore.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'builtin/modstore.lua') diff --git a/builtin/modstore.lua b/builtin/modstore.lua index 73afc3899..1890da138 100644 --- a/builtin/modstore.lua +++ b/builtin/modstore.lua @@ -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 \ No newline at end of file +end -- cgit v1.2.3