| 62 | UIGroup::~UIGroup() {} |
| 63 | |
| 64 | void UIGroup::Create(UIWindow *parent, char *label, int x, int y, int w, int h, ddgr_color label_color, |
| 65 | ddgr_color box_color, int flags) { |
| 66 | ASSERT(parent); |
| 67 | ASSERT(label); |
| 68 | |
| 69 | m_LabelColor = label_color; |
| 70 | m_BoxColor = box_color; |
| 71 | |
| 72 | UIStatic::Create(parent, NULL, x, y, w, h, flags); |
| 73 | |
| 74 | int length = strlen(label); |
| 75 | if (length) { |
| 76 | m_Label = (char *)mem_malloc(length + 1); |
| 77 | strcpy(m_Label, label); |
| 78 | } |
| 79 | } |
| 80 | |
| 81 | void UIGroup::OnDraw() { |
| 82 | ui_DrawSetAlpha(255); |