mirror of
https://github.com/minetest-mods/3d_armor.git
synced 2024-11-26 06:13:45 +01:00
Use preview method for unified inventory
I found this during porting the 3d_armor to player_api ;-)
This commit is contained in:
parent
c0d45ceaa1
commit
9ce0ed9f55
@ -35,7 +35,7 @@ unified_inventory.register_page("armor", {
|
||||
local formspec = "background[0.06,"..fy..";7.92,7.52;3d_armor_ui_form.png]"..
|
||||
"label[0,0;"..F("Armor").."]"..
|
||||
"list[detached:"..name.."_armor;armor;0,"..fy..";2,3;]"..
|
||||
"image[2.5,"..(fy - 0.25)..";2,4;"..armor.textures[name].preview.."]"..
|
||||
"image[2.5,"..(fy - 0.25)..";2,4;"..armor:get_preview(name).."]"..
|
||||
"label[5.0,"..(fy + 0.0)..";"..F("Level")..": "..armor.def[name].level.."]"..
|
||||
"label[5.0,"..(fy + 0.5)..";"..F("Heal")..": "..armor.def[name].heal.."]"..
|
||||
"listring[current_player;main]"..
|
||||
|
Loading…
Reference in New Issue
Block a user