Rev 6191 | Rev 6289 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6191 | Rev 6278 | ||
---|---|---|---|
Line 65... | Line 65... | ||
65 | for (i=0; i |
65 | for (i=0; i |
66 | DrawBar(x, y+i, w, h-fill_h, col_palette[14-i]); |
66 | DrawBar(x, y+i, w, h-fill_h, col_palette[14-i]); |
67 | } |
67 | } |
68 | 68 | ||
Line -... | Line 69... | ||
- | 69 | int popin_w=250; |
|
69 | void DrawEolitePopup(dword b1_text, b2_text) |
70 | void DrawEolitePopup(dword b1_text, b2_text) |
70 | { |
71 | { |
71 | int form_w=250, button_padding=30; |
72 | int button_padding=30; |
72 | int b1_len = strlen(b1_text) * 8 + button_padding; |
73 | int b1_len = strlen(b1_text) * 8 + button_padding; |
73 | int b2_len = strlen(b2_text) * 8 + button_padding; |
74 | int b2_len = strlen(b2_text) * 8 + button_padding; |
74 | int dform_x = files.w - form_w / 2 + files.x ; |
75 | int popin_x = files.w - popin_w / 2 + files.x ; |
75 | int button_margin = form_w - b1_len - b2_len / 3; |
76 | int button_margin = popin_w - b1_len - b2_len / 3; |
76 | int b1_x = dform_x + button_margin; |
77 | int b1_x = popin_x + button_margin; |
77 | int b2_x = dform_x + button_margin + b1_len + button_margin; |
78 | int b2_x = popin_x + button_margin + b1_len + button_margin; |
78 | DrawPopup(dform_x, 160, form_w, 90, 1, system.color.work, col_graph); |
79 | DrawPopup(popin_x, 160, popin_w, 90, 1, system.color.work, col_graph); |
79 | DrawFlatButton(b1_x, 210, b1_len, 24, 301, b1_text); |
80 | DrawFlatButton(b1_x, 210, b1_len, 24, POPUP_BTN1, b1_text); |
80 | DrawFlatButton(b2_x, 210, b2_len, 24, 302, b2_text); |
81 | DrawFlatButton(b2_x, 210, b2_len, 24, POPUP_BTN2, b2_text); |
81 | }=>18)>13;>13;>>=0) |
82 | }=>18)>13;>13;>>=0) |
82 | > |
83 | > |