@@ -26,6 +26,7 @@ function __extend(base, ext) {
26
26
function inner_panel ( config ) { return __extend ( { type :"inner_panel" } , config ) }
27
27
function outer_panel ( config ) { return __extend ( { type :"outer_panel" } , config ) }
28
28
function text ( config ) { return __extend ( { type :"text" } , config ) }
29
+ function dummy ( config ) { return __extend ( { type :"text" } , config ) }
29
30
function text_center ( config ) { return __extend ( { type :"text" , align :"center" } , config ) }
30
31
function label ( config ) { return __extend ( { type :"label" , font : FONT_NORMAL_WHITE_ON_DARK } , config ) }
31
32
function header ( config ) { return __extend ( { type :"label" , font : FONT_LARGE_BLACK_ON_LIGHT } , config ) }
@@ -38,6 +39,9 @@ function button(config) { return __extend({type:"generic_button", font : FONT_NO
38
39
function arrowup ( config ) { return __extend ( { type :"arrow_button" , down :false } , config ) }
39
40
function arrowdown ( config ) { return __extend ( { type :"arrow_button" , down :true } , config ) }
40
41
function background ( config ) { return __extend ( { type :"background" , down :true } , config ) }
42
+ function help_button ( config ) { return image_button ( { margin :{ left :14 , bottom :- 40 } , size :[ 27 , 27 ] , pack :PACK_GENERAL , id :134 } ) }
43
+ function close_button ( config ) { return image_button ( { margin :{ right :- 40 , bottom :- 40 } , size :[ 27 , 27 ] , pack :PACK_GENERAL , id :134 , offset :4 } ) }
44
+ function resource_icon ( config ) { return __extend ( { type : "resource_icon" } , config ) }
41
45
42
46
uioptions = {
43
47
resource_icons : { pack :PACK_GENERAL , id :129 } ,
@@ -1229,47 +1233,70 @@ well_info_window = {
1229
1233
}
1230
1234
}
1231
1235
1232
- info_window_storageyard = {
1236
+ info_window_storageyard_orders = {
1237
+ parent_window_offset : [ 0 , - 250 ] ,
1233
1238
ui : {
1234
- background : { type : "outer_panel" , pos : [ 0 , 0 ] , size : [ 29 , 19 ] } ,
1235
- title : { type : "text" , pos : [ 0 , 12 ] , size : [ px ( 27 ) , 20 ] , font :FONT_LARGE_BLACK_ON_LIGHT , align :"center" } ,
1236
-
1237
- storing : { type : "text" , pos : [ 34 , 40 ] , font : FONT_NORMAL_BLACK_ON_LIGHT } ,
1238
- free_space : { type : "text" , pos : [ 220 , 40 ] , font : FONT_NORMAL_BLACK_ON_LIGHT } ,
1239
+ background : outer_panel ( { size :[ 29 , 35 ] } ) ,
1240
+ title : text_center ( { text :[ 99 , 3 ] , pos :[ 10 , 10 ] , size :[ px ( 29 ) , 20 ] , font : FONT_LARGE_BLACK_ON_LIGHT } ) ,
1241
+
1242
+ items_panel : inner_panel ( { pos :[ 16 , 42 ] , size :[ 27 , 28 ] } ) ,
1243
+ resource_base : dummy ( { pos : [ 10 , 26 ] } ) ,
1244
+ icon_column : dummy ( { pos : [ 26 , 6 ] } ) ,
1245
+ name_column : dummy ( { pos : [ 56 , 6 ] } ) ,
1246
+ order_column : dummy ( { pos : [ px ( 27 ) / 2 , 4 ] , size :[ px ( 27 ) / 2 , 20 ] } ) ,
1247
+ increase_column : dummy ( { pos : [ px ( 27 ) / 2 - 30 , 6 ] } ) ,
1248
+ decrease_column : dummy ( { pos : [ px ( 27 ) / 2 - 13 , 6 ] } ) ,
1249
+ item_row : dummy ( { size : [ 0 , 20 ] } ) ,
1250
+
1251
+ button_help : help_button ( { } ) ,
1252
+ button_close : close_button ( { } ) ,
1253
+
1254
+ empty_all : button ( { pos :[ 80 , - 1 ] , size :[ 300 , 24 ] , margin :{ bottom :- 64 } } ) ,
1255
+ accept_none : button ( { pos :[ 80 , - 1 ] , size :[ 300 , 24 ] , text :[ 99 , 7 ] , margin :{ bottom :- 38 } } ) ,
1256
+ }
1257
+ }
1239
1258
1240
- good0_icon : { type : "resource_icon" , pos : [ 32 , 60 ] } ,
1241
- good0_text : { type : "text" , pos : [ 54 , 64 ] , font : FONT_NORMAL_BLACK_ON_LIGHT } ,
1242
- good1_icon : { type : "resource_icon" , pos : [ 172 , 60 ] } ,
1243
- good1_text : { type : "text" , pos : [ 194 , 64 ] , font : FONT_NORMAL_BLACK_ON_LIGHT } ,
1244
- good2_icon : { type : "resource_icon" , pos : [ 292 , 60 ] } ,
1245
- good2_text : { type : "text" , pos : [ 314 , 64 ] , font : FONT_NORMAL_BLACK_ON_LIGHT } ,
1246
-
1247
- good3_icon : { type : "resource_icon" , pos : [ 32 , 90 ] } ,
1248
- good3_text : { type : "text" , pos : [ 54 , 94 ] , font : FONT_NORMAL_BLACK_ON_LIGHT } ,
1249
- good4_icon : { type : "resource_icon" , pos : [ 172 , 60 ] } ,
1250
- good4_text : { type : "text" , pos : [ 194 , 94 ] , font : FONT_NORMAL_BLACK_ON_LIGHT } ,
1251
- good5_icon : { type : "resource_icon" , pos : [ 292 , 90 ] } ,
1252
- good5_text : { type : "text" , pos : [ 314 , 94 ] , font : FONT_NORMAL_BLACK_ON_LIGHT } ,
1253
-
1254
- good6_icon : { type : "resource_icon" , pos : [ 32 , 120 ] } ,
1255
- good6_text : { type : "text" , pos : [ 54 , 124 ] , font : FONT_NORMAL_BLACK_ON_LIGHT } ,
1256
- good7_icon : { type : "resource_icon" , pos : [ 172 , 120 ] } ,
1257
- good7_text : { type : "text" , pos : [ 194 , 124 ] , font : FONT_NORMAL_BLACK_ON_LIGHT } ,
1258
- good8_icon : { type : "resource_icon" , pos : [ 292 , 120 ] } ,
1259
- good8_text : { type : "text" , pos : [ 314 , 124 ] , font : FONT_NORMAL_BLACK_ON_LIGHT } ,
1260
-
1261
- warning_text : { type : "text" , pos : [ 32 , 56 ] , wrap :px ( 27 ) , font : FONT_NORMAL_BLACK_ON_LIGHT , multiline :true } ,
1262
- workers_panel : { type : "inner_panel" , pos : [ 16 , 168 ] , size : [ 27 , 5 ] } ,
1263
- workers_img : { type : "image" , pack :PACK_GENERAL , id :134 , offset :14 , pos :[ 40 , 173 ] } ,
1264
- workers_text : { type : "text" , pos : [ 70 , 178 ] , font : FONT_NORMAL_BLACK_ON_DARK , multiline :true , wrap :px ( 24 ) } ,
1265
- workers_desc : { type : "text" , pos : [ 70 , 178 + 16 ] , font : FONT_NORMAL_BLACK_ON_DARK } ,
1266
- cartstate_img : { type : "resource_icon" , pos :[ 40 , 220 ] } ,
1267
- cartstate_desc : { type : "text" , pos : [ 32 , 223 ] , wrap :px ( 27 ) , font : FONT_NORMAL_BLACK_ON_DARK , multiline :true } ,
1268
-
1269
- orders : { type :"generic_button" , margin :{ left :100 , bottom :- 40 } , size :[ 270 , 24 ] , text :{ group : 99 , id : 2 } } ,
1270
- button_help : { type : "image_button" , margin :{ left :14 , bottom :- 40 } , size :[ 27 , 27 ] , pack :PACK_GENERAL , id :134 } ,
1271
- button_close : { type : "image_button" , margin :{ right :- 40 , bottom :- 40 } , size :[ 27 , 27 ] , pack :PACK_GENERAL , id :134 , offset :4 } ,
1272
- mothball : { type :"generic_button" , margin :{ right :- 90 , bottom :- 40 } , size :[ 23 , 23 ] } ,
1259
+ info_window_storageyard = {
1260
+ ui : {
1261
+ background : outer_panel ( { size : [ 29 , 19 ] } ) ,
1262
+ title : text ( { pos : [ 0 , 12 ] , size : [ px ( 27 ) , 20 ] , font :FONT_LARGE_BLACK_ON_LIGHT , align :"center" } ) ,
1263
+
1264
+ storing : text ( { pos : [ 34 , 40 ] , font : FONT_NORMAL_BLACK_ON_LIGHT } ) ,
1265
+ free_space : text ( { pos : [ 220 , 40 ] , font : FONT_NORMAL_BLACK_ON_LIGHT } ) ,
1266
+
1267
+ good0_icon : resource_icon ( { pos : [ 32 , 60 ] } ) ,
1268
+ good0_text : text ( { pos : [ 54 , 64 ] , font : FONT_NORMAL_BLACK_ON_LIGHT } ) ,
1269
+ good1_icon : resource_icon ( { pos : [ 172 , 60 ] } ) ,
1270
+ good1_text : text ( { pos : [ 194 , 64 ] , font : FONT_NORMAL_BLACK_ON_LIGHT } ) ,
1271
+ good2_icon : resource_icon ( { pos : [ 292 , 60 ] } ) ,
1272
+ good2_text : text ( { pos : [ 314 , 64 ] , font : FONT_NORMAL_BLACK_ON_LIGHT } ) ,
1273
+
1274
+ good3_icon : resource_icon ( { pos : [ 32 , 90 ] } ) ,
1275
+ good3_text : text ( { pos : [ 54 , 94 ] , font : FONT_NORMAL_BLACK_ON_LIGHT } ) ,
1276
+ good4_icon : resource_icon ( { pos : [ 172 , 60 ] } ) ,
1277
+ good4_text : text ( { pos : [ 194 , 94 ] , font : FONT_NORMAL_BLACK_ON_LIGHT } ) ,
1278
+ good5_icon : resource_icon ( { pos : [ 292 , 90 ] } ) ,
1279
+ good5_text : text ( { pos : [ 314 , 94 ] , font : FONT_NORMAL_BLACK_ON_LIGHT } ) ,
1280
+
1281
+ good6_icon : resource_icon ( { pos : [ 32 , 120 ] } ) ,
1282
+ good6_text : text ( { pos : [ 54 , 124 ] , font : FONT_NORMAL_BLACK_ON_LIGHT } ) ,
1283
+ good7_icon : resource_icon ( { pos : [ 172 , 120 ] } ) ,
1284
+ good7_text : text ( { pos : [ 194 , 124 ] , font : FONT_NORMAL_BLACK_ON_LIGHT } ) ,
1285
+ good8_icon : resource_icon ( { pos : [ 292 , 120 ] } ) ,
1286
+ good8_text : text ( { pos : [ 314 , 124 ] , font : FONT_NORMAL_BLACK_ON_LIGHT } ) ,
1287
+
1288
+ warning_text : text ( { pos : [ 32 , 56 ] , wrap :px ( 27 ) , font : FONT_NORMAL_BLACK_ON_LIGHT , multiline :true } ) ,
1289
+ workers_panel : inner_panel ( { pos : [ 16 , 168 ] , size : [ 27 , 5 ] } ) ,
1290
+ workers_img : image ( { pack :PACK_GENERAL , id :134 , offset :14 , pos :[ 40 , 173 ] } ) ,
1291
+ workers_text : text ( { pos : [ 70 , 178 ] , font : FONT_NORMAL_BLACK_ON_DARK , multiline :true , wrap :px ( 24 ) } ) ,
1292
+ workers_desc : text ( { pos : [ 70 , 178 + 16 ] , font : FONT_NORMAL_BLACK_ON_DARK } ) ,
1293
+ cartstate_img : resource_icon ( { pos :[ 40 , 220 ] } ) ,
1294
+ cartstate_desc : text ( { pos : [ 32 , 223 ] , wrap :px ( 27 ) , font : FONT_NORMAL_BLACK_ON_DARK , multiline :true } ) ,
1295
+
1296
+ orders : button ( { margin :{ left :100 , bottom :- 40 } , size :[ 270 , 24 ] , text :[ 99 , 2 ] } ) ,
1297
+ button_help : help_button ( { } ) ,
1298
+ button_close : close_button ( { } ) ,
1299
+ mothball : button ( { margin :{ right :- 90 , bottom :- 40 } , size :[ 23 , 23 ] } ) ,
1273
1300
}
1274
1301
}
1275
1302
0 commit comments