Moving buttons, screenshot, etc

This commit is contained in:
tacotexmex 2017-04-27 20:26:33 +02:00
parent 5dadd5c2c3
commit 38328a33eb
4 changed files with 5 additions and 4 deletions

BIN
demo.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 148 KiB

View File

@ -5,11 +5,11 @@ tweak.formspec = {}
tweak.buttons = {
--sort_asc
"0.55,0.6;sort_asc;^]".."tooltip[sort_asc;sort Items asc.;#30434C;#FFF]",
"0.5,0;sort_asc;^]".."tooltip[sort_asc;sort Items asc.;#30434C;#FFF]",
--sort_desc
"0.55,0.6;sort_desc;v]".."tooltip[sort_desc;sort Items desc.;#30434C;#FFF]",
"0.5,0;sort_desc;v]".."tooltip[sort_desc;sort Items desc.;#30434C;#FFF]",
--concatenate
"0.65,0.6;sort;›•]".."tooltip[sort;stack Items and sort asc.;#30434C;#FFF]"
"0.5,0;sort;=]".."tooltip[sort;stack Items and sort asc.;#30434C;#FFF]"
}
local function get_formspec_size(formspec)
@ -38,7 +38,7 @@ local function add_buttons(player, formspec)
return
end
for i=1,#tweak.buttons do
formspec = formspec .. "button["..w-2+(i*0.5)..",-0.2;" .. tweak.buttons[i]
formspec = formspec .. "button["..w-1.27+(i*0.27)..",4.3;" .. tweak.buttons[i]
end
player:set_inventory_formspec(formspec)
return formspec

1
mod.conf Normal file
View File

@ -0,0 +1 @@
name = invtweak

BIN
screenshot.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB