mirror of
https://github.com/minetest-mods/craftguide.git
synced 2025-07-03 16:40:37 +02:00
Compare commits
3 Commits
c15ce57d1b
...
7e70ccab27
Author | SHA1 | Date | |
---|---|---|---|
7e70ccab27 | |||
3bd2da9e32 | |||
b7bfa5a623 |
@ -21,4 +21,4 @@ For developers, `craftguide` also has a [modding API](https://github.com/minetes
|
|||||||
Love this mod? Donations are appreciated: https://www.paypal.me/jpg84240
|
Love this mod? Donations are appreciated: https://www.paypal.me/jpg84240
|
||||||
|
|
||||||
|
|
||||||

|

|
||||||
|
35
init.lua
35
init.lua
@ -115,32 +115,31 @@ local fs_elements = {
|
|||||||
local styles = sprintf([[
|
local styles = sprintf([[
|
||||||
style_type[label,field;font_size=+0]
|
style_type[label,field;font_size=+0]
|
||||||
style_type[image_button;border=false;sound=craftguide_click]
|
style_type[image_button;border=false;sound=craftguide_click]
|
||||||
style_type[item_image_button;border=false;bgimg_hovered=%s;bgimg_pressed=%s;
|
style_type[item_image_button;border=false;bgimg_hovered=%s;sound=craftguide_click]
|
||||||
sound=craftguide_click]
|
|
||||||
|
|
||||||
style[filter;border=false]
|
style[filter;border=false]
|
||||||
style[cancel;fgimg=%s;fgimg_hovered=%s;fgimg_pressed=%s]
|
style[cancel;fgimg=%s;fgimg_hovered=%s;content_offset=0]
|
||||||
style[search;fgimg=%s;fgimg_hovered=%s]
|
style[search;fgimg=%s;fgimg_hovered=%s]
|
||||||
style[prev_page;fgimg=%s;fgimg_hovered=%s;fgimg_pressed=%s]
|
style[prev_page;fgimg=%s;fgimg_hovered=%s]
|
||||||
style[next_page;fgimg=%s;fgimg_hovered=%s;fgimg_pressed=%s]
|
style[next_page;fgimg=%s;fgimg_hovered=%s]
|
||||||
style[prev_recipe;fgimg=%s;fgimg_hovered=%s;fgimg_pressed=%s]
|
style[prev_recipe;fgimg=%s;fgimg_hovered=%s]
|
||||||
style[next_recipe;fgimg=%s;fgimg_hovered=%s;fgimg_pressed=%s]
|
style[next_recipe;fgimg=%s;fgimg_hovered=%s]
|
||||||
style[prev_usage;fgimg=%s;fgimg_hovered=%s;fgimg_pressed=%s]
|
style[prev_usage;fgimg=%s;fgimg_hovered=%s]
|
||||||
style[next_usage;fgimg=%s;fgimg_hovered=%s;fgimg_pressed=%s]
|
style[next_usage;fgimg=%s;fgimg_hovered=%s]
|
||||||
style[pagenum,no_item,no_rcp;border=false;font=bold;font_size=+2;content_offset=0]
|
style[pagenum,no_item,no_rcp;border=false;font=bold;font_size=+2;content_offset=0]
|
||||||
style[craft_rcp,craft_usg;border=false;noclip=true;font_size=+0;sound=craftguide_craft;
|
style[craft_rcp,craft_usg;border=false;noclip=true;font_size=+0;sound=craftguide_craft;
|
||||||
bgimg=craftguide_btn9.png;bgimg_hovered=craftguide_btn9_hovered.png;
|
bgimg=craftguide_btn9.png;bgimg_hovered=craftguide_btn9_hovered.png;
|
||||||
bgimg_pressed=craftguide_btn9_pressed.png;bgimg_middle=4,6]
|
bgimg_pressed=craftguide_btn9_pressed.png;bgimg_middle=4,6]
|
||||||
]],
|
]],
|
||||||
PNG.selected, PNG.selected,
|
PNG.selected,
|
||||||
PNG.cancel, PNG.cancel_hover, PNG.cancel_hover,
|
PNG.cancel, PNG.cancel_hover,
|
||||||
PNG.search, PNG.search_hover,
|
PNG.search, PNG.search_hover,
|
||||||
PNG.prev, PNG.prev_hover, PNG.prev_hover,
|
PNG.prev, PNG.prev_hover,
|
||||||
PNG.next, PNG.next_hover, PNG.next_hover,
|
PNG.next, PNG.next_hover,
|
||||||
PNG.prev, PNG.prev_hover, PNG.prev_hover,
|
PNG.prev, PNG.prev_hover,
|
||||||
PNG.next, PNG.next_hover, PNG.next_hover,
|
PNG.next, PNG.next_hover,
|
||||||
PNG.prev, PNG.prev_hover, PNG.prev_hover,
|
PNG.prev, PNG.prev_hover,
|
||||||
PNG.next, PNG.next_hover, PNG.next_hover)
|
PNG.next, PNG.next_hover)
|
||||||
|
|
||||||
local function get_lang_code(info)
|
local function get_lang_code(info)
|
||||||
return info and info.lang_code
|
return info and info.lang_code
|
||||||
@ -1542,7 +1541,7 @@ local function make_fs(data)
|
|||||||
fmt("image_button", 4.25, 0.14, 0.7, 0.7, "", "search", ""))
|
fmt("image_button", 4.25, 0.14, 0.7, 0.7, "", "search", ""))
|
||||||
|
|
||||||
if data.filter ~= "" then
|
if data.filter ~= "" then
|
||||||
fs(fmt("image_button", 3.75, 0.35, 0.3, 0.3, PNG.cancel, "cancel", ""))
|
fs(fmt("image_button", 3.75, 0.35, 0.3, 0.3, "", "cancel", ""))
|
||||||
end
|
end
|
||||||
|
|
||||||
fs(fmt("image_button", data.xoffset - 3.2, 0.15, 0.7, 0.7, "", "prev_page", ""),
|
fs(fmt("image_button", data.xoffset - 3.2, 0.15, 0.7, 0.7, "", "prev_page", ""),
|
||||||
|
Reference in New Issue
Block a user