Hack to make UI consistent

A hack to override backgrounds set by other mods until they update to be consistent with new look. This should be removed after mods have transitioned.
This commit is contained in:
isaiah658 2020-12-16 01:55:31 +00:00 committed by GitHub
parent 3c5735ad2a
commit 69a8a3a914
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -79,6 +79,14 @@ function unified_inventory.get_formspec(player, page)
formspec[n] = fsdata.formspec
n = n+1
-- Hack to make UI consistent until mods transition away from backgrounds
if minetest.features.formspec_version_element then
formspec[n] = "background9[5,5;1,1;gui_formbg.png;true;10]"
else
formspec[n] = "background[5,5;1,1;gui_formbg.png;true]"
end
n = n+1
local button_row = 0
local button_col = 0