From dfe74948e298f6f9014e075512532c5fdd195a5e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Diego=20Mart=C3=ADnez?= Date: Sat, 25 Mar 2017 18:26:17 -0300 Subject: [PATCH] creative: Use icons for buttons. --- mods/creative/README.txt | 12 +++++++++++- mods/creative/inventory.lua | 8 ++++---- mods/creative/textures/creative_clear_icon.png | Bin 0 -> 129 bytes mods/creative/textures/creative_next_icon.png | Bin 0 -> 132 bytes mods/creative/textures/creative_prev_icon.png | Bin 0 -> 132 bytes mods/creative/textures/creative_search_icon.png | Bin 0 -> 136 bytes mods/creative/textures/creative_trash_icon.png | Bin 179 -> 126 bytes 7 files changed, 15 insertions(+), 5 deletions(-) create mode 100644 mods/creative/textures/creative_clear_icon.png create mode 100644 mods/creative/textures/creative_next_icon.png create mode 100644 mods/creative/textures/creative_prev_icon.png create mode 100644 mods/creative/textures/creative_search_icon.png diff --git a/mods/creative/README.txt b/mods/creative/README.txt index 82357f30..a61b5ff0 100644 --- a/mods/creative/README.txt +++ b/mods/creative/README.txt @@ -9,4 +9,14 @@ Jean-Patrick G. (kilbith) (MIT) Author of media (textures) -------------------------- -Jean-Patrick G. (kilbith) (CC BY-SA 3.0) + +Jean-Patrick G. (kilbith) (CC BY-SA 3.0): + +* creative_trash_icon.png + +Diego Martínez (kaeza) (CC BY-SA 3.0): + +* creative_prev_icon.png +* creative_next_icon.png +* creative_search_icon.png +* creative_clear_icon.png diff --git a/mods/creative/inventory.lua b/mods/creative/inventory.lua index 8b7f0c3a..24e88a68 100644 --- a/mods/creative/inventory.lua +++ b/mods/creative/inventory.lua @@ -112,10 +112,10 @@ function creative.register_tab(name, title, items) list[current_player;main;0,5.85;8,3;8] list[detached:creative_trash;main;4,3.3;1,1;] listring[] - button[5.4,3.2;0.8,0.9;creative_prev;<] - button[7.25,3.2;0.8,0.9;creative_next;>] - button[2.1,3.4;0.8,0.5;creative_search;?] - button[2.75,3.4;0.8,0.5;creative_clear;X] + image_button[5.4,3.25;0.8,0.8;creative_prev_icon.png;creative_prev;] + image_button[7.2,3.25;0.8,0.8;creative_next_icon.png;creative_next;] + image_button[2.1,3.25;0.8,0.8;creative_search_icon.png;creative_search;] + image_button[2.75,3.25;0.8,0.8;creative_clear_icon.png;creative_clear;] tooltip[creative_search;Search] tooltip[creative_clear;Reset] listring[current_player;main] diff --git a/mods/creative/textures/creative_clear_icon.png b/mods/creative/textures/creative_clear_icon.png new file mode 100644 index 0000000000000000000000000000000000000000..af225c275a4a9107b83e7c54c213f8804a172a81 GIT binary patch literal 129 zcmeAS@N?(olHy`uVBq!ia0vp^1|ZDH3?y^UWFG-iYymzYu0Z<#|Nl#G&c6#}F_r}R z1v5B2yO9RuXnMLhhDcmaPFSE?aiHCE99gp1FpusnBnc#D?M>SSY7#PHg WWiQ^Us%r=8VeoYIb6Mw<&;$U3PbQK8 literal 0 HcmV?d00001 diff --git a/mods/creative/textures/creative_prev_icon.png b/mods/creative/textures/creative_prev_icon.png new file mode 100644 index 0000000000000000000000000000000000000000..0d7f8c902aa5847cab8f570d3784f49aaa893129 GIT binary patch literal 132 zcmeAS@N?(olHy`uVBq!ia0vp^1|ZDD3?#L31Vw-pXMj(LE0F#V2E`RilYtzjk|4ie z28Oc9XDxs{4Nn)x5RLQ62@*jLCOM3PGS@DIx)g5ecvP@fsmpmurpvBgkNJF-3=B^H W6tZV>scZx4VeoYIb6Mw<&;$U2swMOQ literal 0 HcmV?d00001 diff --git a/mods/creative/textures/creative_search_icon.png b/mods/creative/textures/creative_search_icon.png new file mode 100644 index 0000000000000000000000000000000000000000..02c69cf7720961d8d45edfb72028c6c5501741ca GIT binary patch literal 136 zcmeAS@N?(olHy`uVBq!ia0vp^1|ZDH3?y^UWFG-iYymzYu0Z<#|Nl#G&c6#}F_r}R z1v5B2yO9Ru7tZMq`nLATgerDFG2@Q-0j9XPBJy;D2Ll(x3j; fqz%X2CNeT)HHufoo-{oJ)XU)M>gTe~DWM4fU!*OU literal 0 HcmV?d00001 diff --git a/mods/creative/textures/creative_trash_icon.png b/mods/creative/textures/creative_trash_icon.png index e789ad634450a5fa5227e9efd8fe804703d3eece..649945a7f0aea124710709f0b0e39cd390cb5acd 100644 GIT binary patch delta 8 PcmdnYSU16WVudvT4^;z7 delta 59 zcmb>1%s9c>h%w3A-G!lpRn~)nfq}EYBeIx*fm;}a85w5HkpK#^mw5WRvOi$t66Kcv L6LU6rqJtd(exnVE -- 2.25.1