1
0
mirror of https://github.com/pyrollo/display_modpack.git synced 2025-10-15 08:35:35 +02:00

Make dp_modpack game agnostic using XCompat (#14)

* .

* Add `material.sandstone` (not in upstream xcompat yet)
This commit is contained in:
Niklp
2024-03-11 09:04:12 +01:00
committed by GitHub
parent 394166ca56
commit c315900c24
24 changed files with 93 additions and 86 deletions

View File

@@ -2,7 +2,7 @@
A library for rendernig text on textures (to be used with display_api for sign creation).
**Dependancies**: default
**Dependencies**: xcompat
**License**: LGPL

View File

@@ -98,9 +98,8 @@ local function show_font_formspec(playername)
table.sort(fonts)
local fs = string.format(
"size[4,%s]%s%s%sbutton_exit[0,%s;4,1;cancel;%s]",
#fonts + 0.8, default.gui_bg, default.gui_bg_img, default.gui_slots,
#fonts, FS("Cancel"))
"size[4,%s]button_exit[0,%s;4,1;cancel;%s]",
#fonts + 0.8, #fonts, FS("Cancel"))
for line = 1, #fonts do
local font = font_api.get_font(fonts[line])