diff options
author | dec05eba <dec05eba@protonmail.com> | 2018-05-04 20:50:49 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2018-05-04 20:50:52 +0200 |
commit | 640d8df5277af4ac4b545cc6d4cf2830509e61b9 (patch) | |
tree | 3fdf9d2f0c78ecc6b869b0657989dfacbb0e6d33 /src/MessageBoard.cpp | |
parent | 70d01f1f5699e265f79985b61136a62f9fa18a49 (diff) |
Add proper parsing of Text, add url
Diffstat (limited to 'src/MessageBoard.cpp')
-rw-r--r-- | src/MessageBoard.cpp | 23 |
1 files changed, 0 insertions, 23 deletions
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), |