Rev 6364 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6364 | Rev 6365 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | ;--------------------------------------------------------- |
1 | ;--------------------------------------------------------- |
2 | ;-----draw panel menu(main engin of panel)---------------- |
- | |
3 | ;--------------------------------------------------------- |
- | |
4 | print_panel_menu: |
- | |
5 | ;delit main buttons(some time) |
- | |
6 | mov [counter],10 |
- | |
7 | - | ||
8 | next_icon_delit1: |
- | |
9 | mov edx,[counter] |
- | |
10 | add edx,11100000000000000000000000000000b |
- | |
11 | mcall SF_DEFINE_BUTTON |
- | |
12 | inc [counter] |
- | |
13 | cmp [counter],30 |
- | |
14 | jl next_icon_delit1 |
- | |
15 | - | ||
16 | ;delit buttons of brushes |
- | |
17 | mov [counter],40 |
- | |
18 | - | ||
19 | next_icon_delit2: |
- | |
20 | mov edx,[counter] |
- | |
21 | add edx,11100000000000000000000000000000b |
- | |
22 | mcall SF_DEFINE_BUTTON |
- | |
23 | inc [counter] |
- | |
24 | cmp [counter],45 |
- | |
25 | jl next_icon_delit2 |
- | |
26 | - | ||
27 | ;delit buttons of zoom |
- | |
28 | mov [counter],45 |
- | |
29 | - | ||
30 | next_icon_delit3: |
- | |
31 | mov edx,[counter] |
- | |
32 | add edx,11100000000000000000000000000000b |
- | |
33 | mcall SF_DEFINE_BUTTON |
- | |
34 | inc [counter] |
- | |
35 | cmp [counter],50 |
- | |
36 | jl next_icon_delit3 |
- | |
37 | - | ||
38 | ;delit buttons of palette |
- | |
39 | mov edx,51 |
- | |
40 | add edx,11100000000000000000000000000000b |
- | |
41 | mcall SF_DEFINE_BUTTON |
- | |
42 | - | ||
43 | ;delit buttons of color |
- | |
44 | mov edx,52 |
- | |
45 | add edx,11100000000000000000000000000000b |
- | |
46 | mcall SF_DEFINE_BUTTON |
- | |
47 | - | ||
48 | call GetMouseCoordinats |
- | |
49 | - | ||
50 | and [menu_counter],0 |
- | |
51 | and [counter_11],0 |
- | |
52 | - | ||
53 | mcall SF_SLEEP,15 |
- | |
54 | - | ||
55 | pusha |
- | |
56 | call drawwin |
- | |
57 | popa |
- | |
58 | - | ||
59 | mov [number_panel],0 |
- | |
60 | - | ||
61 | jmp TakeInstruments |
- | |
62 | - | ||
63 | ;--------------------------------------------------------- |
- | |
64 | ;------print mouse position on panel---------------------- |
2 | ;------print mouse position on panel---------------------- |
65 | ;--------------------------------------------------------- |
3 | ;--------------------------------------------------------- |
66 | PrintMousePos: |
4 | PrintMousePos: |
67 | pushad |
5 | pushad |
68 | mov eax,[Window_SizeX] |
6 | mov eax,[Window_SizeX] |