Textures: Revert many back to RGBA to fix visual bug
[oweals/minetest_game.git] / mods / default / init.lua
1 -- Minetest 0.4 mod: default
2 -- See README.txt for licensing and other information.
3
4 -- The API documentation in here was moved into game_api.txt
5
6 -- Definitions made by this mod that other mods can use too
7 default = {}
8
9 default.LIGHT_MAX = 14
10
11 -- GUI related stuff
12 default.gui_bg = "bgcolor[#080808BB;true]"
13 default.gui_bg_img = "background[5,5;1,1;gui_formbg.png;true]"
14 default.gui_slots = "listcolors[#00000069;#5A5A5A;#141318;#30434C;#FFF]"
15
16 function default.get_hotbar_bg(x,y)
17         local out = ""
18         for i=0,7,1 do
19                 out = out .."image["..x+i..","..y..";1,1;gui_hb_bg.png]"
20         end
21         return out
22 end
23
24 default.gui_survival_form = "size[8,8.5]"..
25                         default.gui_bg..
26                         default.gui_bg_img..
27                         default.gui_slots..
28                         "list[current_player;main;0,4.25;8,1;]"..
29                         "list[current_player;main;0,5.5;8,3;8]"..
30                         "list[current_player;craft;1.75,0.5;3,3;]"..
31                         "list[current_player;craftpreview;5.75,1.5;1,1;]"..
32                         "image[4.75,1.5;1,1;gui_furnace_arrow_bg.png^[transformR270]"..
33                         "listring[current_player;main]"..
34                         "listring[current_player;craft]"..
35                         default.get_hotbar_bg(0,4.25)
36
37 -- Load files
38 local default_path = minetest.get_modpath("default")
39
40 dofile(default_path.."/functions.lua")
41 dofile(default_path.."/trees.lua")
42 dofile(default_path.."/nodes.lua")
43 dofile(default_path.."/furnace.lua")
44 dofile(default_path.."/tools.lua")
45 dofile(default_path.."/item_entity.lua")
46 dofile(default_path.."/craftitems.lua")
47 dofile(default_path.."/crafting.lua")
48 dofile(default_path.."/mapgen.lua")
49 dofile(default_path.."/player.lua")
50 dofile(default_path.."/aliases.lua")
51 dofile(default_path.."/legacy.lua")