aboutsummaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorBlockMen <nmuelll@web.de>2013-11-02 04:26:44 +0100
committerBlockMen <nmuelll@web.de>2013-11-03 22:14:37 +0100
commit25edae00ea1d5a9af4a6599fc7c200bb810fbd49 (patch)
tree68e1179e2c2316a4b43ae3a50511bb8012a4a2ca /builtin
parent0b788892898013cd430c48b98e21a3fd111c3c7f (diff)
downloadminetest-25edae00ea1d5a9af4a6599fc7c200bb810fbd49.tar.gz
minetest-25edae00ea1d5a9af4a6599fc7c200bb810fbd49.tar.bz2
minetest-25edae00ea1d5a9af4a6599fc7c200bb810fbd49.zip
Reworked formspecs and kahrl's hexcolor parser
Diffstat (limited to 'builtin')
-rw-r--r--builtin/mm_menubar.lua4
-rw-r--r--builtin/modstore.lua6
2 files changed, 5 insertions, 5 deletions
diff --git a/builtin/mm_menubar.lua b/builtin/mm_menubar.lua
index c3ddbb289..a60ea7ae5 100644
--- a/builtin/mm_menubar.lua
+++ b/builtin/mm_menubar.lua
@@ -30,8 +30,8 @@ end
--------------------------------------------------------------------------------
function menubar.refresh()
- menubar.formspec = "box[-0.3,5.625;12.4,1.3;000000]" ..
- "box[-0.3,5.6;12.4,0.05;FFFFFF]"
+ menubar.formspec = "box[-0.3,5.625;12.4,1.3;#000000]" ..
+ "box[-0.3,5.6;12.4,0.05;#FFFFFF]"
menubar.buttons = {}
local button_base = -0.25
diff --git a/builtin/modstore.lua b/builtin/modstore.lua
index 43f7759ad..b364ce6bd 100644
--- a/builtin/modstore.lua
+++ b/builtin/modstore.lua
@@ -183,9 +183,9 @@ function modstore.getmodlist(list)
retval = retval .. "label[10,-0.4;" .. fgettext("Page $1 of $2", list.page+1, list.pagecount) .. "]"
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;000000]"
+ retval = retval .. "box[11.6,0.35;0.28,8.6;#000000]"
local scrollbarpos = 0.35 + (8.1/(list.pagecount-1)) * list.page
- retval = retval .. "box[11.6," ..scrollbarpos .. ";0.28,0.5;32CD32]"
+ 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]"
@@ -206,7 +206,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;FFFFFF]"
+ retval = retval .. "box[0," .. screenshot_ypos .. ";11.4,1.75;#FFFFFF]"
--screenshot
if details.screenshot_url ~= nil and