Rev 6887 | Rev 7031 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6887 | Rev 6931 | ||
---|---|---|---|
Line 147... | Line 147... | ||
147 | { |
147 | { |
148 | #define VALUE_FIELD_W 34 |
148 | #define VALUE_FIELD_W 34 |
149 | #define SIZE 18 |
149 | #define SIZE 18 |
150 | dword value_text = itoa(value); |
150 | dword value_text = itoa(value); |
Line 151... | Line 151... | ||
151 | 151 | ||
152 | DrawRectangle(x, y, VALUE_FIELD_W, SIZE, system.color.work_graph); |
152 | DrawRectangle(x, y, VALUE_FIELD_W+1, SIZE, system.color.work_graph); |
153 | DrawRectangle3D(x+1, y+1, VALUE_FIELD_W-2, SIZE-2, 0xDDDddd, 0xffffff); |
153 | DrawRectangle3D(x+1, y+1, VALUE_FIELD_W-2, SIZE-2, 0xDDDddd, 0xffffff); |
154 | DrawBar(x+2, y+2, VALUE_FIELD_W-3, SIZE-3, 0xffffff); |
154 | DrawBar(x+2, y+2, VALUE_FIELD_W-3, SIZE-3, 0xffffff); |
Line 155... | Line 155... | ||
155 | WriteText( -strlen(value_text)+3*8 + x+6, SIZE / 2 + y -6, 0x90, 0x333333, value_text); |
155 | WriteText( -strlen(value_text)+3*8 + x+6, SIZE / 2 + y -6, 0x90, 0x333333, value_text); |
156 | 156 | ||
157 | DrawCaptButton(VALUE_FIELD_W + x, y, SIZE, SIZE, bt_id_more, system.color.work_button, system.color.work_button_text, "+"); |
157 | DrawCaptButton(VALUE_FIELD_W + x + 1, y, SIZE, SIZE, bt_id_more, system.color.work_button, system.color.work_button_text, "+"); |
158 | DrawCaptButton(VALUE_FIELD_W + x + SIZE, y, SIZE, SIZE, bt_id_less, system.color.work_button, system.color.work_button_text, "-"); |
158 | DrawCaptButton(VALUE_FIELD_W + x + SIZE, y, SIZE, SIZE, bt_id_less, system.color.work_button, system.color.work_button_text, "-"); |
159 | EDI = system.color.work; |
159 | EDI = system.color.work; |
160 | WriteText(x+VALUE_FIELD_W+SIZE+SIZE+10, SIZE / 2 + y -7, 0xD0, system.color.work_text, text); |
160 | WriteText(x+VALUE_FIELD_W+SIZE+SIZE+10, SIZE / 2 + y -7, 0xD0, system.color.work_text, text); |