Rev 9597 | Rev 9632 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 9597 | Rev 9602 | ||
---|---|---|---|
Line 437... | Line 437... | ||
437 | $int 64 |
437 | $int 64 |
438 | } |
438 | } |
Line 439... | Line 439... | ||
439 | 439 | ||
440 | :void WriteTextB(dword x,y,byte fontType, dword color, str_offset) |
440 | :void WriteTextB(dword x,y,byte fontType, dword color, str_offset) |
441 | { |
- | |
442 | EAX = 4; |
- | |
443 | EBX = x<<16+y; |
441 | { |
444 | ECX = fontType<<24+color; |
- | |
445 | EDX = str_offset; |
- | |
446 | ESI = 0; |
- | |
447 | $int 0x40; |
442 | WriteText(x,y,fontType, color, str_offset); |
448 | $add ebx, 1<<16 |
443 | $add ebx, 1<<16 |
449 | $int 0x40 |
444 | $int 0x40 |
Line 450... | Line 445... | ||
450 | } |
445 | } |
Line 521... | Line 516... | ||
521 | $mov eax,15 // SF_BACKGROUND_SET 15 - work with desktop background graphics |
516 | $mov eax,15 // SF_BACKGROUND_SET 15 - work with desktop background graphics |
522 | $mov ebx,3 // SSF_REDRAW_BG=3 - redraw background |
517 | $mov ebx,3 // SSF_REDRAW_BG=3 - redraw background |
523 | $int 64 |
518 | $int 64 |
524 | } |
519 | } |
Line 525... | Line 520... | ||
525 | 520 | ||
526 | :void _PutImage(dword x,y, w,h, data_offset) |
521 | :void PutImage(dword x,y, w,h, data_offset) |
527 | { |
522 | { |
528 | EAX = 7; |
523 | EAX = 7; |
529 | EBX = data_offset; |
524 | EBX = data_offset; |
530 | ECX = w<<16+h; |
525 | ECX = w<<16+h; |
Line 582... | Line 577... | ||
582 | $int 0x40 |
577 | $int 0x40 |
583 | } |
578 | } |
Line 584... | Line 579... | ||
584 | 579 | ||
585 | :void DefineDragableWindow(dword _x, _y, _w, _h) |
580 | :void DefineDragableWindow(dword _x, _y, _w, _h) |
586 | { |
581 | { |
587 | DefineAndDrawWindow(_x, _y, _w, _h, 0x41,0x000000,NULL,0b); |
582 | DefineAndDrawWindow(_x, _y, _w, _h, 0x41,0x000000,EDI,0b); |
Line 588... | Line 583... | ||
588 | } |
583 | } |
589 | 584 | ||
590 | :void DefineUnDragableWindow(dword _x, _y, _w, _h) |
585 | :void DefineUnDragableWindow(dword _x, _y, _w, _h) |
591 | { |
586 | { |
Line 592... | Line 587... | ||
592 | DefineAndDrawWindow(_x, _y, _w, _h, 0x01, 0, 0, 0x01fffFFF); |
587 | DefineAndDrawWindow(_x, _y, _w, _h, 0x01, 0, EDI, 0x01fffFFF); |
593 | } |
588 | } |
594 | 589 | ||
Line 615... | Line 610... | ||
615 | } while (mouse.lkm); |
610 | } while (mouse.lkm); |
616 | } |
611 | } |
Line 617... | Line 612... | ||
617 | 612 | ||
618 | :void DefineHiddenButton(dword _x, _y, _w, _h, _id) |
613 | :void DefineHiddenButton(dword _x, _y, _w, _h, _id) |
619 | { |
614 | { |
620 | DefineButton(_x, _y, _w, _h, _id + BT_HIDE, 0); |
615 | DefineButton(_x, _y, _w, _h, _id + BT_HIDE, ESI); |
Line 621... | Line 616... | ||
621 | } |
616 | } |
622 | 617 | ||
623 | inline fastcall void DeleteButton( EDX) |
618 | inline fastcall void DeleteButton( EDX) |
Line 635... | Line 630... | ||
635 | } |
630 | } |
Line 636... | Line 631... | ||
636 | 631 | ||
637 | :dword X_EventRedrawWindow,Y_EventRedrawWindow; |
632 | :dword X_EventRedrawWindow,Y_EventRedrawWindow; |
638 | :void _EventRedrawWindow() |
633 | :void _EventRedrawWindow() |
639 | { |
634 | { |
640 | DefineAndDrawWindow(X_EventRedrawWindow,Y_EventRedrawWindow,1,1,0x34,0xFFFFFF,NULL,0); |
- | |
641 | //pause(10); |
635 | DefineAndDrawWindow(X_EventRedrawWindow,Y_EventRedrawWindow,1,1,0x34,0xFFFFFF,EDI,0); |
642 | ExitProcess(); |
636 | ExitProcess(); |
643 | } |
637 | } |
644 | :char REDRAW_BUFF_EVENT_[4096]; |
638 | :char REDRAW_BUFF_EVENT_[4096]; |
645 | :void EventRedrawWindow(dword x,y) |
639 | :void EventRedrawWindow(dword x,y) |