Rev 485 | Rev 6362 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 485 | Rev 6359 | ||
---|---|---|---|
Line 2... | Line 2... | ||
2 | ;-----------panel BUTTONS--------------------- |
2 | ;-----------panel BUTTONS--------------------- |
3 | ;--------------------------------------------- |
3 | ;--------------------------------------------- |
4 | buttons: |
4 | buttons: |
Line 5... | Line 5... | ||
5 | 5 | ||
6 | cmp [Current_instrument],21 |
6 | cmp [Current_instrument],21 |
7 | jne no_finish_instrument_button |
- | |
8 | 7 | jne @f |
|
9 | cmp [instrument_used],1 |
8 | cmp [instrument_used],1 |
10 | jne no_finish_instrument_button |
- | |
11 | 9 | jne @f |
|
12 | cmp [Activate_instrument],0 |
10 | cmp [Activate_instrument],0 |
13 | jne no_finish_instrument_button |
- | |
14 | 11 | jne @f |
|
15 | cmp [crossing],1 |
12 | cmp [crossing],1 |
16 | jne no_finish_instrument_button |
- | |
17 | 13 | jne @f |
|
18 | mov [finishing_crossing],1 |
14 | mov [finishing_crossing],1 |
- | 15 | call TakeButtonInstruments |
|
Line 19... | Line -... | ||
19 | call TakeButtonInstruments |
- | |
20 | - | ||
21 | no_finish_instrument_button: |
- | |
22 | 16 | @@: |
|
Line 23... | Line 17... | ||
23 | mov eax,17 |
17 | |
Line 24... | Line 18... | ||
24 | mcall |
18 | mcall SF_GET_BUTTON |
25 | 19 | ||
26 | shr eax,8 |
- | |
27 | 20 | shr eax,8 |
|
28 | cmp eax,1 |
21 | |
29 | jne no_exit |
- | |
30 | - | ||
31 | mov eax,CursorsID |
22 | cmp eax,1 |
32 | call delete_cursors |
- | |
33 | 23 | jne no_exit |
|
Line 34... | Line -... | ||
34 | or eax,-1 |
- | |
35 | mcall |
24 | mov eax,CursorsID |
- | 25 | call delete_cursors |
|
Line 36... | Line 26... | ||
36 | 26 | mcall SF_TERMINATE_PROCESS |
|
37 | no_exit: |
27 | no_exit: |
Line 38... | Line 28... | ||
38 | 28 | ||
39 | 29 | mov [Current_instrument],eax |
|
Line 40... | Line 30... | ||
40 | mov [Current_instrument],eax |
30 | call button_handler_main_menu |
41 | 31 | ||
Line 42... | Line -... | ||
42 | ; set cursor for current instrument |
- | |
43 | pushad |
- | |
44 | 32 | ; set cursor for current instrument |
|
45 | mov eax,CursorsID |
33 | pushad |
Line 46... | Line 34... | ||
46 | mov ebx,[Current_instrument] |
34 | |
47 | 35 | mov eax,CursorsID |