Rev 7260 | Rev 7264 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 7260 | Rev 7262 | ||
---|---|---|---|
Line 14... | Line 14... | ||
14 | #define MEMSIZE 4096*250 |
14 | #define MEMSIZE 4096*250 |
Line 15... | Line 15... | ||
15 | 15 | ||
16 | #include "../lib/gui.h" |
16 | #include "../lib/gui.h" |
17 | #include "../lib/random.h" |
17 | #include "../lib/random.h" |
- | 18 | #include "../lib/mem.h" |
|
Line 18... | Line 19... | ||
18 | #include "../lib/mem.h" |
19 | #include "../lib/cursor.h" |
19 | 20 | ||
Line 20... | Line 21... | ||
20 | #include "../lib/obj/libimg.h" |
21 | #include "../lib/obj/libimg.h" |
Line 29... | Line 30... | ||
29 | // // |
30 | // // |
30 | // DATA // |
31 | // DATA // |
31 | // // |
32 | // // |
32 | //===================================================// |
33 | //===================================================// |
Line 33... | Line 34... | ||
33 | 34 | ||
Line 34... | Line 35... | ||
34 | #define T_TITLE "Icon Editor 0.50 Alpha" |
35 | #define T_TITLE "Icon Editor 0.51 Alpha" |
35 | 36 | ||
36 | #define TOOLBAR_H 24+8 |
37 | #define TOOLBAR_H 24+8 |
37 | #define PANEL_LEFT_W 16+5+5+3+3 |
38 | #define PANEL_LEFT_W 16+5+5+3+3 |
Line 112... | Line 113... | ||
112 | 0xFFFFFF,0xFFFFFF,0xFFFFFF,0xFFFFFF,0xFFFFFF,0xFFFFFF,0xFFFFFF,0xFFFFFF,0xFFFFFF,0xFFFFFF, |
113 | 0xFFFFFF,0xFFFFFF,0xFFFFFF,0xFFFFFF,0xFFFFFF,0xFFFFFF,0xFFFFFF,0xFFFFFF,0xFFFFFF,0xFFFFFF, |
113 | 0xFFFFFF,0xFFFFFF,0xFFFFFF,0xFFFFFF,0xFFFFFF,0xFFFFFF,0xFFFFFF,0xFFFFFF,0xFFFFFF,0xFFFFFF, |
114 | 0xFFFFFF,0xFFFFFF,0xFFFFFF,0xFFFFFF,0xFFFFFF,0xFFFFFF,0xFFFFFF,0xFFFFFF,0xFFFFFF,0xFFFFFF, |
114 | 0xFFFFFF,0xFFFFFF,0xFFFFFF,0xFFFFFF,0xFFFFFF,0xFFFFFF |
115 | 0xFFFFFF,0xFFFFFF,0xFFFFFF,0xFFFFFF,0xFFFFFF,0xFFFFFF |
115 | }; |
116 | }; |
Line -... | Line 117... | ||
- | 117 | ||
- | 118 | CustomCursor Cursor; |
|
- | 119 | dword CursorBar = FROM "cursors/bar.cur"; |
|
- | 120 | dword CursorFill = FROM "cursors/fill.cur"; |
|
- | 121 | dword CursorLine = FROM "cursors/line.cur"; |
|
- | 122 | dword CursorPencil = FROM "cursors/pencil.cur"; |
|
- | 123 | dword CursorPipette = FROM "cursors/pipette.cur"; |
|
- | 124 | dword CursorRectangle = FROM "cursors/rectangle.cur"; |
|
- | 125 | dword CursorSelect = FROM "cursors/select.cur"; |
|
116 | 126 | ||
Line 117... | Line 127... | ||
117 | _image image; |
127 | _image image; |
Line 118... | Line 128... | ||
118 | 128 | ||
Line 198... | Line 208... | ||
198 | if (mouse.vert==65535) zoom.inc(); |
208 | if (mouse.vert==65535) zoom.inc(); |
199 | if (mouse.vert==1) zoom.dec(); |
209 | if (mouse.vert==1) zoom.dec(); |
200 | DrawEditArea(); |
210 | DrawEditArea(); |
201 | } |
211 | } |
Line -... | Line 212... | ||
- | 212 | ||
- | 213 | if (wrapper.hovered()) SetCursor(); |
|
- | 214 | else Cursor.Restore(); |
|
202 | 215 | ||
203 | if (mouse.down) { |
216 | if (mouse.down) { |
204 | if (b_color_gradient.hovered()) |
217 | if (b_color_gradient.hovered()) |
205 | || (b_last_colors.hovered()) |
218 | || (b_last_colors.hovered()) |
206 | || (b_default_palette.hovered()) { |
219 | || (b_default_palette.hovered()) { |