| 6 | namespace GUI |
| 7 | { |
| 8 | Text_Box::Text_Box( unsigned maxTextLength, |
| 9 | const sf::Vector2f& size, |
| 10 | const std::string& labelText, |
| 11 | std::string& inputString) |
| 12 | : m_inputtedText (&inputString) |
| 13 | , m_maxLength (maxTextLength) |
| 14 | { |
| 15 | m_quad.setSize(size); |
| 16 | m_quad.setTexture(&Component::guiTexture); |
| 17 | m_quad.setOutlineColor(sf::Color::Black); |
| 18 | m_quad.setOutlineThickness(2); |
| 19 | |
| 20 | initText(m_text, 30, ""); |
| 21 | initText(m_label, 10, labelText); |
| 22 | } |
| 23 | |
| 24 | void Text_Box::input(const sf::Event& e) |
| 25 | { |
nothing calls this directly
no outgoing calls
no test coverage detected