Rev 3434 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
3363 | leency | 1 | #define MEMSIZE 0xA1000 |
2 | #include "..\lib\kolibri.h" |
||
3 | #include "..\lib\strings.h" |
||
4 | #include "..\lib\figures.h" |
||
5 | #include "..\lib\encoding.h" |
||
6 | #include "..\lib\file_system.h" |
||
7 | #include "..\lib\mem.h" |
||
8 | #include "..\lib\dll.h" |
||
3434 | leency | 9 | #include "..\lib\copyf.h" |
3363 | leency | 10 | //*.obj libraries |
11 | #include "..\lib\lib.obj\box_lib.h" |
||
12 | #include "..\lib\lib.obj\libio_lib.h" |
||
13 | #include "..\lib\lib.obj\libimg_lib.h" |
||
14 | #include "..\lib\lib.obj\truetype.h" |
||
15 | |||
16 | |||
17 | #define LOGOW 16 |
||
18 | #define LOGOH 16 |
||
19 | #define BLACK_H 40 |
||
20 | #define TEXTX 20 |
||
21 | #define WIN_W 500 |
||
22 | #define WIN_H 350 |
||
23 | |||
24 | unsigned char logo[LOGOW*LOGOH*3]= FROM "img\logo.raw"; |
||
25 | |||
26 | proc_info Form; |
||
27 | system_colors sc; |
||
28 | char dialog; |
||
29 | enum { |
||
30 | HALLO, |
||
31 | INSTALL, |
||
32 | END |
||
33 | }; |
||
34 | |||
35 | int DefineWindow(dword wtitle, wbutton) |
||
36 | { |
||
37 | sc.get(); |
||
38 | DefineAndDrawWindow(GetScreenWidth()-WIN_W/2,GetScreenHeight()-WIN_H/2-30, WIN_W+9, WIN_H+GetSkinHeight()+4, 0x74,0xFFFfff); |
||
39 | DrawTitle("KolibriN 8.2a Setup"); |
||
40 | GetProcessInfo(#Form, SelfInfo); |
||
41 | if (Form.status_window>2) return 0; //rolled_up |
||
42 | |||
43 | DrawBar(0, 0, Form.cwidth, BLACK_H, 0); |
||
44 | _PutImage(BLACK_H-LOGOW/2, BLACK_H-LOGOH/2, LOGOW,LOGOH, #logo); |
||
45 | WriteTextB(BLACK_H-LOGOW + LOGOW, BLACK_H-6/2, 0x90, 0xFFFfff, wtitle); |
||
3412 | leency | 46 | DrawBar(0, BLACK_H, Form.cwidth, Form.cheight-BLACK_H, 0xFFFfff); |
3363 | leency | 47 | DrawCaptButton(Form.cwidth-107, Form.cheight-40, 90, 24, 10, sc.work_button, sc.work_button_text,wbutton); |
48 | return 1; |
||
49 | } |
||
50 | |||
51 | #include "tmp_add.c" |
||
52 | #include "hallo.c"; |
||
53 | #include "installation.c"; |
||
54 | |||
55 | void main() |
||
56 | { |
||
57 | mem_Init(); |
||
58 | HalloLoop(); |
||
59 | } |
||
60 | |||
61 | |||
62 | stop: |