void SectorViewLabelSet::Add(sigc::slot<void> onClick, float screenx, float screeny, const Color& col,
		const std::string& text)
	{
		static const std::string empty_string = "";
		if (CanPutItem(screenx, screeny)) {
			m_items.push_back(
				SectorViewLabelSetItem(onClick, screenx, screeny, col, text, empty_string,
				empty_string, empty_string)
				);
		}
	}
	void SectorViewLabelSet::Add(sigc::slot<void> onClick, float screenx, float screeny, const Color& col,
		const std::string& text, const std::string& tooltip_name, const std::string& tooltip_type,
		const std::string& tooltip_desc)
	{
		if (CanPutItem(screenx, screeny)) {
			m_items.push_back(
				SectorViewLabelSetItem(onClick, screenx, screeny, col, text, tooltip_name, 
					tooltip_type, tooltip_desc)
			);
		}
	}
示例#3
0
void LabelSet::Add(std::string text, sigc::slot<void> onClick, float screenx, float screeny, const Color &col)
{
    if (CanPutItem(screenx, screeny)) {
        m_items.push_back(LabelSetItem(text, onClick, screenx, screeny, col));
    }
}