Commit Graph

1376 Commits (ed72df1df9c26c724164b08fdba39e88caa97c52)

Author SHA1 Message Date
Bruno Van de Velde 4166b4dd42 Renamed variable 2017-02-15 20:00:20 +01:00
Bruno Van de Velde 1b3b03a849 New code did not compile in Visual Studio 2017-02-15 18:44:55 +01:00
Bruno Van de Velde 9681b7cadb Overwrite released files on Bintray 2017-02-15 18:38:22 +01:00
Bruno Van de Velde 08cd6dea9a Try reporting the line number when parsing a file fails 2017-02-15 18:33:28 +01:00
Bruno Van de Velde 5ff46d3bed Added draw tests from Picture, Button and EditBox 2017-02-13 02:01:20 +01:00
Bruno Van de Velde c372225dde Fixed appveyor script once again 2017-02-12 02:17:23 +01:00
Bruno Van de Velde 5102d17667 Fixed EditBox::selectText 2017-02-12 02:00:40 +01:00
Bruno Van de Velde 9f6c0a2641 Fixed uninitialized variable in practically unsupported case 2017-02-11 23:06:49 +01:00
Bruno Van de Velde ed94ec2092 Build binaries using SFML 2.4.2 2017-02-11 18:45:34 +01:00
Bruno Van de Velde dc379e6796 Added RendererData::create to easily create a render.
It can be useful for code like this:
tgui::ButtonRenderer renderer = tgui::RendererData::create();
renderer.setTextColor(sf::Color::Red);
button->setRenderer(renderer.getData());
2017-02-11 01:44:54 +01:00
Bruno Van de Velde d9b9ec5c66 Draw tests do not work on Travis but they do on Appveyor, so conditionally disable them 2017-02-10 02:36:46 +01:00
Bruno Van de Velde 1d908cc5fc Fixed appveyor script 2017-02-10 02:02:02 +01:00
Bruno Van de Velde 1c3094ef70 Appveyor script did not work when SFML was already in cache 2017-02-10 01:33:35 +01:00
Bruno Van de Velde e8d7448f32 Draw test was still in comments 2017-02-10 01:28:44 +01:00
Bruno Van de Velde 290d8b3835 Tests did no longer build 2017-02-10 01:22:37 +01:00
Bruno Van de Velde e1ff58a672 Fixed minor mistake in appveyor script 2017-02-10 00:42:57 +01:00
Bruno Van de Velde 192ed169c4 Trying to test drawing code of Label 2017-02-10 00:37:21 +01:00
Bruno Van de Velde cad70def6d Let tests use a font that can be used for drawing 2017-02-10 00:35:24 +01:00
Bruno Van de Velde 7e979d20eb Padding was broken in Label 2017-02-10 00:33:09 +01:00
Bruno Van de Velde 2e3cc753f0 Borders typically did not take opacity into account since recent optimization 2017-02-10 00:32:46 +01:00
Bruno Van de Velde 5e3fb427a0 Don't download SFML again when it is already cached 2017-02-08 16:20:56 +01:00
Bruno Van de Velde 56b839c08d Build and publish VS2015 packages on each commit 2017-02-08 15:56:53 +01:00
Bruno Van de Velde 3c72793e6b Updated appveyor.yml to test against 2 different SFML versions 2017-02-06 19:13:51 +01:00
Bruno Van de Velde ed79acdda6 Fixed typo in codecov.yml 2017-02-06 14:45:33 +01:00
Scellow 9826be9544 Added stdio include (#67)
Added stdio include which was needed to compile on MinGW
2017-02-03 00:55:15 +01:00
Bruno Van de Velde 3559fa530c Removed parameter of disabled function 2017-01-25 01:27:21 +01:00
Bruno Van de Velde 4d665f62f8 Added some minor test cases 2017-01-22 01:31:13 +01:00
Bruno Van de Velde 0401b31560 Picture should not store texture directly, it already contains a sprite that stores it 2017-01-22 01:30:23 +01:00
Bruno Van de Velde d629a01d58 Added Sprite::getTexture where the texture can be modified 2017-01-22 01:29:52 +01:00
Bruno Van de Velde 2e9eca5f6a Updated copyright header to 2017 2017-01-20 20:06:07 +01:00
Bruno Van de Velde ee5765deae Fixed documentation typos 2017-01-20 19:57:44 +01:00
Bruno Van de Velde 96b9e0bccc Improved performance of drawing borders 2017-01-18 22:10:09 +01:00
Bruno Van de Velde 3e3e04089e Added extra constructor to Texture to support passing std::string to Picture::create 2017-01-18 22:09:28 +01:00
Bruno Van de Velde c94944bf10 Fixed some renderer properties that were not correctly set in Tabs 2017-01-18 22:07:32 +01:00
Bruno Van de Velde 9f10fb2464 Make sure all cached renderer properties are initialized and fixed some int to float warnings in VS2015 related to them 2017-01-18 13:35:37 +01:00
Bruno Van de Velde 8c37b40d32 Fixed another line that did not compile in VS2013 2017-01-18 12:28:27 +01:00
Bruno Van de Velde f26913dfd1 Fixed a line that did not compile on VS2013 2017-01-18 01:23:30 +01:00
Bruno Van de Velde 2538870e01 Improved renderer
- Cache renderer properties to reduce overhead of constantly polling the value
- Renderer classes now have a constructor taking the RendererData, no widget is thus required anymore to adapt the RendererData
- Widgets are now also notified when a renderer property is gone (and the value gets reset to default)
2017-01-18 01:02:18 +01:00
Bruno Van de Velde 5b2a2e7eec Any::at can be const 2017-01-14 01:04:24 +01:00
Bruno Van de Velde 705014dada Menu bar with inverted menu direction didn't work when not using textures 2017-01-14 01:03:48 +01:00
Bruno Van de Velde de5849d4a9 Added setInvertedMenuDirection to MenuBar to open the menus above the bar instead of below 2016-12-23 18:22:55 +01:00
Bruno Van de Velde e2b6b9b05c Added getLinesCount to TextBox 2016-12-21 13:50:34 +01:00
Bruno Van de Velde 697a90900f Added setCaretPosition and getCaretPosition to TextBox 2016-12-20 19:59:18 +01:00
Bruno Van de Velde 72377abf40 Optimized EditBox::findCaretPosition which was causing serious FPS drops when selecting text 2016-12-16 22:59:06 +01:00
Bruno Van de Velde 6a89d0c68d Fixed tests for change in addMenuItem function 2016-12-12 19:10:49 +01:00
Bruno Van de Velde 86865e7316 Reverted the parameters of MenuBar::addMenuItem back to the way that makes more sense.
The order was switched earlier to make use of a default parameter so that you only required to provide 1 instead of 2 parameters.
This case is now dealt with by simply having 2 functions.
2016-12-12 18:41:25 +01:00
Bruno Van de Velde 38bf1273b9 Map touch events to the view of the gui 2016-12-09 23:15:31 +01:00
Bruno Van de Velde c29ffd9748 Also generate documentation for renderers 2016-12-08 12:38:03 +01:00
Bruno Van de Velde cabce9164f The position of the view of the gui is no longer stored in GuiContainer
This change was made because ComboBox would open its list at the wrong location when the center of the view was not the center of the window.
2016-11-22 16:46:37 +01:00
Bruno Van de Velde ea73a760d8 Menus in MenuBar didn't stay open when inside a Panel 2016-11-08 07:22:40 +01:00