Rev 5651 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5651 | Rev 5674 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | #ifndef AUTOBUILD |
1 | #ifndef AUTOBUILD |
2 | #include "lang.h--" |
2 | #include "lang.h--" |
3 | #endif |
3 | #endif |
Line 4... | Line 4... | ||
4 | 4 | ||
5 | #define MEMSIZE 397113 |
- | |
6 | #include "..\lib\kolibri.h" |
5 | #define MEMSIZE 397113 |
7 | #include "..\lib\strings.h" |
6 | #include "..\lib\strings.h" |
8 | #include "..\lib\mem.h" |
7 | #include "..\lib\mem.h" |
9 | #include "..\lib\file_system.h" |
- | |
10 | #include "..\lib\dll.h" |
8 | #include "..\lib\file_system.h" |
11 | #include "..\lib\gui.h" |
9 | #include "..\lib\gui.h" |
12 | #include "..\lib\obj\truetype.h" |
10 | #include "..\lib\obj\truetype.h" |
Line 13... | Line 11... | ||
13 | #include "..\lib\obj\proc_lib.h" |
11 | #include "..\lib\obj\proc_lib.h" |
Line 18... | Line 16... | ||
18 | 16 | ||
19 | dword font_data; |
17 | dword font_data; |
20 | stbtt_fontinfo font_info; |
18 | stbtt_fontinfo font_info; |
Line 21... | Line -... | ||
21 | dword font_mem; |
- | |
22 | 19 | dword font_mem; |
|
23 | system_colors sc; |
20 | |
24 | proc_info Form; |
21 | proc_info Form; |
Line 25... | Line 22... | ||
25 | char test_text[] = "The quick brown fox jumps over the lazy dog"; |
22 | char test_text[] = "The quick brown fox jumps over the lazy dog"; |
Line 69... | Line 66... | ||
69 | } |
66 | } |
Line 70... | Line 67... | ||
70 | 67 | ||
71 | 68 | ||
72 | void draw_window() |
69 | void draw_window() |
73 | { |
70 | { |
74 | sc.get(); |
71 | system.color.get(); |
75 | DefineAndDrawWindow(30, 100, 800, 250+GetSkinHeight(), 0x34, 0xFFFfff, #win_title); |
72 | DefineAndDrawWindow(30, 100, 800, 250+GetSkinHeight(), 0x34, 0xFFFfff, #win_title); |
76 | GetProcessInfo(#Form, SelfInfo); |
73 | GetProcessInfo(#Form, SelfInfo); |
Line 81... | Line 78... | ||
81 | word DrawFonts() |
78 | word DrawFonts() |
82 | { |
79 | { |
83 | if (!font_data) |
80 | if (!font_data) |
84 | { |
81 | { |
85 | WriteTextCenter(0,85,Form.cwidth,0x555555, T_INTRO); |
82 | WriteTextCenter(0,85,Form.cwidth,0x555555, T_INTRO); |
86 | DrawCaptButton(Form.cwidth - 140 / 2, Form.cheight - 30 / 2, 140, 30, 10, sc.work_button, sc.work_button_text, T_INTRO_BUTTON_TEXT); |
83 | DrawCaptButton(Form.cwidth - 140 / 2, Form.cheight - 30 / 2, 140, 30, 10, system.color.work_button, system.color.work_button_text, T_INTRO_BUTTON_TEXT); |
87 | return; |
84 | return; |
88 | } |
85 | } |
89 | text_out stdcall (#test_text, #font_info, 10, 0x000000, 0xFFFfff, 3, 4); |
86 | text_out stdcall (#test_text, #font_info, 10, 0x000000, 0xFFFfff, 3, 4); |
90 | text_out stdcall (#test_text, #font_info, 12, 0x000000, 0xFFFfff, 3, 18); |
87 | text_out stdcall (#test_text, #font_info, 12, 0x000000, 0xFFFfff, 3, 18); |
91 | text_out stdcall (#test_text, #font_info, 24, 0x000000, 0xFFFfff, 3, 35); |
88 | text_out stdcall (#test_text, #font_info, 24, 0x000000, 0xFFFfff, 3, 35); |