added icons to trash and lookup inventories. Set transparency to inventories

This commit is contained in:
Alexander Weber 2017-02-27 20:36:16 +01:00
parent f1b8dd7956
commit 11729993b5
2 changed files with 5 additions and 0 deletions

View File

@ -216,6 +216,8 @@ local function crafting_callback(state)
state:background(1, 0, 4.5, 3.5, "img1", "menu_bg.png")
ui_tools.create_trash_inv(state, player)
state:element("code", {name = "inventory_bg_code", code = "listcolors[#00000069;#5A5A5A;#141318;#30434C;#FFF]"})
state:image(8,9,1,1,"trash_icon","creative_trash_icon.png")
state:inventory(8, 9, 1, 1, "trash"):useDetached(player.."_trash_inv")
state:button(1, 4.2, 2.5, 0.5, "compress", "Compress"):onClick(function(self, state, player)
@ -241,6 +243,7 @@ local function crafting_callback(state)
end)
create_lookup_inv(state, player)
state:image(10, 4, 1, 1,"lookup_icon", "default_bookshelf_slot.png")
state:inventory(10, 4.0, 1, 1,"lookup"):useDetached(player.."_crafting_inv")
-- functional buttons right site

View File

@ -136,6 +136,8 @@ local function creative_callback(state)
state:inventory(1.4, 8, 16, 2,"main")
ui_tools.create_trash_inv(state, player)
state:image(17.6,8,1,1,"trash_icon","creative_trash_icon.png")
state:element("code", {name = "trash_bg_code", code = "listcolors[#00000069;#5A5A5A;#141318;#30434C;#FFF]"})
state:inventory(17.6, 8, 1, 1, "trash"):useDetached(player.."_trash_inv")
-- filter on input