xray16 1.0.7 → 1.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -1
- package/package.json +4 -3
- package/types/index.d.ts +46 -22
- package/types/{xr_object → xr_ai}/xr_action.d.ts +163 -135
- package/types/xr_ai/xr_alife.d.ts +552 -0
- package/types/xr_ai/xr_enemy_evaluation.d.ts +41 -0
- package/types/xr_ai/xr_goap.d.ts +668 -0
- package/types/xr_ai/xr_graph.d.ts +47 -0
- package/types/xr_ai/xr_memory.d.ts +148 -0
- package/types/xr_lib/xr_animation.d.ts +81 -0
- package/types/xr_lib/xr_bitwise.d.ts +21 -0
- package/types/xr_lib/xr_color.d.ts +40 -0
- package/types/xr_lib/xr_debug.d.ts +100 -0
- package/types/{xr_object → xr_lib}/xr_dialog.d.ts +7 -1
- package/types/xr_lib/xr_flags.d.ts +148 -0
- package/types/xr_lib/xr_fs.d.ts +37 -233
- package/types/xr_lib/xr_game.d.ts +159 -0
- package/types/xr_lib/xr_hit.d.ts +41 -0
- package/types/xr_lib/xr_ini.d.ts +176 -0
- package/types/xr_lib/xr_level.d.ts +225 -0
- package/types/xr_lib/xr_luabind.d.ts +59 -0
- package/types/{xr_map → xr_lib}/xr_map.d.ts +19 -0
- package/types/xr_lib/xr_math.d.ts +65 -0
- package/types/{xr_online → xr_lib}/xr_multiplayer.d.ts +52 -0
- package/types/xr_lib/xr_properties.d.ts +166 -0
- package/types/xr_lib/xr_relation.d.ts +84 -0
- package/types/xr_lib/xr_render.d.ts +70 -0
- package/types/xr_lib/xr_save.d.ts +223 -0
- package/types/{xr_sound → xr_lib}/xr_sound.d.ts +10 -12
- package/types/xr_lib/xr_stats.ts +20 -0
- package/types/{xr_object/xr_quest.d.ts → xr_lib/xr_task.d.ts} +54 -2
- package/types/xr_lib/xr_time.d.ts +61 -0
- package/types/{xr_type → xr_lib}/xr_type.d.ts +13 -13
- package/types/xr_object/client/xr_client_object.d.ts +76 -0
- package/types/xr_object/{xr_level.d.ts → client/xr_level.d.ts} +69 -0
- package/types/xr_object/{xr_physic.d.ts → client/xr_physic.d.ts} +58 -0
- package/types/xr_object/client/xr_zone.d.ts +40 -0
- package/types/xr_object/script/xr_script_interface.d.ts +429 -0
- package/types/xr_object/{xr_client_object.d.ts → script/xr_script_object.d.ts} +425 -518
- package/types/xr_object/script/xr_script_trade.d.ts +26 -0
- package/types/xr_object/{xr_server_object.d.ts → server/xr_server_object.d.ts} +151 -72
- package/types/xr_ui/xr_ui_asset.d.ts +123 -0
- package/types/xr_ui/xr_ui_core.d.ts +33 -123
- package/types/xr_ui/xr_ui_event.d.ts +382 -0
- package/types/xr_ui/xr_ui_interface.d.ts +213 -0
- package/types/xr_ui/xr_ui_menu.d.ts +142 -0
- package/types/xr_constant.d.ts +0 -996
- package/types/xr_core.d.ts +0 -347
- package/types/xr_global.d.ts +0 -663
- package/types/xr_lib/xr_utils.d.ts +0 -412
- package/types/xr_luabind.d.ts +0 -34
- package/types/xr_object/xr_alife.d.ts +0 -213
- package/types/xr_type/xr_enums.d.ts +0 -17
- package/types/xr_ui/README.md +0 -277
- package/types/xr_ui/demo/CServerList.png +0 -0
- package/types/xr_ui/demo/CUI3tButton.png +0 -0
- package/types/xr_ui/demo/CUICheckButton.png +0 -0
- package/types/xr_ui/demo/CUIComboBox.png +0 -0
- package/types/xr_ui/demo/CUICustomEdit.png +0 -0
- package/types/xr_ui/demo/CUIStatic.png +0 -0
- package/types/xr_ui/demo/CUITrackBar.png +0 -0
- /package/types/xr_object/{xr_anomaly.d.ts → client/xr_anomaly.d.ts} +0 -0
- /package/types/xr_object/{xr_artefact.d.ts → client/xr_artefact.d.ts} +0 -0
- /package/types/xr_object/{xr_creature.d.ts → client/xr_creature.d.ts} +0 -0
- /package/types/xr_object/{xr_item.d.ts → client/xr_item.d.ts} +0 -0
|
@@ -8,37 +8,63 @@ declare module "xray16" {
|
|
|
8
8
|
public constructor();
|
|
9
9
|
|
|
10
10
|
public IsShown(): boolean;
|
|
11
|
+
|
|
11
12
|
public IsEnabled(): boolean;
|
|
13
|
+
|
|
12
14
|
public IsAutoDelete(): boolean;
|
|
15
|
+
|
|
13
16
|
public IsCursorOverWindow(): boolean;
|
|
14
17
|
|
|
15
18
|
public GetFont(): CGameFont;
|
|
19
|
+
|
|
16
20
|
public GetHeight(): f32;
|
|
21
|
+
|
|
17
22
|
public GetWidth(): f32;
|
|
23
|
+
|
|
18
24
|
public GetWndPos(): vector2;
|
|
25
|
+
|
|
19
26
|
public GetAbsoluteRect(): Frect;
|
|
20
27
|
|
|
21
28
|
public SetFont(font: CGameFont): void;
|
|
29
|
+
|
|
22
30
|
public SetWndSize(vector2: vector2): void;
|
|
31
|
+
|
|
23
32
|
public SetWndSize(width: f32, height: f32): void;
|
|
33
|
+
|
|
24
34
|
public SetWindowName(name: string): void;
|
|
35
|
+
|
|
25
36
|
public SetWndPos(vector2: vector2): void;
|
|
37
|
+
|
|
26
38
|
public SetWndPos(x1: f32, y1: f32): void;
|
|
39
|
+
|
|
27
40
|
public SetAutoDelete(auto_delete: boolean): void;
|
|
41
|
+
|
|
28
42
|
public SetPPMode(): void;
|
|
43
|
+
|
|
29
44
|
public SetHeight(height: f32): void;
|
|
45
|
+
|
|
30
46
|
public SetWidth(width: f32): void;
|
|
47
|
+
|
|
31
48
|
public SetWndRect(rect: Frect): void;
|
|
49
|
+
|
|
32
50
|
public SetWndRect(x1: f32, y1: f32, x2: f32, y2: f32): void;
|
|
33
51
|
|
|
34
52
|
public FocusReceiveTime(): u32;
|
|
53
|
+
|
|
35
54
|
public Init(frect: Frect): void;
|
|
55
|
+
|
|
36
56
|
public Init(x1: f32, y1: f32, x2: f32, y2: f32): void;
|
|
57
|
+
|
|
37
58
|
public Enable(is_enabled: boolean): void;
|
|
59
|
+
|
|
38
60
|
public AttachChild(child: CUIWindow): void;
|
|
61
|
+
|
|
39
62
|
public DetachChild(child: CUIWindow): void;
|
|
63
|
+
|
|
40
64
|
public WindowName(): string;
|
|
65
|
+
|
|
41
66
|
public ResetPPMode(): void;
|
|
67
|
+
|
|
42
68
|
public Show(show: boolean): void;
|
|
43
69
|
}
|
|
44
70
|
|
|
@@ -52,13 +78,21 @@ declare module "xray16" {
|
|
|
52
78
|
public static readonly ece_unique_nick_not_registred: 1;
|
|
53
79
|
|
|
54
80
|
public SetPlayerName(name: string): void;
|
|
81
|
+
|
|
55
82
|
public SetFilters(filters: SServerFilters): void;
|
|
83
|
+
|
|
56
84
|
public RefreshList(value: boolean): void;
|
|
85
|
+
|
|
57
86
|
public SetSortFunc(a: string, b: boolean): void;
|
|
87
|
+
|
|
58
88
|
public NetRadioChanged(value: boolean): void;
|
|
89
|
+
|
|
59
90
|
public ShowServerInfo(): void;
|
|
91
|
+
|
|
60
92
|
public RefreshQuick(): void;
|
|
93
|
+
|
|
61
94
|
public ConnectToSelected(): void;
|
|
95
|
+
|
|
62
96
|
public SetConnectionErrCb(cb: connect_error_cb): void;
|
|
63
97
|
}
|
|
64
98
|
|
|
@@ -83,7 +117,9 @@ declare module "xray16" {
|
|
|
83
117
|
*/
|
|
84
118
|
export class CUICheckButton extends CUI3tButton {
|
|
85
119
|
public SetCheck(value: boolean): void;
|
|
120
|
+
|
|
86
121
|
public GetCheck(): boolean;
|
|
122
|
+
|
|
87
123
|
public SetDependControl(window: CUIWindow): void;
|
|
88
124
|
}
|
|
89
125
|
|
|
@@ -94,16 +130,27 @@ declare module "xray16" {
|
|
|
94
130
|
*/
|
|
95
131
|
export class CUIComboBox extends CUIWindow {
|
|
96
132
|
public enable_id(id: i32): void;
|
|
133
|
+
|
|
97
134
|
public disable_id(id: i32): void;
|
|
135
|
+
|
|
98
136
|
public ClearList(): void;
|
|
137
|
+
|
|
99
138
|
public SetText(text: string): void;
|
|
139
|
+
|
|
100
140
|
public AddItem(label: string, id: i32): void;
|
|
141
|
+
|
|
101
142
|
public GetText(): string;
|
|
143
|
+
|
|
102
144
|
public SetListLength(length: i32): void;
|
|
145
|
+
|
|
103
146
|
public CurrentID(): i32;
|
|
147
|
+
|
|
104
148
|
public GetTextOf(id: i32): string;
|
|
149
|
+
|
|
105
150
|
public SetCurrentOptValue(): void;
|
|
151
|
+
|
|
106
152
|
public SetVertScroll(enabled: boolean): void;
|
|
153
|
+
|
|
107
154
|
public SetCurrentID(id: i32): void;
|
|
108
155
|
}
|
|
109
156
|
|
|
@@ -114,8 +161,11 @@ declare module "xray16" {
|
|
|
114
161
|
*/
|
|
115
162
|
export class CUICustomEdit extends CUIWindow {
|
|
116
163
|
public GetText(): string;
|
|
164
|
+
|
|
117
165
|
public SetText(text: string): void;
|
|
166
|
+
|
|
118
167
|
public SetNextFocusCapturer(edit: CUICustomEdit): void;
|
|
168
|
+
|
|
119
169
|
public CaptureFocus(value: boolean): void;
|
|
120
170
|
}
|
|
121
171
|
|
|
@@ -136,8 +186,11 @@ declare module "xray16" {
|
|
|
136
186
|
|
|
137
187
|
export class CUIDialogWnd extends CUIWindow {
|
|
138
188
|
public HideDialog(): void;
|
|
189
|
+
|
|
139
190
|
public ShowDialog(show: boolean): void;
|
|
191
|
+
|
|
140
192
|
public GetHolder(): CDialogHolder;
|
|
193
|
+
|
|
141
194
|
public SetHolder(holder: CDialogHolder): void;
|
|
142
195
|
}
|
|
143
196
|
|
|
@@ -150,19 +203,33 @@ declare module "xray16" {
|
|
|
150
203
|
public constructor();
|
|
151
204
|
|
|
152
205
|
public OnKeyboard(key: TXR_DIK_key, event: TXR_ui_event): boolean;
|
|
206
|
+
|
|
153
207
|
public Update(): void;
|
|
208
|
+
|
|
154
209
|
public AddCallback(name: string, event: number, cb: (this: void) => void, source?: CUIWindow): void;
|
|
210
|
+
|
|
155
211
|
public Dispatch(command: number, parameter: number): boolean;
|
|
212
|
+
|
|
156
213
|
public Register(window: CUIWindow, name: string): void;
|
|
214
|
+
|
|
157
215
|
public Load(value: string): boolean;
|
|
216
|
+
|
|
158
217
|
public GetListWnd(id: string): CUIListWnd | null;
|
|
218
|
+
|
|
159
219
|
public GetDialogWnd(id: string): CUIDialogWnd | null;
|
|
220
|
+
|
|
160
221
|
public GetEditBox(id: string): CUIEditBox | null;
|
|
222
|
+
|
|
161
223
|
public GetListBox(id: string): CUIListBox | null;
|
|
224
|
+
|
|
162
225
|
public GetFrameLineWnd(id: string): CUIFrameLineWnd | null;
|
|
226
|
+
|
|
163
227
|
public GetTabControl(id: string): CUITabControl | null;
|
|
228
|
+
|
|
164
229
|
public GetProgressBar(id: string): CUIProgressBar | null;
|
|
230
|
+
|
|
165
231
|
public GetFrameWindow(id: string): CUIFrameWindow | null;
|
|
232
|
+
|
|
166
233
|
public GetStatic(id: string): CUIStatic | null;
|
|
167
234
|
}
|
|
168
235
|
|
|
@@ -209,10 +276,15 @@ declare module "xray16" {
|
|
|
209
276
|
*/
|
|
210
277
|
export class CUILines {
|
|
211
278
|
public GetText(): string;
|
|
279
|
+
|
|
212
280
|
public SetElipsis(value: boolean): void;
|
|
281
|
+
|
|
213
282
|
public SetFont(value: CGameFont): void;
|
|
283
|
+
|
|
214
284
|
public SetText(text: string): void;
|
|
285
|
+
|
|
215
286
|
public SetTextColor(color_code: u32): void;
|
|
287
|
+
|
|
216
288
|
public SetTextST(text: string): void;
|
|
217
289
|
}
|
|
218
290
|
|
|
@@ -223,18 +295,29 @@ declare module "xray16" {
|
|
|
223
295
|
*/
|
|
224
296
|
export class CUIListBox<T extends CUIListBoxItem = CUIListBoxItem> extends CUIScrollView {
|
|
225
297
|
public GetSize(): u32;
|
|
298
|
+
|
|
226
299
|
public GetItem(index: u32): CUIWindow;
|
|
300
|
+
|
|
227
301
|
public GetItemByIndex(index: i32): T;
|
|
302
|
+
|
|
228
303
|
public GetSelectedIndex(): u32;
|
|
304
|
+
|
|
229
305
|
public GetSelectedItem(): T | null;
|
|
306
|
+
|
|
230
307
|
public GetItemHeight(): f32;
|
|
231
308
|
|
|
232
309
|
public AddExistingItem(item: T): void;
|
|
310
|
+
|
|
233
311
|
public AddTextItem(text: string): T;
|
|
312
|
+
|
|
234
313
|
public RemoveItem(window: CUIWindow): void;
|
|
314
|
+
|
|
235
315
|
public RemoveAll(): void;
|
|
316
|
+
|
|
236
317
|
public ShowSelectedItem(value: boolean): void;
|
|
318
|
+
|
|
237
319
|
public SetItemHeight(height: f32): void;
|
|
320
|
+
|
|
238
321
|
public SetSelectedIndex(index: u32): void;
|
|
239
322
|
}
|
|
240
323
|
|
|
@@ -249,8 +332,11 @@ declare module "xray16" {
|
|
|
249
332
|
public constructor(target: CUIListBoxItem, height: f32);
|
|
250
333
|
|
|
251
334
|
public AddIconField(value: f32): CUIStatic;
|
|
335
|
+
|
|
252
336
|
public SetTextColor(color: u32): void;
|
|
337
|
+
|
|
253
338
|
public AddTextField(text: string, width: f32): CUITextWnd;
|
|
339
|
+
|
|
254
340
|
public GetTextItem(): CUITextWnd;
|
|
255
341
|
}
|
|
256
342
|
|
|
@@ -272,7 +358,9 @@ declare module "xray16" {
|
|
|
272
358
|
public static readonly epi_new_network_game: 2;
|
|
273
359
|
|
|
274
360
|
public ShowPage(page_id: TXR_MMShniaga_page): void;
|
|
361
|
+
|
|
275
362
|
public SetPage(page_id: TXR_MMShniaga_page, xml: string, selector: string): void;
|
|
363
|
+
|
|
276
364
|
public SetVisibleMagnifier(visible: boolean): void;
|
|
277
365
|
}
|
|
278
366
|
|
|
@@ -297,17 +385,29 @@ declare module "xray16" {
|
|
|
297
385
|
*/
|
|
298
386
|
export class CUIMapList extends CUIWindow {
|
|
299
387
|
public ClearList(): void;
|
|
388
|
+
|
|
300
389
|
public GetCommandLine<T extends string>(value: string): T;
|
|
390
|
+
|
|
301
391
|
public GetCurGameType(): TXR_GAME_TYPE;
|
|
392
|
+
|
|
302
393
|
public IsEmpty(): boolean;
|
|
394
|
+
|
|
303
395
|
public LoadMapList(): void;
|
|
396
|
+
|
|
304
397
|
public OnModeChange(): void;
|
|
398
|
+
|
|
305
399
|
public SaveMapList(): void;
|
|
400
|
+
|
|
306
401
|
public SetMapInfo(info: CUIMapInfo): void;
|
|
402
|
+
|
|
307
403
|
public SetMapPic(picture: CUIStatic): void;
|
|
404
|
+
|
|
308
405
|
public SetModeSelector(modeSelector: CUISpinText): void;
|
|
406
|
+
|
|
309
407
|
public SetServerParams(params: string): void;
|
|
408
|
+
|
|
310
409
|
public SetWeatherSelector(selector: CUIComboBox): void;
|
|
410
|
+
|
|
311
411
|
public StartDedicatedServer(): void;
|
|
312
412
|
}
|
|
313
413
|
|
|
@@ -318,7 +418,9 @@ declare module "xray16" {
|
|
|
318
418
|
*/
|
|
319
419
|
export class CUIMessageBox extends CUIStatic {
|
|
320
420
|
public InitMessageBox(value: string): boolean;
|
|
421
|
+
|
|
321
422
|
public GetPassword(): string;
|
|
423
|
+
|
|
322
424
|
public GetHost(): string;
|
|
323
425
|
}
|
|
324
426
|
|
|
@@ -329,8 +431,11 @@ declare module "xray16" {
|
|
|
329
431
|
*/
|
|
330
432
|
export class CUIMessageBoxEx extends CUIDialogWnd {
|
|
331
433
|
public InitMessageBox(selector: string): void;
|
|
434
|
+
|
|
332
435
|
public SetText(text: string): void;
|
|
436
|
+
|
|
333
437
|
public GetPassword(): string;
|
|
438
|
+
|
|
334
439
|
public GetHost(): string;
|
|
335
440
|
}
|
|
336
441
|
|
|
@@ -341,8 +446,11 @@ declare module "xray16" {
|
|
|
341
446
|
*/
|
|
342
447
|
export class CUIProgressBar extends CUIWindow {
|
|
343
448
|
public GetRange_max(): f32;
|
|
449
|
+
|
|
344
450
|
public GetRange_min(): f32;
|
|
451
|
+
|
|
345
452
|
public SetProgressPos(value: f32): void;
|
|
453
|
+
|
|
346
454
|
public GetProgressPos(): f32;
|
|
347
455
|
}
|
|
348
456
|
|
|
@@ -359,6 +467,7 @@ declare module "xray16" {
|
|
|
359
467
|
public Hide(): void;
|
|
360
468
|
|
|
361
469
|
public Show(show: boolean): void;
|
|
470
|
+
|
|
362
471
|
public Show(int1: i32, int2: i32): void;
|
|
363
472
|
}
|
|
364
473
|
|
|
@@ -371,8 +480,11 @@ declare module "xray16" {
|
|
|
371
480
|
public constructor();
|
|
372
481
|
|
|
373
482
|
public GetItemsCount(): u64;
|
|
483
|
+
|
|
374
484
|
public SwitchToSelectedVersion(): void;
|
|
485
|
+
|
|
375
486
|
public GetCurrentVersionDescr(): string;
|
|
487
|
+
|
|
376
488
|
public GetCurrentVersionName(): string;
|
|
377
489
|
}
|
|
378
490
|
|
|
@@ -383,14 +495,23 @@ declare module "xray16" {
|
|
|
383
495
|
*/
|
|
384
496
|
export class CUIScrollView extends CUIWindow {
|
|
385
497
|
public SetScrollPos(position: i32): void;
|
|
498
|
+
|
|
386
499
|
public RemoveWindow(window: CUIWindow): void;
|
|
500
|
+
|
|
387
501
|
public ScrollToBegin(): void;
|
|
502
|
+
|
|
388
503
|
public GetCurrentScrollPos(): i32;
|
|
504
|
+
|
|
389
505
|
public AddWindow(window: CUIWindow, value: boolean): void;
|
|
506
|
+
|
|
390
507
|
public GetMaxScrollPos(): i32;
|
|
508
|
+
|
|
391
509
|
public GetMinScrollPos(): i32;
|
|
510
|
+
|
|
392
511
|
public ScrollToEnd(): void;
|
|
512
|
+
|
|
393
513
|
public Clear(): void;
|
|
514
|
+
|
|
394
515
|
public SetFixedScrollBar(fixed: boolean): void;
|
|
395
516
|
}
|
|
396
517
|
|
|
@@ -429,29 +550,53 @@ declare module "xray16" {
|
|
|
429
550
|
*/
|
|
430
551
|
export class CUIStatic extends CUIWindow {
|
|
431
552
|
public GetColor(): u32;
|
|
553
|
+
|
|
432
554
|
public TextControl(): CUILines;
|
|
555
|
+
|
|
433
556
|
public GetTextureRect(): Frect;
|
|
557
|
+
|
|
434
558
|
public GetStretchTexture(): boolean;
|
|
559
|
+
|
|
435
560
|
public SetStretchTexture(stretch: boolean): void;
|
|
561
|
+
|
|
436
562
|
public SetTextureRect(frect: Frect): void;
|
|
563
|
+
|
|
437
564
|
public InitTexture(texture: string): void;
|
|
565
|
+
|
|
438
566
|
public SetTextColor(r: i32, g: i32, b: i32, a: i32): void;
|
|
567
|
+
|
|
439
568
|
public SetHeading(number: f32): void;
|
|
569
|
+
|
|
440
570
|
public SetTextST(string: string): void;
|
|
571
|
+
|
|
441
572
|
public SetTextAlign(align: u32): void;
|
|
573
|
+
|
|
442
574
|
public GetTextAlign(): u32;
|
|
575
|
+
|
|
443
576
|
public GetText(): string;
|
|
577
|
+
|
|
444
578
|
public InitTextureEx(first: string, second: string): void;
|
|
579
|
+
|
|
445
580
|
public SetTextX(x: f32): void;
|
|
581
|
+
|
|
446
582
|
public SetTextY(x: f32): void;
|
|
583
|
+
|
|
447
584
|
public GetTextY(x: f32): void;
|
|
585
|
+
|
|
448
586
|
public GetTextX(): f32;
|
|
587
|
+
|
|
449
588
|
public SetTextureOffset(x: f32, y: f32): void;
|
|
589
|
+
|
|
450
590
|
public SetColor(color: u32): void;
|
|
591
|
+
|
|
451
592
|
public SetElipsis(a: i32, b: i32): void;
|
|
593
|
+
|
|
452
594
|
public GetHeading(): f32;
|
|
595
|
+
|
|
453
596
|
public SetText(text: string): void;
|
|
597
|
+
|
|
454
598
|
public GetOriginalRect(): Frect;
|
|
599
|
+
|
|
455
600
|
public SetOriginalRect(frect: Frect): void;
|
|
456
601
|
}
|
|
457
602
|
|
|
@@ -469,16 +614,27 @@ declare module "xray16" {
|
|
|
469
614
|
*/
|
|
470
615
|
export class CUITabControl extends CUIWindow {
|
|
471
616
|
public GetActiveId(): string;
|
|
617
|
+
|
|
472
618
|
public SetActiveTab(id: string): void;
|
|
619
|
+
|
|
473
620
|
public SetActiveTab(id: u32): void;
|
|
621
|
+
|
|
474
622
|
public GetTabsCount(): u32;
|
|
623
|
+
|
|
475
624
|
public GetButtonById(id: string): CUITabButton;
|
|
625
|
+
|
|
476
626
|
public RemoveAll(): void;
|
|
627
|
+
|
|
477
628
|
public AddItem(item: CUITabButton): void;
|
|
629
|
+
|
|
478
630
|
public AddItem(id: string, name: string, top_left: vector2, bot_right: vector2): void;
|
|
631
|
+
|
|
479
632
|
public RemoveItem(id: string): void;
|
|
633
|
+
|
|
480
634
|
public GetButtonByIndex(index: u32): CUITabButton;
|
|
635
|
+
|
|
481
636
|
public SetNewActiveTab(index: u32): void;
|
|
637
|
+
|
|
482
638
|
public GetActiveIndex(): i32;
|
|
483
639
|
}
|
|
484
640
|
|
|
@@ -489,16 +645,27 @@ declare module "xray16" {
|
|
|
489
645
|
*/
|
|
490
646
|
export class CUITextWnd extends CUIWindow {
|
|
491
647
|
public SetTextOffset(x: f32, y: f32): void;
|
|
648
|
+
|
|
492
649
|
public SetText(text: string): void;
|
|
650
|
+
|
|
493
651
|
public SetTextAlignment(align: TXR_CGameFont_alignment): void;
|
|
652
|
+
|
|
494
653
|
public SetTextComplexMode(complex: boolean): void;
|
|
654
|
+
|
|
495
655
|
public GetText(): string;
|
|
656
|
+
|
|
496
657
|
public GetTextColor(): u32;
|
|
658
|
+
|
|
497
659
|
public SetTextColor(color: u32): void;
|
|
660
|
+
|
|
498
661
|
public SetTextST(text: string): void;
|
|
662
|
+
|
|
499
663
|
public AdjustHeightToText(): void;
|
|
664
|
+
|
|
500
665
|
public AdjustWidthToText(): void;
|
|
666
|
+
|
|
501
667
|
public SetEllipsis(value: boolean): void;
|
|
668
|
+
|
|
502
669
|
public SetVTextAlignment(alignment: TXR_CGameFont_alignment): void;
|
|
503
670
|
}
|
|
504
671
|
|
|
@@ -509,13 +676,21 @@ declare module "xray16" {
|
|
|
509
676
|
*/
|
|
510
677
|
export class CUITrackBar extends CUIWindow {
|
|
511
678
|
public SetCheck(value: boolean): void;
|
|
679
|
+
|
|
512
680
|
public SetCurrentValue(): void;
|
|
681
|
+
|
|
513
682
|
public SetCurrentValue(value: f32): void;
|
|
683
|
+
|
|
514
684
|
public SetCurrentValue(value: i32): void;
|
|
685
|
+
|
|
515
686
|
public GetCheck(): boolean;
|
|
687
|
+
|
|
516
688
|
public GetIValue(): i32;
|
|
689
|
+
|
|
517
690
|
public GetFValue(): f32;
|
|
691
|
+
|
|
518
692
|
public SetOptIBounds(min: i32, max: i32): void;
|
|
693
|
+
|
|
519
694
|
public SetOptFBounds(min: f32, max: f32): number;
|
|
520
695
|
}
|
|
521
696
|
|
|
@@ -526,10 +701,15 @@ declare module "xray16" {
|
|
|
526
701
|
*/
|
|
527
702
|
export class CDialogHolder {
|
|
528
703
|
public RemoveDialogToRender(window: CUIWindow): void;
|
|
704
|
+
|
|
529
705
|
public AddDialogToRender(window: CUIWindow): void;
|
|
706
|
+
|
|
530
707
|
public TopInputReceiver(): CUIDialogWnd;
|
|
708
|
+
|
|
531
709
|
public SetMainInputReceiver(window: CUIDialogWnd, find_remove: boolean): boolean;
|
|
710
|
+
|
|
532
711
|
public MainInputReceiver(): CUIDialogWnd;
|
|
712
|
+
|
|
533
713
|
public start_stop_menu(window: CUIWindow, value: boolean): void;
|
|
534
714
|
}
|
|
535
715
|
|
|
@@ -544,12 +724,15 @@ declare module "xray16" {
|
|
|
544
724
|
private constructor();
|
|
545
725
|
|
|
546
726
|
public Draw(): void;
|
|
727
|
+
|
|
547
728
|
public Update(): void;
|
|
548
729
|
|
|
549
730
|
public IsActual(): boolean;
|
|
731
|
+
|
|
550
732
|
public SetText(text: string): void;
|
|
551
733
|
|
|
552
734
|
public destroy(): void;
|
|
735
|
+
|
|
553
736
|
public wnd(): CUIStatic;
|
|
554
737
|
}
|
|
555
738
|
|
|
@@ -560,26 +743,47 @@ declare module "xray16" {
|
|
|
560
743
|
*/
|
|
561
744
|
export class CUIListWnd extends CUIWindow {
|
|
562
745
|
public SetVertFlip(flip: boolean): void;
|
|
746
|
+
|
|
563
747
|
public RemoveItem(index: i32): void;
|
|
748
|
+
|
|
564
749
|
public ScrollToPos(position: i32): void;
|
|
750
|
+
|
|
565
751
|
public ShowSelectedItem(show: boolean): void;
|
|
752
|
+
|
|
566
753
|
public EnableScrollBar(enable: boolean): void;
|
|
754
|
+
|
|
567
755
|
public GetItem(index: i32): CUIListItem;
|
|
756
|
+
|
|
568
757
|
public GetVertFlip(): boolean;
|
|
758
|
+
|
|
569
759
|
public SetTextColor(color: i32): void;
|
|
760
|
+
|
|
570
761
|
public GetSelectedItem(): i32;
|
|
762
|
+
|
|
571
763
|
public ScrollToEnd(): void;
|
|
764
|
+
|
|
572
765
|
public SetFocusedItem(index: i32): void;
|
|
766
|
+
|
|
573
767
|
public ActivateList(flag: boolean): void;
|
|
768
|
+
|
|
574
769
|
public GetSize(): i32;
|
|
770
|
+
|
|
575
771
|
public IsScrollBarEnabled(): boolean;
|
|
772
|
+
|
|
576
773
|
public ScrollToBegin(): void;
|
|
774
|
+
|
|
577
775
|
public RemoveAll(): void;
|
|
776
|
+
|
|
578
777
|
public AddItem(item: CUIListItem): boolean;
|
|
778
|
+
|
|
579
779
|
public SetItemHeight(height: f32): void;
|
|
780
|
+
|
|
580
781
|
public GetItemPos(item: CUIListItem): i32;
|
|
782
|
+
|
|
581
783
|
public IsListActive(): boolean;
|
|
784
|
+
|
|
582
785
|
public GetFocusedItem(): i32;
|
|
786
|
+
|
|
583
787
|
public ResetFocusCapture(): void;
|
|
584
788
|
}
|
|
585
789
|
|
|
@@ -608,6 +812,7 @@ declare module "xray16" {
|
|
|
608
812
|
public constructor();
|
|
609
813
|
|
|
610
814
|
public GetHintText(): string;
|
|
815
|
+
|
|
611
816
|
public SetHintText(hint: string): void;
|
|
612
817
|
}
|
|
613
818
|
|
|
@@ -620,7 +825,9 @@ declare module "xray16" {
|
|
|
620
825
|
public constructor();
|
|
621
826
|
|
|
622
827
|
public SetActiveSubdialog(section: string): void;
|
|
828
|
+
|
|
623
829
|
public GetActiveSection(): string;
|
|
830
|
+
|
|
624
831
|
public GetTabControl(): CUITabControl;
|
|
625
832
|
}
|
|
626
833
|
|
|
@@ -633,12 +840,15 @@ declare module "xray16" {
|
|
|
633
840
|
public constructor();
|
|
634
841
|
|
|
635
842
|
public get_drag_item(): game_object | null;
|
|
843
|
+
|
|
636
844
|
public highlight_section_in_slot(section: string, type: TXR_EDDListType, slot_id: u16): void;
|
|
845
|
+
|
|
637
846
|
public highlight_for_each_in_slot(
|
|
638
847
|
functor: (object: game_object) => boolean,
|
|
639
848
|
type: TXR_EDDListType,
|
|
640
849
|
slot_id: u16
|
|
641
850
|
): void;
|
|
851
|
+
|
|
642
852
|
public refresh_current_cell_item(): void;
|
|
643
853
|
}
|
|
644
854
|
|
|
@@ -662,5 +872,8 @@ declare module "xray16" {
|
|
|
662
872
|
private constructor();
|
|
663
873
|
}
|
|
664
874
|
|
|
875
|
+
/**
|
|
876
|
+
* @group xr_ui_interface
|
|
877
|
+
*/
|
|
665
878
|
export type TXR_EDDListType = EnumeratedStaticsValues<typeof EDDListType>;
|
|
666
879
|
}
|