mirror of
https://github.com/minetest-mods/craftguide.git
synced 2024-11-25 20:23:42 +01:00
New search icon
This commit is contained in:
parent
24fdd07f56
commit
a5e913f3a4
10
init.lua
10
init.lua
@ -78,7 +78,7 @@ local MIN_FORMSPEC_VERSION = 4
|
||||
local PNG = {
|
||||
bg = "craftguide_bg.png",
|
||||
bg_full = "craftguide_bg_full.png",
|
||||
search = "craftguide_search_icon.png",
|
||||
search = "craftguide_search.png",
|
||||
prev = "craftguide_next_icon.png^\\[transformFX",
|
||||
next = "craftguide_next_icon.png",
|
||||
arrow = "craftguide_arrow.png",
|
||||
@ -91,7 +91,7 @@ local PNG = {
|
||||
furnace_anim = "craftguide_furnace_anim.png",
|
||||
|
||||
cancel_hover = "craftguide_cancel.png^\\[brighten",
|
||||
search_hover = "craftguide_search_icon_hover.png",
|
||||
search_hover = "craftguide_search.png^\\[brighten",
|
||||
prev_hover = "craftguide_next_icon_hover.png^\\[transformFX",
|
||||
next_hover = "craftguide_next_icon_hover.png",
|
||||
}
|
||||
@ -119,7 +119,7 @@ local styles = sprintf([[
|
||||
|
||||
style[filter;border=false]
|
||||
style[cancel;fgimg=%s;fgimg_hovered=%s;content_offset=0]
|
||||
style[search;fgimg=%s;fgimg_hovered=%s]
|
||||
style[search;fgimg=%s;fgimg_hovered=%s;content_offset=0]
|
||||
style[prev_page;fgimg=%s;fgimg_hovered=%s]
|
||||
style[next_page;fgimg=%s;fgimg_hovered=%s]
|
||||
style[prev_recipe;fgimg=%s;fgimg_hovered=%s]
|
||||
@ -1533,12 +1533,12 @@ local function make_fs(data)
|
||||
fs(fmt("bg9", 0, 0, data.xoffset, LINES + 1.7, PNG.bg_full, 10))
|
||||
|
||||
fs(sprintf([[
|
||||
box[0.2,0.2;4,0.6;#bababa25]
|
||||
box[0.2,0.2;4.55,0.6;#bababa25]
|
||||
set_focus[filter]
|
||||
field[0.3,0.2;3.4,0.6;filter;;%s]
|
||||
field_close_on_enter[filter;false]
|
||||
]], ESC(data.filter)),
|
||||
fmt("image_button", 4.25, 0.14, 0.7, 0.7, "", "search", ""))
|
||||
fmt("image_button", 4.25, 0.32, 0.35, 0.35, "", "search", ""))
|
||||
|
||||
if data.filter ~= "" then
|
||||
fs(fmt("image_button", 3.75, 0.35, 0.3, 0.3, "", "cancel", ""))
|
||||
|
BIN
textures/craftguide_search.png
Normal file
BIN
textures/craftguide_search.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 7.5 KiB |
Binary file not shown.
Before Width: | Height: | Size: 13 KiB |
Binary file not shown.
Before Width: | Height: | Size: 14 KiB |
Loading…
Reference in New Issue
Block a user