blob: 6f634b2a2e13057b94ea81169776634c920773ef (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
/*
* Copyright (C) 2018 Iru Cai <mytbk920423@gmail.com>
* SPDX-License-Identifier: GPL-3.0-or-later
*/
void fcn_00419703()
{
b_46cafd = 0;
fcn_00417191(0);
}
void topbar_btn(int v)
{
int res;
fcn_00402460(0);
fcn_00419703();
dw_48bde4 = -1;
fcn_00415d31(1);
switch (v) {
case 0:
help_ui(20, 60);
break;
case 1:
options_ui(1);
break;
case 2:
hosted_ai_ui();
break;
case 3:
res = load_ui(1);
break;
case 4:
save_ui();
break;
case 5:
map_ui();
break;
case 6:
query_user_ui();
break;
case 7:
tools_ui();
break;
case 8:
cards_ui();
break;
case 9:
sales_ui();
break;
case 10:
stock_ui(0);
default:
break;
}
if (fcn_0040defe() != 1)
return;
if (v == 3) {
if (res != -1)
return;
}
fcn_004196f1();
fcn_00402460(1);
}
|