void Button::AddText(Renderer* pRenderer, unsigned int GUIFont, unsigned int OutlineGUIFont, const std::string &label, Colour colour, int xOffset, int yOffset, bool outline, Colour outlineColour) { Label* lpNewLabel = new Label(pRenderer, GUIFont, label, colour); lpNewLabel->SetLocation(xOffset, yOffset); lpNewLabel->SetDepth(lpNewLabel->GetDepth()+2.0f); if(outline) { lpNewLabel->SetOutline(true); lpNewLabel->SetOutlineColour(outlineColour); lpNewLabel->SetOutlineFont(OutlineGUIFont); } m_vpAddedComponentList.push_back(lpNewLabel); Add(lpNewLabel); }