@@ -112,6 +112,31 @@ local FMT = {
112
112
arrow = " image_button[%f,%f;0.8,0.8;%s;%s;;;false;%s]" ,
113
113
}
114
114
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
+
115
140
local function get_lang_code (name )
116
141
local info = get_player_info (name )
117
142
return info and info .lang_code
@@ -1153,13 +1178,6 @@ local function get_rcp_lbl(lang_code, show_usages, unum, rnum, fs, panel, spacin
1153
1178
local x_arrow = XOFFSET + (sfinv_only and 1.7 or 1 )
1154
1179
local y_arrow = YOFFSET + (sfinv_only and 3.3 or 1.4 + spacing )
1155
1180
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
-
1163
1181
fs [# fs + 1 ] = fmt (mul_elem (FMT .arrow , 2 ),
1164
1182
x_arrow - shift , y_arrow , PNG .prev , prev_name , " " ,
1165
1183
x_arrow + 1.8 , y_arrow , PNG .next , next_name , " " )
@@ -1290,30 +1308,15 @@ local function make_fs(data)
1290
1308
9 - 0.9 , LINES + 0.4 , PNG .bg_full , 10 )
1291
1309
end
1292
1310
1311
+ fs [# fs + 1 ] = styles
1312
+
1293
1313
fs [# fs + 1 ] = fmt ([[
1294
- style[filter;border=false]
1295
1314
field[0.4,0.2;2.6,1;filter;;%s]
1296
1315
field_close_on_enter[filter;false]
1297
1316
box[0,0;2.5,0.6;#bababa25]
1298
1317
]] ,
1299
1318
ESC (data .filter ))
1300
1319
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
-
1317
1320
fs [# fs + 1 ] = fmt (mul_elem (FMT .image_button , 2 ),
1318
1321
2.6 , - 0.06 , 0.85 , 0.85 , " " , " search" , " " ,
1319
1322
3.3 , - 0.06 , 0.85 , 0.85 , " " , " clear" , " " )
0 commit comments