View difference between Paste ID: sJVZWYhY and 8wkDPc0R
SHOW: | | - or go back to the newest paste.
1
  -- Controls to flip items pages
2
  local start_x = 9.2
3
  formspec = formspec .. "button["..(start_x + 0.6 * 0)..",9;.8,.8;start_list;|<;]"
4
  formspec = formspec .. "button["..(start_x + 0.6 * 1)..",9;.8,.8;rewind3;<<;]"
5
  formspec = formspec .. "button["..(start_x + 0.6 * 2)..",9;.8,.8;rewind1;<;]"
6
  formspec = formspec .. "button["..(start_x + 0.6 * 3)..",9;.8,.8;forward1;>;]"
7
  formspec = formspec .. "button["..(start_x + 0.6 * 4)..",9;.8,.8;forward3;>>;]"
8
  formspec = formspec .. "button["..(start_x + 0.6 * 5)..",9;.8,.8;end_list;>|;]"
9
10
  -- Search box
11
  formspec = formspec .. "field[9.5,8.325;3,1;searchbox;;"..minetest.formspec_escape(unified_inventory.current_searchbox[player_name]).."]"
12-
  formspec = formspec .. "button[12.2,8.1;.8,.8;searchbutton;Go]"
12+
  formspec = formspec .. "button[12.2,8.1;.8,.8;searchbutton;Go;]"