Rev 9601 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 9601 | Rev 9602 | ||
---|---|---|---|
Line 113... | Line 113... | ||
113 | $push sc.work |
113 | $push sc.work |
114 | sc.get(); |
114 | sc.get(); |
115 | $pop eax |
115 | $pop eax |
116 | if (sc.work != EAX) { |
116 | if (sc.work != EAX) { |
117 | memmov(shared_i16w, icons16.imgsrc, size16); |
117 | memmov(shared_i16w, icons16.imgsrc, size16); |
118 | replace_2cols(shared_i16w, size16, 0xffFFFfff, sc.work, 0xffCACBD6, sc.work_dark); |
118 | replace_2cols(shared_i16w, size16, 0xffFFFfff, sc.work, 0xffCACBD6, sc.dark); |
119 | } |
119 | } |
120 | } while(WaitEvent()==evDesktop); |
120 | } while(WaitEvent()==evDesktop); |
121 | } |
121 | } |
Line 122... | Line 122... | ||
122 | 122 | ||
Line 162... | Line 162... | ||
162 | 162 | ||
163 | case evReDraw: |
163 | case evReDraw: |
164 | sc.get(); |
164 | sc.get(); |
165 | DefineAndDrawWindow(80, 50, WINW+9, WINH+4+GetSkinHeight(), 0x74, 0, "@RESHARE - A service that provides shared resorces", 0); |
165 | DefineAndDrawWindow(80, 50, WINW+9, WINH+4+GetSkinHeight(), 0x74, 0, "@RESHARE - A service that provides shared resorces", 0); |
166 | DrawBar(0, 0, WINW, RESY-PAD-1, sc.work); //top bg |
166 | DrawBar(0, 0, WINW, RESY-PAD-1, sc.work); //top bg |
167 | DrawBar(0, RESY-PAD-1, WINW, 1, sc.work_graph); |
167 | DrawBar(0, RESY-PAD-1, WINW, 1, sc.line); |
168 | WriteText(PAD, PAD, 0x90, sc.work_text, "Each tab name corresponds to memory name that can be accessed by sysfunc 68.22. Now availabe:"); |
168 | WriteText(PAD, PAD, 0x90, sc.work_text, "Each tab name corresponds to memory name that can be accessed by sysfunc 68.22. Now availabe:"); |
169 | draw_tabs(); |
169 | draw_tabs(); |
170 | } |
170 | } |
Line 171... | Line 171... | ||
171 | } |
171 | } |
172 | 172 | ||
173 | void DrawFlatButton(dword _x, _y, _text, _id, _active) |
173 | void DrawFlatButton(dword _x, _y, _text, _id, _active) |
174 | { |
174 | { |
Line 175... | Line 175... | ||
175 | if (_active) EDX = sc.button; else EDX = sc.work_light; |
175 | if (_active) EDX = sc.button; else EDX = sc.light; |
176 | DrawBar(_x, _y, BTNW, BTNH+1, EDX); |
176 | DrawBar(_x, _y, BTNW, BTNH+1, EDX); |
Line 216... | Line 216... | ||
216 | } else if (active_tab & ACTIVE_ICONS16W) { |
216 | } else if (active_tab & ACTIVE_ICONS16W) { |
217 | iconimg = memopen("ICONS18W", NULL, SHM_READ); |
217 | iconimg = memopen("ICONS18W", NULL, SHM_READ); |
218 | iconw = 18; |
218 | iconw = 18; |
219 | iconh = icons16.h; |
219 | iconh = icons16.h; |
220 | } else { |
220 | } else { |
221 | _PutImage(WINW-13/2, WINH-RESY-13/2+RESY, 13, 13, #checkbox_flag); |
221 | PutImage(WINW-13/2, WINH-RESY-13/2+RESY, 13, 13, #checkbox_flag); |
222 | return; |
222 | return; |
223 | } |
223 | } |
Line 224... | Line 224... | ||
224 | 224 | ||
225 | for (i = 0; i < iconh/iconw; i++) |
225 | for (i = 0; i < iconh/iconw; i++) |
226 | { |
226 | { |
227 | PutPaletteImage(iconw*iconw*4*i + iconimg, iconw, iconw, 50-iconw/2+x, y+RESY, 32, 0); |
227 | PutPaletteImage(iconw*iconw*4*i + iconimg, iconw, iconw, 50-iconw/2+x, y+RESY, 32, 0); |
228 | WriteText(-strlen(itoa(i))*8+50/2+x, y+RESY+iconw+5, 0x90, sc.work_graph, itoa(i)); |
228 | WriteText(-strlen(itoa(i))*8+50/2+x, y+RESY+iconw+5, 0x90, sc.line, itoa(i)); |
229 | x += 50; |
229 | x += 50; |
230 | if (x + 50 > WINW) { |
230 | if (x + 50 > WINW) { |
231 | x = PAD; |
231 | x = PAD; |
232 | y += iconw + 30; |
232 | y += iconw + 30; |