forked from clouddan4/amiga2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathUPAINT.PAS
107 lines (97 loc) · 2.46 KB
/
UPAINT.PAS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
unit upaint;
{$F+}
{$O+}
Interface
uses crt,DOS,agraph2,framelib,upicop,uemsop,
fmmouse,pglobal,submenu,loupe,paledit,screenop,usr1,usr2;
procedure paintsystem;
Implementation
{$v-}
{$i sysbrush.inc }
procedure mainmenu;
var
dch1,dch2 : string[4];
item : integer;
atwork : boolean;
themenu: menutype;
begin
with themenu do
begin
menustr1 :='描画| | |拡大|特筆|実験| | |Anim|';
menustr2 :='|画面|色 |設定|Help|終了';
orgcol := 1;
itemcols := 5;
lastitem := 15
end;
(* item := pointnothing; *)
item := 0;
repeat
atwork := true;
themenu.menustr2 := '|画面|色 |設定|Help|終了';
str(currentframe:3,dch1);
str(animframe:3,dch2);
themenu.menustr2 := dch1+' /'+dch2+' '+themenu.menustr2;
cursoroff;
if getitem( themenu , item ) then
case item of
0: with systemparam do
systembrush(currentbrush,
currentcolor,currentbgcolor,currentmaskcolor);
11: screenmenu;
12: paletteeditor;
9: begin
putsystempalette;
hidemouse;
window(41,1,80,24);
cursoron;
picop;
clrscr;
window(1,1,80,24);
cursoroff;
getsystempalette
end;
10: begin;
putsystempalette;
hidemouse;
window(41,1,80,24);
cursoron;
emsop;
clrscr;
window(1,1,80,24);
cursoroff;
screenad(0,0);
emstoscrn(currentframe+0*animofset);
if autoanimscreen1 = true then
emstoscrn1(currentframe+1*animofset);
fixscreen;
getsystempalette
end;
3: loupedot;
4: with systemparam do
userproc1(currentbrush,currentcolor);
5: with systemparam do
userproc2(currentbrush,currentcolor);
6: ;
7: ;
8: animset;
13: systemset;
14: help('SYSTEM');
15: if askok('終了していいですか') then
atwork := false;
end
else
waitrbutton;
until not atwork;
end;
procedure paintsystem;
begin
window(1,1,80,24);
setupsystem;
setupbrushbox;
setuptonebox;
mainmenu;
closesystem;
cursoron;
window(41,1,80,24);
end;
end.