Rev 3812 | Rev 3831 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3812 | Rev 3815 | ||
---|---|---|---|
Line 1459... | Line 1459... | ||
1459 | 1459 | ||
1460 | mov edx,[open_dialog_type] |
1460 | mov edx,[open_dialog_type] |
1461 | shl edx,2 |
1461 | shl edx,2 |
1462 | add edx,message_open_dialog_button |
1462 | add edx,message_open_dialog_button |
- | 1463 | mov edx,[edx] |
|
- | 1464 | ;-------------------------------------- |
|
- | 1465 | cmp [open_dialog_type],1 |
|
- | 1466 | jne @f |
|
- | 1467 | ||
- | 1468 | cmp [focus_pointer],1 |
|
Line 1463... | Line 1469... | ||
1463 | mov edx,[edx] |
1469 | je @f |
1464 | 1470 | ||
1465 | mov eax,[file_browser_data_1.selected_BDVK_adress] |
1471 | mov eax,[file_browser_data_1.selected_BDVK_adress] |
Line 1466... | Line 1472... | ||
1466 | test [eax],byte 0x10 |
1472 | test [eax],byte 0x10 |
1467 | jz @f |
1473 | jz @f |
- | 1474 | ||
1468 | 1475 | mov edx,message_0 ; Open Dir |
|
1469 | mov edx,message_0 ; Open Dir |
1476 | @@: |
1470 | @@: |
1477 | ;-------------------------------------- |
1471 | mov [open_button_coordinates],ebx |
1478 | mov [open_button_coordinates],ebx |
Line 1485... | Line 1492... | ||
1485 | je .exit_1 |
1492 | je .exit_1 |
Line 1486... | Line 1493... | ||
1486 | 1493 | ||
1487 | cmp [open_dialog_type],1 |
1494 | cmp [open_dialog_type],1 |
Line -... | Line 1495... | ||
- | 1495 | jne .exit_1 |
|
- | 1496 | ||
- | 1497 | cmp [focus_pointer],1 |
|
1488 | jne .exit_1 |
1498 | je draw_save_button_label |
1489 | 1499 | ||
1490 | pusha |
1500 | pusha |
1491 | mov ebx,[open_button_coordinates] |
1501 | mov ebx,[open_button_coordinates] |
Line 1513... | Line 1523... | ||
1513 | .exit: |
1523 | .exit: |
1514 | popa |
1524 | popa |
1515 | .exit_1: |
1525 | .exit_1: |
1516 | ret |
1526 | ret |
1517 | ;--------------------------------------------------------------------- |
1527 | ;--------------------------------------------------------------------- |
- | 1528 | draw_save_button_label: |
|
- | 1529 | pusha |
|
- | 1530 | mov ebx,[open_button_coordinates] |
|
- | 1531 | ||
- | 1532 | mov edx,message_1 ; Save |
|
- | 1533 | ||
- | 1534 | mov ecx,[w_work_button_text] |
|
- | 1535 | or ecx,0xd0000000 |
|
- | 1536 | mov edi,[w_work_button] |
|
- | 1537 | mcall 4 ;message_open_button |
|
- | 1538 | popa |
|
- | 1539 | ret |
|
- | 1540 | ;--------------------------------------------------------------------- |
|
1518 | copy_new_file_name: |
1541 | copy_new_file_name: |
1519 | mov esi,[file_browser_data_1.selected_BDVK_adress] |
1542 | mov esi,[file_browser_data_1.selected_BDVK_adress] |
1520 | add esi,40 |
1543 | add esi,40 |
1521 | mov edi,user_selected_name |
1544 | mov edi,user_selected_name |
1522 | cld |
1545 | cld |