mirror of
https://github.com/minetest-mods/i3.git
synced 2024-12-25 02:10:39 +01:00
Improve set home button look
This commit is contained in:
parent
482027d09b
commit
80b927de1c
@ -599,7 +599,9 @@ local function show_settings(fs, data)
|
|||||||
end
|
end
|
||||||
|
|
||||||
hypertext(2.2, 9.9, 6, 0.6, "home_pos", fmt("<global size=16><center>%s</center>", str))
|
hypertext(2.2, 9.9, 6, 0.6, "home_pos", fmt("<global size=16><center>%s</center>", str))
|
||||||
image_button(4.3, 10.4, 1.8, 0.7, "", "set_home", "Set home")
|
fs("style[set_home;padding=20,10,-210,-10;fgimg=%s;fgimg_hovered=%s]", PNG.home_px, PNG.home_px_hover)
|
||||||
|
image_button(4.1, 10.4, 2.2, 0.7, "", "set_home", "")
|
||||||
|
label(4.9, 10.75, "Set home")
|
||||||
|
|
||||||
elseif show_style then
|
elseif show_style then
|
||||||
checkbox(2.6, 9.95, "cb_hide_tabs", "Hide tabs", tostring(data.hide_tabs))
|
checkbox(2.6, 9.95, "cb_hide_tabs", "Hide tabs", tostring(data.hide_tabs))
|
||||||
|
@ -54,6 +54,8 @@ local PNG = {
|
|||||||
node = "i3_node.png",
|
node = "i3_node.png",
|
||||||
item = "i3_item.png",
|
item = "i3_item.png",
|
||||||
cube = "i3_cube.png",
|
cube = "i3_cube.png",
|
||||||
|
home_px = "i3_home_px.png",
|
||||||
|
home_px_hover = "i3_home_px_hover.png",
|
||||||
|
|
||||||
cancel_hover = "i3_cancel.png^\\[brighten",
|
cancel_hover = "i3_cancel.png^\\[brighten",
|
||||||
search_hover = "i3_search.png^\\[brighten",
|
search_hover = "i3_search.png^\\[brighten",
|
||||||
|
BIN
textures/i3_home_px.png
Normal file
BIN
textures/i3_home_px.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.1 KiB |
BIN
textures/i3_home_px_hover.png
Normal file
BIN
textures/i3_home_px_hover.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.1 KiB |
Loading…
Reference in New Issue
Block a user