Skip to content
This repository was archived by the owner on Aug 9, 2023. It is now read-only.

Commit 4cc44d0

Browse files
committed
Fix irrlicht warning
1 parent 584c215 commit 4cc44d0

21 files changed

+27
-24
lines changed

init.lua

Lines changed: 27 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,31 @@ local FMT = {
112112
arrow = "image_button[%f,%f;0.8,0.8;%s;%s;;;false;%s]",
113113
}
114114

115+
local styles = fmt([[
116+
style[filter;border=false]
117+
style_type[label,field;font_size=16]
118+
style_type[image_button;border=false]
119+
style_type[button;border=false;font=bold;font_size=18]
120+
style_type[item_image_button;border=false;bgimg_hovered=%s;bgimg_pressed=%s]
121+
style[search;fgimg=%s;fgimg_hovered=%s]
122+
style[clear;fgimg=%s;fgimg_hovered=%s]
123+
style[prev_page;fgimg=%s;fgimg_hovered=%s;fgimg_pressed=%s]
124+
style[next_page;fgimg=%s;fgimg_hovered=%s;fgimg_pressed=%s]
125+
style[prev_recipe;fgimg=%s;fgimg_hovered=%s;fgimg_pressed=%s]
126+
style[next_recipe;fgimg=%s;fgimg_hovered=%s;fgimg_pressed=%s]
127+
style[prev_usage;fgimg=%s;fgimg_hovered=%s;fgimg_pressed=%s]
128+
style[next_usage;fgimg=%s;fgimg_hovered=%s;fgimg_pressed=%s]
129+
]],
130+
PNG.selected, PNG.selected,
131+
PNG.search, PNG.search_hover,
132+
PNG.clear, PNG.clear_hover,
133+
PNG.prev, PNG.prev_hover, PNG.prev_hover,
134+
PNG.next, PNG.next_hover, PNG.next_hover,
135+
PNG.prev, PNG.prev_hover, PNG.prev_hover,
136+
PNG.next, PNG.next_hover, PNG.next_hover,
137+
PNG.prev, PNG.prev_hover, PNG.prev_hover,
138+
PNG.next, PNG.next_hover, PNG.next_hover)
139+
115140
local function get_lang_code(name)
116141
local info = get_player_info(name)
117142
return info and info.lang_code
@@ -1153,13 +1178,6 @@ local function get_rcp_lbl(lang_code, show_usages, unum, rnum, fs, panel, spacin
11531178
local x_arrow = XOFFSET + (sfinv_only and 1.7 or 1)
11541179
local y_arrow = YOFFSET + (sfinv_only and 3.3 or 1.4 + spacing)
11551180

1156-
fs[#fs + 1] = fmt([[
1157-
style[%s;fgimg=%s;fgimg_hovered=%s;fgimg_pressed=%s]
1158-
style[%s;fgimg=%s;fgimg_hovered=%s;fgimg_pressed=%s]
1159-
]],
1160-
prev_name, PNG.prev, PNG.prev_hover, PNG.prev_hover,
1161-
next_name, PNG.next, PNG.next_hover, PNG.next_hover)
1162-
11631181
fs[#fs + 1] = fmt(mul_elem(FMT.arrow, 2),
11641182
x_arrow - shift, y_arrow, PNG.prev, prev_name, "",
11651183
x_arrow + 1.8, y_arrow, PNG.next, next_name, "")
@@ -1290,30 +1308,15 @@ local function make_fs(data)
12901308
9 - 0.9, LINES + 0.4, PNG.bg_full, 10)
12911309
end
12921310

1311+
fs[#fs + 1] = styles
1312+
12931313
fs[#fs + 1] = fmt([[
1294-
style[filter;border=false]
12951314
field[0.4,0.2;2.6,1;filter;;%s]
12961315
field_close_on_enter[filter;false]
12971316
box[0,0;2.5,0.6;#bababa25]
12981317
]],
12991318
ESC(data.filter))
13001319

1301-
fs[#fs + 1] = fmt([[
1302-
style_type[label,field;font_size=16]
1303-
style_type[image_button;border=false]
1304-
style_type[button;border=false;font=bold;font_size=18]
1305-
style_type[item_image_button;border=false;bgimg_hovered=%s;bgimg_pressed=%s]
1306-
style[search;fgimg=%s;fgimg_hovered=%s]
1307-
style[clear;fgimg=%s;fgimg_hovered=%s]
1308-
style[prev_page;fgimg=%s;fgimg_hovered=%s;fgimg_pressed=%s]
1309-
style[next_page;fgimg=%s;fgimg_hovered=%s;fgimg_pressed=%s]
1310-
]],
1311-
PNG.selected, PNG.selected,
1312-
PNG.search, PNG.search_hover,
1313-
PNG.clear, PNG.clear_hover,
1314-
PNG.prev, PNG.prev_hover, PNG.prev_hover,
1315-
PNG.next, PNG.next_hover, PNG.next_hover)
1316-
13171320
fs[#fs + 1] = fmt(mul_elem(FMT.image_button, 2),
13181321
2.6, -0.06, 0.85, 0.85, "", "search", "",
13191322
3.3, -0.06, 0.85, 0.85, "", "clear", "")

textures/craftguide_arrow.png

2.94 KB
Loading

textures/craftguide_bg.png

-3.52 KB
Loading

textures/craftguide_bg_full.png

1.14 KB
Loading

textures/craftguide_book.png

-881 Bytes
Loading

textures/craftguide_clear_icon.png

3.46 KB
Loading
433 Bytes
Loading

textures/craftguide_fav.png

3.82 KB
Loading

textures/craftguide_fav_off.png

297 Bytes
Loading

textures/craftguide_fire_anim.png

1.76 KB
Loading

textures/craftguide_furnace_anim.png

643 Bytes
Loading

textures/craftguide_mesepick.png

-792 Bytes
Loading

textures/craftguide_next_icon.png

1.99 KB
Loading
414 Bytes
Loading

textures/craftguide_no.png

-1.25 KB
Loading

textures/craftguide_search_icon.png

421 Bytes
Loading
418 Bytes
Loading

textures/craftguide_selected.png

416 Bytes
Loading

textures/craftguide_shapeless.png

3.59 KB
Loading

textures/craftguide_sign.png

-484 Bytes
Loading

textures/craftguide_steelpick.png

-855 Bytes
Loading

0 commit comments

Comments
 (0)