Commit Graph

1305 Commits (0f13ba5b1f2ebd3fb013e03bade16ca305b8506b)

Author SHA1 Message Date
Bruno Van de Velde 0f13ba5b1f Added draw tests for CheckBox and RadioButton + added some other tests 2017-07-28 23:03:58 +02:00
Bruno Van de Velde 0a08bb6c3f Made space between widgets in BoxLayoutRenderer a float instead of a Layout since a relative ratio wasn't supported anyway 2017-07-28 23:01:39 +02:00
Bruno Van de Velde 704fcb2c80 Fixed position of checkbox texture when borders were set 2017-07-28 18:58:28 +02:00
Bruno Van de Velde 0c69ca9edd Fixed conversion warnings with visual studio 2017-07-26 01:31:53 +02:00
Bruno Van de Velde d89648d4c1 Grid, HorizontalLayout, HorizontalWrap and VerticalLayout can now be saved to and loaded from a file 2017-07-25 18:54:59 +02:00
Bruno Van de Velde 0742cd0231 Added method to Grid to figure out which cells contain widgets 2017-07-25 15:29:51 +02:00
Bruno Van de Velde 3448947c73 Copy function of layout widgets was not static 2017-07-25 15:28:26 +02:00
Bruno Van de Velde 23832f78e9 Changed auto-sizing in Grid 2017-07-24 20:03:53 +02:00
Bruno Van de Velde 099c972bf4 Added move constructors and move assignment operators where there were only copy functions 2017-07-24 19:57:26 +02:00
Bruno Van de Velde 19c11ce25d Initialized member of Clipping to prevent valgrind warnings 2017-07-24 19:53:08 +02:00
Bruno Van de Velde 9347d17232 Changed errorlevel check in AppVeyor script 2017-07-22 00:19:42 +02:00
Bruno Van de Velde 0a54bca136 Tabs can now have a minimum tab width when they are auto-sizing based on the text (closes #42) 2017-07-21 23:55:59 +02:00
Bruno Van de Velde 83e1869c3d Colors in Tab can now be different during hover state 2017-07-21 22:57:11 +02:00
Bruno Van de Velde 51e2826138 Implemented Tab::setSize to give the tabs an equal width and fill the provided size 2017-07-21 18:56:34 +02:00
Bruno Van de Velde d0e64fdfb9 Changed the default codecov branch 2017-07-14 10:47:45 +02:00
Bruno Van de Velde be0b4266e8 Added tests for recent changes to the callback system 2017-07-11 15:26:53 +02:00
Bruno Van de Velde f289457420 Added a disconnectAll function 2017-07-11 14:33:40 +02:00
Bruno Van de Velde 1be14aef69 Fixed issue with new callback system when connecting member function 2017-07-11 14:32:17 +02:00
Bruno Van de Velde 8d9e05cef5 Test with SFML 2.3 on macOS to make certain the version remains supported 2017-07-10 23:51:10 +02:00
Bruno Van de Velde 7f715e9173 Use SFML 2.4 on AppVeyor since 2.3 did not support VS2015 yet 2017-07-10 23:50:25 +02:00
Bruno Van de Velde 9cf0360776 Updated signal system to still allow custom arguments to be passed in 2017-07-10 22:56:27 +02:00
Bruno Van de Velde bc63b03acd Dropped VS2013 support 2017-07-10 16:25:13 +02:00
Bruno Van de Velde b9a52c79f9 Keep VS2013 supported in new callback system 2017-07-10 13:53:59 +02:00
Bruno Van de Velde b101814673 Example code no longer worked with new callback system 2017-07-10 13:53:50 +02:00
Bruno Van de Velde a038cfddbd The fonts folder can't be installed as it no longer exists 2017-07-10 13:52:25 +02:00
Bruno Van de Velde b337773de2 Rewrote callback system 2017-07-10 13:29:36 +02:00
Bruno Van de Velde 1b351279f8 HorizontalLayout and VerticalLayout did not set m_type 2017-07-05 16:39:28 +02:00
Bruno Van de Velde c19a8145f7 Moved iostream includes 2017-07-05 16:38:39 +02:00
Bruno Van de Velde 0723d3fc82 Added tests for HorizontalWrap 2017-07-05 16:37:57 +02:00
Bruno Van de Velde c3a07f92be Rewrote HorizontalWrap class to work in tgui 0.8 2017-07-05 16:37:09 +02:00
Steven Pilkington 4cc813c5ef Added HorizontalWrap, a new widget container that lets widgets flow onto additional lines 2017-07-05 15:17:00 +02:00
Bruno Van de Velde c5bf34bf9b Updated tests for different behavior of mouse events 2017-07-05 15:12:24 +02:00
Bruno Van de Velde 85e5d99267 Fixed menu bar bug introduced by last commit 2017-07-05 15:12:04 +02:00
Bruno Van de Velde 55b2688531 Mouse events now have the position of the widget subtracted inside the event handler again instead of requiring the caller to do this 2017-07-05 14:17:43 +02:00
Bruno Van de Velde fe51f08091 Added documentation for mouseOnWidget which was previously marked as internal 2017-07-05 00:52:31 +02:00
Bruno Van de Velde 158018e703 Renamed setWindow to setTarget in Gui 2017-07-05 00:43:32 +02:00
Bruno Van de Velde 623a680ae2 Don't create render texture in Canvas when size is (0,0) 2017-07-05 00:21:08 +02:00
Bruno Van de Velde da9de955bf More 'const' 2017-07-05 00:20:43 +02:00
Bruno Van de Velde 2a1c473982 BoxLayout now uses new layouts 2017-07-05 00:20:04 +02:00
Bruno Van de Velde ec1591c29c Outline can now be relative to the widget size 2017-07-02 17:29:44 +02:00
Bruno Van de Velde d04407b8b8 Use const for variables that are only assigned once 2017-06-30 01:46:43 +02:00
Bruno Van de Velde 3ded1ceca2 Removed the line that was hanging the build 2017-06-29 22:32:39 +02:00
Bruno Van de Velde 29f6df6bbd Make use of the system clipboard on all OSes when using SFML >= 2.5
With older SFML versions, the system clipboard will only be accessed on Windows
2017-06-29 18:40:43 +02:00
Bruno Van de Velde c9f2e74f08 Make DejaVuSans the built-in font, to support many special characters without needing an external font 2017-06-29 18:35:54 +02:00
Bruno Van de Velde a7c3bcf0ae Added a few minor tests 2017-06-29 18:05:02 +02:00
Bruno Van de Velde f68dd6af12 Turned all IO-related shared pointers to unique pointers 2017-06-29 16:54:11 +02:00
Bruno Van de Velde d30dbac677 Fixed incorrectly cached border color in ChildWindow 2017-06-29 14:32:00 +02:00
Bruno Van de Velde c6db649c67 Update the example code to use the new layout system 2017-06-29 14:31:29 +02:00
Bruno Van de Velde 3525aa941d When parent size changed, widgets only updated their internal position and size and still looked unchanged with the new layout system 2017-06-29 14:16:44 +02:00
Bruno Van de Velde 5439c588a9 Changing the view of the Gui did not update the size of the widgets with the new layout system 2017-06-29 14:14:50 +02:00