From 640d8df5277af4ac4b545cc6d4cf2830509e61b9 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Fri, 4 May 2018 20:50:49 +0200 Subject: Add proper parsing of Text, add url --- src/MessageBoard.cpp | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'src/MessageBoard.cpp') diff --git a/src/MessageBoard.cpp b/src/MessageBoard.cpp index 71b622f..250f234 100644 --- a/src/MessageBoard.cpp +++ b/src/MessageBoard.cpp @@ -33,29 +33,6 @@ namespace dchat const float USERNAME_TIMESTAMP_SIDE_PADDING = 10.0f; const double SCROLL_MAX_SPEED = 20.0; - const LineColor LINE_COLOR - { - .sideColor = ColorScheme::getBackgroundColor() + sf::Color(10, 10, 10), - .centerColor = ColorScheme::getBackgroundColor() + sf::Color(10, 10, 10) - }; - - static void drawGradientLine(const sf::Vector2f &position, const sf::Vector2f &size, const LineColor &color, sf::RenderWindow &window) - { - sf::Vertex rectangle[] = - { - sf::Vertex(position, color.sideColor), - sf::Vertex(sf::Vector2f(position.x + size.x * 0.5f, position.y), color.centerColor), - sf::Vertex(sf::Vector2f(position.x + size.x * 0.5f, position.y + size.y), color.centerColor), - sf::Vertex(sf::Vector2f(position.x, position.y + size.y), color.sideColor), - - sf::Vertex(sf::Vector2f(position.x + size.x * 0.5f, position.y), color.centerColor), - sf::Vertex(sf::Vector2f(position.x + size.x, position.y), color.sideColor), - sf::Vertex(sf::Vector2f(position.x + size.x, position.y + size.y), color.sideColor), - sf::Vertex(sf::Vector2f(position.x + size.x * 0.5f, position.y + size.y), color.centerColor) - }; - window.draw(rectangle, 8, sf::Quads); - } - MessageBoard::MessageBoard(const sf::Vector2u &size) : selectingText(false), leftMouseButtonPressed(false), -- cgit v1.2.3