aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-04-23 18:49:45 +0200
committerdec05eba <dec05eba@protonmail.com>2018-04-23 18:49:52 +0200
commit7e7dfd227eacaa80b21ca8ed99e8a99ccbd47769 (patch)
tree016e3907471ae1b588c35cf963ea2551efc57cfc /src/main.cpp
parent3ab4127ae3fc3b837f5350509c78db03467500cd (diff)
Add side bar, make submodule public
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 6d718e5..67f4865 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -30,9 +30,9 @@ int main(int argc, char **argv)
Cache cache;
- Channel channel;
- //ChannelSidePanel channelSidePanel;
- //channelSidePanel.addChannel(&channel);
+ Channel channel("latenightshiendjs");
+ ChannelSidePanel channelSidePanel(300.0f);
+ channelSidePanel.addChannel(&channel);
sf::Event event;
while (window.isOpen())
@@ -50,7 +50,8 @@ int main(int argc, char **argv)
}
window.clear(sf::Color(40, 40, 40));
- channel.draw(window, cache);
+ channel.draw(window, sf::Vector2f(channelSidePanel.width, 0.0f), cache);
+ channelSidePanel.draw(window);
window.display();
}