summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorWuzzy <wuzzy2@mail.ru>2020-09-04 20:49:50 +0200
committerGitHub <noreply@github.com>2020-09-04 20:49:50 +0200
commitb3ace8f19746b53f839e7b0bdff0843c83866f64 (patch)
treee11e64bfd4e8092c2f823f32d14121886ce42c79 /games
parent050964bed6005f8d816ddf362b9fc8675581d190 (diff)
downloadminetest-b3ace8f19746b53f839e7b0bdff0843c83866f64.tar.gz
minetest-b3ace8f19746b53f839e7b0bdff0843c83866f64.tar.bz2
minetest-b3ace8f19746b53f839e7b0bdff0843c83866f64.zip
Scale inventory image for scaled allfaces nodes (#10225)
The inventory image size of the inventory image of nodes with drawtype allfaces (and related) is scaled as well if visual_scale is set (previously, the inventory image size was always the same)
Diffstat (limited to 'games')
-rw-r--r--games/devtest/mods/testnodes/drawtypes.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/games/devtest/mods/testnodes/drawtypes.lua b/games/devtest/mods/testnodes/drawtypes.lua
index 6bf57fa37..82d862819 100644
--- a/games/devtest/mods/testnodes/drawtypes.lua
+++ b/games/devtest/mods/testnodes/drawtypes.lua
@@ -514,6 +514,15 @@ local scale = function(subname, desc_double, desc_half)
minetest.register_node("testnodes:"..subname.."_half", def)
end
+scale("allfaces",
+ S("Double-sized Allfaces Drawtype Test Node"),
+ S("Half-sized Allfaces Drawtype Test Node"))
+scale("allfaces_optional",
+ S("Double-sized Allfaces Optional Drawtype Test Node"),
+ S("Half-sized Allfaces Optional Drawtype Test Node"))
+scale("allfaces_optional_waving",
+ S("Double-sized Waving Allfaces Optional Drawtype Test Node"),
+ S("Half-sized Waving Allfaces Optional Drawtype Test Node"))
scale("plantlike",
S("Double-sized Plantlike Drawtype Test Node"),
S("Half-sized Plantlike Drawtype Test Node"))