Skip to content

Commit 2cb0f64

Browse files
Wuzzyparamat
Wuzzy
authored andcommittedJul 27, 2016
Main menu, lua_api.txt: Fix mod/texture pack screenshot size issues
Recommend mod screenshot size in lua_api.txt Adjust displayed screenshot size of texture packs Document texture pack files in lua_api.txt
1 parent c8b4bed commit 2cb0f64

File tree

3 files changed

+38
-3
lines changed

3 files changed

+38
-3
lines changed
 

‎builtin/mainmenu/tab_texturepacks.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ local function get_formspec(tabview, name, tabdata)
9696
return retval ..
9797
render_texture_pack_list(list) ..
9898
";" .. index .. "]" ..
99-
"image[0.25,0.25;4.0,3.7;" .. core.formspec_escape(screenfile or no_screenshot) .. "]" ..
100-
"textarea[0.6,3.5;3.7,1.5;;" .. core.formspec_escape(infotext or "") .. ";]"
99+
"image[0.25,0.25;4.05,2.7;" .. core.formspec_escape(screenfile or no_screenshot) .. "]" ..
100+
"textarea[0.6,2.85;3.7,1.5;;" .. core.formspec_escape(infotext or "") .. ";]"
101101
end
102102

103103
--------------------------------------------------------------------------------

‎doc/lua_api.txt

+36-1
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,8 @@ to a single modname. Their meaning is that if the specified mod
157157
is missing, that does not prevent this mod from being loaded.
158158

159159
### `screenshot.png`
160-
A screenshot shown in modmanager within mainmenu.
160+
A screenshot shown in the mod manager within the main menu. It should
161+
have an aspect ratio of 3:2 and a minimum size of 300×200 pixels.
161162

162163
### `description.txt`
163164
A File containing description to be shown within mainmenu.
@@ -234,6 +235,40 @@ stripping out the file extension:
234235
* e.g. `foomod_foothing.png`
235236
* e.g. `foomod_foothing`
236237

238+
Texture pack directory structure
239+
--------------------------------
240+
241+
textures
242+
|-- Texture Pack
243+
| |-- screenshot.png
244+
| |-- description.txt
245+
| |-- your_texture_1.png
246+
| |-- your_texture_2.png
247+
`-- Another Texture Pack
248+
249+
### Texture Pack
250+
This is a directory containing the entire contents of a single texture pack.
251+
It can be chosen more or less freely and will also become the name of the
252+
texture pack. The name must not be “base”.
253+
254+
### `description.txt`
255+
A file containing a short description of the texture pack to be shown in the
256+
texture packs tab.
257+
258+
### `screenshot.png`
259+
A preview image showing an in-game screenshot of this texture pack; it will be
260+
shown in the texture packs tab. It should have an aspect ratio of 3:2 and a
261+
minimum size of 300×200 pixels.
262+
263+
### `your_texture_1.png`, `your_texture_2.png`, etc.
264+
Any other PNG files will be interpreted as textures. They must have the same
265+
names as the textures they are supposed to override. For example, to override
266+
the apple texture of Minetest Game, add a PNG file named `default_apple.png`.
267+
268+
The custom textures do not necceessarily require the same size as their
269+
originals, but this might be required for a few particular textures. When
270+
unsure, just test your texture pack in-game.
271+
237272
Texture modifiers
238273
-----------------
239274
There are various texture modifiers that can be used

‎textures/base/pack/no_screenshot.png

446 Bytes
Loading

0 commit comments

Comments
 (0)
Please sign in to comment.