void ColouredListItem::setColours() { setSelectionColours(CEGUI::colour(50,50,50)); setTextColours(CEGUI::colour(0,0,0)); try { setSelectionBrushImage("EmberLook", "MultiListSelectionBrush"); } catch (...) { S_LOG_WARNING("Could not set selection brush image."); } }
void NewGameDialog::register_scenario(const std::string& scenario, const std::string& wave_table) { scenarios_.emplace(scenario, wave_table); auto item = new CEGUI::ListboxTextItem{scenario}; item->setTextColours(Console::ORANGE_TEXT); item->setSelectionBrushImage("AlfiskoSkin/GenericBrush"); item->setSelectionColours(Console::BLUE_TEXT); scenario_list_->addItem(item); }