Commit Graph

134 Commits (4f236fd8f21693a4afae8a2c5bab113b20a20006)

Author SHA1 Message Date
Bruno Van de Velde 158a647561 Tab can now have different textures on hover 2018-05-21 17:10:12 +02:00
Bruno Van de Velde aba2c4c96e Added event and draw tests for ComboBox 2018-05-21 15:52:25 +02:00
Bruno Van de Velde a66702c924 Added widget and event tests for Tabs 2018-05-20 16:23:55 +02:00
Bruno Van de Velde 307e85bc71 Added event tests for Slider 2018-05-20 16:23:28 +02:00
Bruno Van de Velde 4c890a8144 Removed whitespace in ListBox tests 2018-05-20 16:23:13 +02:00
Bruno Van de Velde c285c69ce6 Added event and draw tests for ListBox 2018-05-14 22:59:06 +02:00
Bruno Van de Velde 3f4f1f657b Added ScrollbarWidth property to renderers with Scrollbar property 2018-05-14 22:56:09 +02:00
Bruno Van de Velde 280484f044 Renamed borders in Grid to padding 2018-05-14 22:55:23 +02:00
Bruno Van de Velde b27f155828 Added extra tests for HorizontalLayout and VerticalLayout 2018-05-12 17:03:52 +02:00
Bruno Van de Velde 7d62f24dfa Added draw tests for BitmapButton 2018-05-12 17:01:23 +02:00
Bruno Van de Velde e8361ef45f Dropped support for function references with unbound parameters in signal system 2018-05-11 14:24:12 +02:00
Bruno Van de Velde 5b820718b1 Added TransparentTexture property to WidgetRenderer to let mouse events pass through invisible parts of textures (replaces IgnoreTransparentParts which only existed in Picture) 2018-05-10 15:01:31 +02:00
Bruno Van de Velde bc251ddcca Renamed LowValue to ViewportSize in ScrollBar 2018-05-06 15:51:45 +02:00
Bruno Van de Velde 06665e6d8d Added MinimumResizableBorderWidth to ChildWindow renderer to allow having an invisible area next to the borders to make resizing easier on child windows with small borders 2018-04-30 14:58:42 +02:00
Bruno Van de Velde 5368fc0a4e Added BorderBelowTitleBar propery to ChildWindow 2018-04-26 19:51:31 +02:00
Bruno Van de Velde 5ba7c5c21d Renamed SpaceBetweenArrows to BorderBetweenArrows in SpinButton to better reflect that the space is filled with the border color 2018-04-26 19:50:33 +02:00
Bruno Van de Velde dd8d447ad2 Place borders of ChildWindow around the entire window including its title bar 2018-04-25 20:27:15 +02:00
Bruno Van de Velde 8142739108 Don't allow ChildWindow to be dragged outside the window 2018-04-08 22:46:54 +02:00
Bruno Van de Velde f7b657a2a5 TextBox tests did not work with SFML 2.5 2018-04-08 22:46:36 +02:00
Bruno Van de Velde 7d0c56f72f Added setTabVisible and setTabEnabled functions to Tabs widget 2018-04-07 10:57:35 +02:00
Bruno Van de Velde 2772dce8c6 Replaced hide/show, enable/disable, focus/unfocus and check/uncheck with setVisible, setEnabled, setFocused and setChecked 2018-03-30 19:55:26 +02:00
Bruno Van de Velde 11c5ee05ae Updated copyright to 2018 2018-03-22 19:57:45 +01:00
Bruno Van de Velde 7461aff68e Rewrote code for focusing widgets 2018-03-22 19:45:25 +01:00
Bruno Van de Velde 75c578f4a3 Added method to slider to revert values (e.g. top being minimum value instead of maximum) 2018-03-21 19:38:12 +01:00
Bruno Van de Velde 2dca551e07 Use a single text size for all lines in ChatBox 2018-01-14 14:16:15 +01:00
Bruno Van de Velde f9d44cc34c Added 'Step' property to RangeSlider and SpinButton and use float instead of int for the value 2018-01-13 17:29:12 +01:00
Bruno Van de Velde aa84a3447e Renamed 'Frequency' property in Slider to 'Step' 2018-01-13 17:27:03 +01:00
Bruno Van de Velde 54f0245ad5 Replaced auto-sized texts with a fixed text size by default + other related changes
- A global text size was added which widgets will use by default. The size can be changed with tgui::setGlobalTextSize(). The default text size is 13 pixels.
- A global font was added. Widgets now have a font upon construction instead of only receiving it once they are added to their parent. Operations that require a font (e.g. getting the size of an auto-sized label) can now be done before the widget is added to the parent. The font can be changed with tgui::setGlobalFont().
- A small padding was added to the side of texts. The text will no longer be touching the borders of the widget.
- Reduced size of check in colored CheckBox and RadioButton
- The white theme has been updated to look slightly better.
- Default sizes of widgets with text now depend on the global text size.
- The size of a button now changes with the text it contains until setSize is called.
- ChildWindow title buttons can show some unicode characters instead of being empty squares.
- Text size of title in ChildWindow can now be independently set from the title bar height.
- Scrollbars are now only inside borders and no longer inside padding as well.
- ChatBox no longer has a separate font per line.
2017-12-24 11:34:46 +01:00
Bruno Van de Velde 3dd94747ab Added BitmapButton widget which is a buttonwith both glyph and text 2017-12-01 22:51:22 +01:00
Bruno Van de Velde a98a79ffc8 Slider now uses floats and has a setFrequency function to change its steps 2017-11-06 19:33:20 +01:00
Bruno Van de Velde a76acc67de Added methods to ListBox and ComboBox to check if it contains a certain item 2017-11-05 22:09:37 +01:00
Bruno Van de Velde 6c3bf91137 Perform a Unity build (combining all source files into large file) by default 2017-11-01 13:19:47 +01:00
Bruno Van de Velde 04c2922c72 🆕 Added scrollable policy to ScrollablePanel to be able to always show or hide the scrollbars 2017-10-22 22:34:37 +02:00
Bruno Van de Velde f93a3d4bf0 🆕 Width of scrollbars in ScrollablePanel can now be changed 2017-10-21 11:18:31 +02:00
Bruno Van de Velde d130c58bb8 🪲 Grid did not set its size when auto-sizing 2017-10-18 20:06:56 +02:00
Bruno Van de Velde 1e3c9989a0 Moved loading code from WidgetLoader into the Widget itself and added a WidgetFactory class which creates the widget on which the load function is called 2017-10-13 22:52:38 +02:00
Bruno Van de Velde 44a1cc33a3 Moved saving code from WidgetSaver class to the widget itself, which allows the internal state to be saved.
For example, a button previously saved the TextSize which was visible on the screen. If TextSize was 0 internally, it would no longer be 0 after saving and loading it.
The button would still look the same, but when scaling it the text would remain at a fixed size. The auto-sizing text can now be properly saved.

Several small bug fixes got included in this commit, including one breaking change. The getMenus from MenuBar now returns a vector of pairs instead of a map. This was
done to preserve the order of the menus.
2017-10-11 19:59:43 +02:00
Bruno Van de Velde c101b49cd5 🪲 The caret of a TextBox should not move when adding a newline at the start of a line that only exists due to word-wrap 2017-10-07 15:56:40 +02:00
Bruno Van de Velde 495626ca38 Added KeyPressed and TextEntered tests for TextBox 2017-10-07 11:53:54 +02:00
Bruno Van de Velde a6ca360704 Added draw tests for ChildWindow and Knob + test drawing MenuBar with textures + test drawing TextBox with selected text 2017-10-04 20:02:35 +02:00
Bruno Van de Velde 309cd144d6 Added draw tests for MenuBar, RangeSlider, Tabs and TextBox 2017-10-02 19:57:40 +02:00
Bruno Van de Velde 75dbf6dede Test scrollbar property of ScrollablePanelRenderer 2017-09-30 19:26:44 +02:00
Bruno Van de Velde d2b52dbe26 Added draw tests for SpinButton, ProgressBar, Slider and Scrollbar 2017-09-29 14:33:47 +02:00
Bruno Van de Velde dd19e78a4a Draw tests should use a valid mouse position, even if position isn't checked 2017-09-28 16:13:02 +02:00
Bruno Van de Velde 86fd9dffbd 💥 VerticalScroll in SpinButton is now automatically determined based on the size 2017-09-28 15:58:40 +02:00
Bruno Van de Velde 4d51472523 Also save/load ExpandDirection from ComboBox to text file 2017-09-23 15:24:02 +02:00
Bruno Van de Velde 635517e1c3 Added tests for TextSize and ExpandDirection in ComboBox 2017-09-23 14:59:41 +02:00
Bruno Van de Velde a223933ab7 💥 Replaced ArrowUp and ArrowDown in ComboBox by a single Arrow property 2017-09-23 14:40:58 +02:00
Bruno Van de Velde b2b8c1fb46 💥 Theme and Renderer implementations were changed to allow a default theme to be set 2017-09-22 23:31:09 +02:00
Bruno Van de Velde 756f8e3540 Widgets in HorizontalLayout and VerticalLayout can be given ratios again to determine their size and individual spaces can be added between widgets 2017-09-12 23:34:11 +02:00