summaryrefslogtreecommitdiff
path: root/myhighscore/scoreboard.lua
diff options
context:
space:
mode:
authorDonBatman <serfdon@gmail.com>2015-10-24 21:34:06 -0700
committerDonBatman <serfdon@gmail.com>2015-10-24 21:34:06 -0700
commitcb94946e1e596b42b21d7e73213f59feb8e76f92 (patch)
tree3b850035aab669fb1dfda692f5c5f711c72efacb /myhighscore/scoreboard.lua
parent4a9d35295a47539ebf9a525f14702f8f73f0776d (diff)
alligned score board
added pacmini board
Diffstat (limited to 'myhighscore/scoreboard.lua')
-rwxr-xr-xmyhighscore/scoreboard.lua14
1 files changed, 7 insertions, 7 deletions
diff --git a/myhighscore/scoreboard.lua b/myhighscore/scoreboard.lua
index 38e659e..2de154b 100755
--- a/myhighscore/scoreboard.lua
+++ b/myhighscore/scoreboard.lua
@@ -4,9 +4,9 @@
local button_form = "size[6,8;]"..
"background[0,0;6,8;myhighscore_form_bg.png]"..
- "label[1,0.5;HIGH SCORES]"..
+ "label[2,0.5;HIGH SCORES]"..
"button[1,1;4,1;game;label]"..
- "button_exit[4,7;1,2;exit;Exit]"
+ "button_exit[2,7;2,1;exit;Exit]"
--place holders
local game_name = "the game"
@@ -19,18 +19,18 @@ local function get_formspec_for_game(name)
-- Obtain a comma separated list of scores to display
local scorelist = ""
for _,score in pairs(scores) do
- scorelist = scorelist .. minetest.formspec_escape(score.player) ..
- "\t\t\t\t " .. score.score ..","
+ scorelist = scorelist .." ".. minetest.formspec_escape(score.player) ..
+ "\t\t\t\t " .." ".. score.score ..","
end
return "size[6,8;]"..
"background[0,0;6,8;myhighscore_form_bg.png]"..
"label[1,0.5;HIGH SCORES FOR "..def.description.."]"..
- "label[1,1.5;PLAYER]"..
+ "label[1.25,1.5;PLAYER]"..
"label[3.5,1.5;SCORE]"..
"textlist[0.5,2;5,5;;"..scorelist.."]"..
- "button[2,7;1,2;back;Back]"..
- "button_exit[4,7;1,2;exit;Exit]"
+ "button[1,7;2,1;back;Back]"..
+ "button_exit[3,7;2,1;exit;Exit]"
end