void AddonBool::createGui(Window* window, unsigned int id, unsigned short& y, bool readonly, unsigned int status) const { Addon::createGui(window, id, y, readonly, status); ctrlCheck* check = window->GetCtrl<ctrlCheck>(id + 2); if(!check) { check = window->AddCheckBox(id + 2, 430, y, 220, 20, TC_GREY, _("Use"), NormalFont, readonly ); setGuiStatus(window, id, status); } check->SetVisible(true); check->Move(430, y); y += 30; }
void AddonBool::createGui(Window* window, unsigned id, unsigned short& y, bool readonly, unsigned status) const { Addon::createGui(window, id, y, readonly, status); DrawPoint cbPos(430, y); auto* check = window->GetCtrl<ctrlCheck>(id + 2); if(!check) { check = window->AddCheckBox(id + 2, DrawPoint(0, 0), Extent(220, 20), TC_GREY, _("Use"), NormalFont, readonly); setGuiStatus(window, id, status); } check->SetVisible(true); check->SetPos(cbPos); y += 30; }
void AddonList::createGui(Window* window, unsigned int id, unsigned short& y, bool readonly, unsigned int status) const { Addon::createGui(window, id, y, readonly, status); ctrlComboBox* combo = window->GetCtrl<ctrlComboBox>(id + 2); if(!combo) { combo = window->AddComboBox(id + 2, 450, y, 220, 20, TC_GREY, NormalFont, 100, readonly ); for(std::vector<std::string>::const_iterator it = options.begin(); it != options.end(); ++it) combo->AddString(*it); setGuiStatus(window, id, status); } combo->SetVisible(true); combo->Move(430, y); y += 30; }