summaryrefslogtreecommitdiff
path: root/builtin/modstore.lua
diff options
context:
space:
mode:
authorSfan5 <sfan5@live.de>2013-07-06 10:32:58 +0200
committerSfan5 <sfan5@live.de>2013-07-06 10:32:58 +0200
commit307c57dcc494161d019d7ee394e7cdb1912ca11f (patch)
treec17ebed96fd762abff6f87657f6ebbcc81e3bd28 /builtin/modstore.lua
parent18d7bc7fa1f2621eb593969b7bcccfeb4918c05f (diff)
downloadminetest-307c57dcc494161d019d7ee394e7cdb1912ca11f.tar.gz
minetest-307c57dcc494161d019d7ee394e7cdb1912ca11f.tar.bz2
minetest-307c57dcc494161d019d7ee394e7cdb1912ca11f.zip
Use hexadecimal RRGGBB instead of colorkeys, rename getColor to parseColor
Diffstat (limited to 'builtin/modstore.lua')
-rw-r--r--builtin/modstore.lua8
1 files changed, 4 insertions, 4 deletions
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