Rev 5598 | Rev 5676 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5598 | Rev 5674 | ||
---|---|---|---|
Line 75... | Line 75... | ||
75 | } |
75 | } |
Line 76... | Line 76... | ||
76 | 76 | ||
77 | :void MoreLessBox(dword x,y,s, bt_id_more, bt_id_less, colors_pointer, value, text) |
77 | :void MoreLessBox(dword x,y,s, bt_id_more, bt_id_less, colors_pointer, value, text) |
78 | { |
78 | { |
79 | #define VALUE_FIELD_W 26; |
- | |
80 | system_colors colors; |
79 | #define VALUE_FIELD_W 26; |
81 | ESI = colors_pointer; |
80 | ESI = colors_pointer; |
82 | colors.work_graph = ESI.system_colors.work_graph; |
81 | system.color.work_graph = ESI.COLORS.work_graph; |
83 | colors.work_text = ESI.system_colors.work_text; |
82 | system.color.work_text = ESI.COLORS.work_text; |
84 | colors.work_button = ESI.system_colors.work_button; |
83 | system.color.work_button = ESI.COLORS.work_button; |
Line 85... | Line 84... | ||
85 | colors.work_button_text = ESI.system_colors.work_button_text; |
84 | system.color.work_button_text = ESI.COLORS.work_button_text; |
86 | 85 | ||
87 | DrawRectangle(x, y, VALUE_FIELD_W, s, colors.work_graph); |
86 | DrawRectangle(x, y, VALUE_FIELD_W, s, system.color.work_graph); |
88 | DrawRectangle3D(x+1, y+1, VALUE_FIELD_W-2, s-2, 0xDDDddd, 0xffffff); |
87 | DrawRectangle3D(x+1, y+1, VALUE_FIELD_W-2, s-2, 0xDDDddd, 0xffffff); |
Line 89... | Line 88... | ||
89 | DrawBar(x+2, y+2, VALUE_FIELD_W-3, s-3, 0xffffff); |
88 | DrawBar(x+2, y+2, VALUE_FIELD_W-3, s-3, 0xffffff); |
90 | WriteText(x+6, s / 2 + y -3, 0x80, 0x000000, itoa(value)); |
89 | WriteText(x+6, s / 2 + y -3, 0x80, 0x000000, itoa(value)); |
91 | 90 | ||
92 | DrawCaptButton(VALUE_FIELD_W + x + 1, y, s, s, bt_id_more, colors.work_button, colors.work_button_text, "+"); |
91 | DrawCaptButton(VALUE_FIELD_W + x + 1, y, s, s, bt_id_more, system.color.work_button, system.color.work_button_text, "+"); |
Line 93... | Line 92... | ||
93 | DrawCaptButton(VALUE_FIELD_W + x + s + 2, y, s, s, bt_id_less, colors.work_button, colors.work_button_text, "-"); |
92 | DrawCaptButton(VALUE_FIELD_W + x + s + 2, y, s, s, bt_id_less, system.color.work_button, system.color.work_button_text, "-"); |
94 | WriteText(x+VALUE_FIELD_W+s+s+10, s / 2 + y -3, 0x80, colors.work_text, text); |
93 | WriteText(x+VALUE_FIELD_W+s+s+10, s / 2 + y -3, 0x80, system.color.work_text, text); |
95 | } |
94 | } |