Rev 6271 | Rev 6567 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6271 | Rev 6278 | ||
---|---|---|---|
Line 105... | Line 105... | ||
105 | 105 | ||
106 | :void CheckBox(dword x,y,bt_id, text, is_checked) |
106 | :void CheckBox(dword x,y,bt_id, text, is_checked) |
107 | { |
107 | { |
108 | byte w=14, h=14; |
108 | byte w=14, h=14; |
- | 109 | DefineButton(x-1, y-1, strlen(text)*8 + w + 17, h+2, bt_id+BT_HIDE+BT_NOFRAME, 0); |
|
109 | DefineButton(x-1, y-1, strlen(text)*8 + w + 17, h+2, bt_id+BT_HIDE+BT_NOFRAME, 0); |
110 | EDI = system.color.work; |
110 | WriteText(x+w+8, h / 2 + y -7, 0x90, system.color.work_text, text); |
111 | WriteText(x+w+8, h / 2 + y -7, 0xD0, system.color.work_text, text); |
111 | DrawRectangle(x, y, w, h, system.color.work_graph); |
112 | DrawRectangle(x, y, w, h, system.color.work_graph); |
112 | if (is_checked == 0) |
113 | if (is_checked == 0) |
113 | { |
114 | { |
114 | DrawRectangle3D(x+1, y+1, w-2, h-2, 0xDDDddd, 0xffffff); |
115 | DrawRectangle3D(x+1, y+1, w-2, h-2, 0xDDDddd, 0xffffff); |
Line 134... | Line 135... | ||
134 | dword value_text = itoa(value); |
135 | dword value_text = itoa(value); |
Line 135... | Line 136... | ||
135 | 136 | ||
136 | DrawRectangle(x, y, VALUE_FIELD_W, SIZE, system.color.work_graph); |
137 | DrawRectangle(x, y, VALUE_FIELD_W, SIZE, system.color.work_graph); |
137 | DrawRectangle3D(x+1, y+1, VALUE_FIELD_W-2, SIZE-2, 0xDDDddd, 0xffffff); |
138 | DrawRectangle3D(x+1, y+1, VALUE_FIELD_W-2, SIZE-2, 0xDDDddd, 0xffffff); |
138 | DrawBar(x+2, y+2, VALUE_FIELD_W-3, SIZE-3, 0xffffff); |
139 | DrawBar(x+2, y+2, VALUE_FIELD_W-3, SIZE-3, 0xffffff); |
Line 139... | Line 140... | ||
139 | WriteText( -strlen(value_text)+3*8 + x+6, SIZE / 2 + y -6, 0x90, 0x000000, value_text); |
140 | WriteText( -strlen(value_text)+3*8 + x+6, SIZE / 2 + y -6, 0x90, system.color.work_text, value_text); |
140 | 141 | ||
- | 142 | DrawCaptButton(VALUE_FIELD_W + x, y, SIZE, SIZE, bt_id_more, system.color.work_button, system.color.work_button_text, "+"); |
|
141 | DrawCaptButton(VALUE_FIELD_W + x, y, SIZE, SIZE, bt_id_more, system.color.work_button, system.color.work_button_text, "+"); |
143 | DrawCaptButton(VALUE_FIELD_W + x + SIZE, y, SIZE, SIZE, bt_id_less, system.color.work_button, system.color.work_button_text, "-"); |
142 | DrawCaptButton(VALUE_FIELD_W + x + SIZE, y, SIZE, SIZE, bt_id_less, system.color.work_button, system.color.work_button_text, "-"); |
144 | EDI = system.color.work; |
143 | WriteText(x+VALUE_FIELD_W+SIZE+SIZE+10, SIZE / 2 + y -7, 0x90, system.color.work_text, text); |
145 | WriteText(x+VALUE_FIELD_W+SIZE+SIZE+10, SIZE / 2 + y -7, 0xD0, system.color.work_text, text); |
Line 144... | Line 146... | ||
144 | DrawRectangle3D(x-1,y-1,VALUE_FIELD_W+SIZE+SIZE+2,SIZE+2,system.color.work_dark,system.color.work_light); |
146 | DrawRectangle3D(x-1,y-1,VALUE_FIELD_W+SIZE+SIZE+2,SIZE+2,system.color.work_dark,system.color.work_light); |
145 | } |
147 | } |
146 | 148 | ||
147 | :void EditBox(dword edit_box_pointer) |
149 | :void DrawEditBox(dword edit_box_pointer) |
148 | { |
150 | { |
149 | dword x,y,w,h; |
151 | dword x,y,w,h,bg; |
150 | ESI = edit_box_pointer; |
152 | ESI = edit_box_pointer; |
- | 153 | x = ESI.edit_box.left; |
|
151 | x = ESI.edit_box.left; |
154 | y = ESI.edit_box.top; |
152 | y = ESI.edit_box.top; |
155 | w = ESI.edit_box.width+1; |
153 | w = ESI.edit_box.width+1; |
156 | if (ESI.edit_box.flags & 100000000000b) bg = 0xCACACA; else bg = 0xFFFfff; |
154 | h = 15; |
157 | h = 15; |
155 | DrawRectangle(x-1, y-1, w+2, h+2, 0xFFFfff); |
158 | DrawRectangle(x-1, y-1, w+2, h+2, bg); |
- | 159 | DrawRectangle3D(x-2, y-2, w+2, h+2, 0xDDDddd, bg); |
|
156 | DrawRectangle3D(x-2, y-2, w+2, h+2, 0xDDDddd, 0xffffff); |
160 | DrawRectangle(x-3, y-3, w+6, h+6, system.color.work_graph); |
Line 157... | Line 161... | ||
157 | DrawRectangle(x-3, y-3, w+6, h+6, system.color.work_graph); |
161 | DrawRectangle3D(x-4, y-4, w+8, h+8, system.color.work_dark, system.color.work_light); |
158 | DrawRectangle3D(x-4, y-4, w+8, h+8, system.color.work_dark, system.color.work_light); |
162 | edit_box_draw stdcall (edit_box_pointer); |
159 | } |
163 | } |