30
30
31
31
---- ----------------------------------------------------------------------------
32
32
function menubar .refresh ()
33
- menubar .formspec = " box[-0.3,5.625;12.4,1.3;#000000]" ..
33
+
34
+ menubar .formspec = " box[-0.3,5.625;12.4,1.2;#000000]" ..
34
35
" box[-0.3,5.6;12.4,0.05;#FFFFFF]"
35
36
menubar .buttons = {}
36
37
37
- local button_base = - 0.25
38
+ local button_base = - 0.08
38
39
39
40
local maxbuttons = # gamemgr .games
40
41
41
- if maxbuttons > 10 then
42
- maxbuttons = 10
42
+ if maxbuttons > 11 then
43
+ maxbuttons = 11
43
44
end
44
45
45
46
for i = 1 ,maxbuttons ,1 do
46
47
47
48
local btn_name = " menubar_btn_" .. gamemgr .games [i ].id
48
- local buttonpos = button_base + (i - 1 ) * 1.245
49
+ local buttonpos = button_base + (i - 1 ) * 1.1
49
50
if gamemgr .games [i ].menuicon_path ~= nil and
50
51
gamemgr .games [i ].menuicon_path ~= " " then
51
52
52
53
menubar .formspec = menubar .formspec ..
53
- " image_button[" .. buttonpos .. " ,5.7 ;1.3 ,1.3 ;" ..
54
+ " image_button[" .. buttonpos .. " ,5.72 ;1.165 ,1.175 ;" ..
54
55
engine .formspec_escape (gamemgr .games [i ].menuicon_path ) .. " ;" ..
55
56
btn_name .. " ;;true;false]"
56
57
else
@@ -65,7 +66,7 @@ function menubar.refresh()
65
66
text = text .. " \n " .. part3
66
67
end
67
68
menubar .formspec = menubar .formspec ..
68
- " image_button[" .. buttonpos .. " ,5.7 ;1.3 ,1.3 ;;" .. btn_name ..
69
+ " image_button[" .. buttonpos .. " ,5.72 ;1.165 ,1.175 ;;" .. btn_name ..
69
70
" ;" .. text .. " ;true;true]"
70
71
end
71
72
0 commit comments