Commit Graph

23 Commits (4f236fd8f21693a4afae8a2c5bab113b20a20006)

Author SHA1 Message Date
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 11c5ee05ae Updated copyright to 2018 2018-03-22 19:57:45 +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 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 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 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 cad70def6d Let tests use a font that can be used for drawing 2017-02-10 00:35:24 +01:00
Bruno Van de Velde 2e9eca5f6a Updated copyright header to 2017 2017-01-20 20:06:07 +01:00
Bruno Van de Velde 908ef194aa Fixed shared texture issue by splitting the Texture class into a Texture and a Sprite class 2016-10-16 18:09:36 +02:00
Bruno Van de Velde 06b8d3b919 Added a static 'create' function to all widgets which is now the intended way to construct a widget 2016-09-14 20:11:20 +02:00
Bruno Van de Velde 6aacbdb06a Ported ChildWindow to new renderer 2016-09-12 01:09:13 +02:00
Bruno Van de Velde d237a08416 Get 100% test coverage on Renderers folder 2016-09-08 00:41:47 +02:00
Bruno Van de Velde 91660444f4 ChatBox now uses the new renderer 2016-08-30 14:55:23 +02:00
Bruno Van de Velde c43cbc61eb Mostly stuff related to the renderers 2016-07-11 00:01:18 +02:00
Bruno Van de Velde 238abc8e00 Ported EditBox to new rendering system + implemented changes that were made in 0.7 in the meantime 2016-06-30 16:12:43 +02:00
Bruno Van de Velde e1bfb672c8 Update copyright dates 2016-03-17 16:12:06 +01:00
Bruno Van de Velde 36ead7c4b7 Fixed issue with wrong line being removed in ChatBox when LineLimit is set and NewLinesBelowOthers=false 2016-01-29 15:06:54 +01:00
Bruno Van de Velde 2b5066c8e2 Added new ChatBox propery to widget files 2016-01-29 13:39:47 +01:00
Bruno Van de Velde 9a37885d61 Save widgets with transparency in tests 2015-12-05 22:45:41 +01:00
Bruno Van de Velde fd36c951f7 Added more tests for ChatBox 2015-12-05 19:46:44 +01:00
Bruno Van de Velde d307f2f79d Added tests for copying widgets 2015-11-20 10:05:38 +01:00
Bruno Van de Velde b9d1590102 Improved internal text rendering and made some other changes
List of changes:
- Text auto sizing was improved
- Every widget now has a font and a setFont function. The setTextFont
and setGlobalFont functions were removed.
- You can now set a custom text size in ListBox
- ListBox now has an auto scroll option to move the scrollbar down when
a new item is added (enabled by default)
- setTexture functions were added to Picture to change the image after
it was loaded
- HorizontalLayout and VerticalLayout can now decently handle widgets
with borders
- All widgets with borders now correctly implement getFullSize
- Fixed loading MessageBox from a theme file
- Fixed positioning of LoadingBar front image from Black theme
- Added new tests
2015-09-19 13:18:07 +02:00
Bruno Van de Velde 114106ea70 Adapted remaining widgets to new loading system 2015-08-12 13:45:37 +02:00