Fixed mixed indentation
This commit is contained in:
parent
fc66535402
commit
b855c96648
|
@ -13,26 +13,26 @@ function generate(size)
|
||||||
chest_width = 14,
|
chest_width = 14,
|
||||||
chest_height = 5,
|
chest_height = 5,
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
-- calc padding to vertically align center the chest and the player's inventory
|
-- calc padding to vertically align center the chest and the player's inventory
|
||||||
local player_inv_y_orig = cfg.chest_height + 0.85
|
local player_inv_y_orig = cfg.chest_height + 0.85
|
||||||
local player_inv_x_orig = (cfg.window_width - 8) / 2 -- 8=player_inv_width
|
local player_inv_x_orig = (cfg.window_width - 8) / 2 -- 8=player_inv_width
|
||||||
return "size[" ..
|
return "size[" ..
|
||||||
cfg.window_width .. "," .. cfg.window_height .. "]" ..
|
cfg.window_width .. "," .. cfg.window_height .. "]" ..
|
||||||
default.gui_bg ..
|
default.gui_bg ..
|
||||||
default.gui_bg_img ..
|
default.gui_bg_img ..
|
||||||
default.gui_slots ..
|
default.gui_slots ..
|
||||||
"list[current_name;main;0,0.3;" ..
|
"list[current_name;main;0,0.3;" ..
|
||||||
cfg.chest_width .. "," .. cfg.chest_height .. ";]" ..
|
cfg.chest_width .. "," .. cfg.chest_height .. ";]" ..
|
||||||
"list[current_player;main;" ..
|
"list[current_player;main;" ..
|
||||||
player_inv_x_orig .. "," .. player_inv_y_orig ..
|
player_inv_x_orig .. "," .. player_inv_y_orig ..
|
||||||
";8,1;]" ..
|
";8,1;]" ..
|
||||||
"list[current_player;main;" ..
|
"list[current_player;main;" ..
|
||||||
player_inv_x_orig .. "," .. (player_inv_y_orig + 1.15) ..
|
player_inv_x_orig .. "," .. (player_inv_y_orig + 1.15) ..
|
||||||
";8,3;8]" ..
|
";8,3;8]" ..
|
||||||
"listring[current_name;main]" ..
|
"listring[current_name;main]" ..
|
||||||
"listring[current_player;main]" ..
|
"listring[current_player;main]" ..
|
||||||
default.get_hotbar_bg(player_inv_x_orig, player_inv_y_orig)
|
default.get_hotbar_bg(player_inv_x_orig, player_inv_y_orig)
|
||||||
end
|
end
|
||||||
|
|
||||||
return generate
|
return generate
|
||||||
|
|
Loading…
Reference in New Issue