Compare commits

...

2 Commits

Author SHA1 Message Date
bri cassa 85ce5a90aa Delete depends.txt, add mod.conf 2022-07-07 19:25:17 +02:00
bri cassa 6ab62576d1 Fix runes inventory since unified_inventory v2 2021-04-08 21:52:09 +02:00
3 changed files with 11 additions and 9 deletions

13
api.lua
View File

@ -220,13 +220,14 @@ unified_inventory.register_button("runes", {
show_with = false, --Modif MFF (Crabman 30/06/2015)
})
unified_inventory.register_page("runes", {
get_formspec = function(player)
get_formspec = function(player, perplayer_formspec)
local name = player:get_player_name()
local formspec = "background[0,0.2;8,4;runes_rune_inventory.png]"..
"background[0,4.5;8,4;ui_main_inventory.png]"..
"size[8,10]"..
"list[detached:"..name.."_runes;runes;0,0.2;8,4;]"
return {formspec=formspec}
local formspec = {
perplayer_formspec.standard_inv_bg,
unified_inventory.make_inv_img_grid(0.3,0.2, 8,4),
"list[detached:"..name.."_runes;runes;0.43,0.33;8,4;]"
}
return {formspec=table.concat(formspec)}
end,
})

View File

@ -1,3 +0,0 @@
default
unified_inventory
mana

4
mod.conf Normal file
View File

@ -0,0 +1,4 @@
name = runes
title = Runes
description = This mod proposes runes used in the balance of solarmana.
depends = default,unified_inventory,mana