Skip to content

Commit 403e6e6

Browse files
committedJul 21, 2015
Document game main menu image system
1 parent 8994913 commit 403e6e6

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed
 

Diff for: ‎doc/lua_api.txt

+10-1
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,15 @@ e.g.
6565
The game directory can contain the file minetest.conf, which will be used
6666
to set default settings when running the particular game.
6767

68+
### Menu images
69+
70+
Games can provide custom main menu images. They are put inside a `menu` directory inside the game directory.
71+
72+
The images are named `$identifier.png`, where `$identifier` is one of `overlay,background,footer,header`.
73+
If you want to specify multiple images for one identifier, add additional images named like `$identifier.$n.png`, with an ascending number $n starting with 1,
74+
and a random image will be chosen from the provided ones.
75+
76+
6877
Mod load path
6978
-------------
7079
Generic:
@@ -1711,7 +1720,7 @@ Helper functions
17111720
max_jitter = 0.5, -- maximum packet time jitter
17121721
avg_jitter = 0.03, -- average packet time jitter
17131722
connection_uptime = 200, -- seconds since client connected
1714-
1723+
17151724
-- following information is available on debug build only!!!
17161725
-- DO NOT USE IN MODS
17171726
--ser_vers = 26, -- serialization version used by client

0 commit comments

Comments
 (0)