Commit Graph

482 Commits

Author SHA1 Message Date
Ray
027ecb35f1 Merge pull request #27 from Demizdor/update_scrollpanel_example
Updated the scroll panel example
2019-02-12 18:30:06 +01:00
Ray
4676578063 BIG REFACTOR! Simplified all controls drawing!
Most drawing code was almos the same for all control states, only change was colors. Drawing was simplified to automatically pick right color in function of state and control property style element.

This change adds some complexity to drawing code but really removes lot of duplicate code.
2019-02-12 17:55:36 +01:00
04d441604e Fixed bug in GuiScrollBar() 2019-02-12 18:47:00 +02:00
db3753dd94 Update Scroll Panel Example 2019-02-12 18:38:47 +02:00
Ray
af7a2d1993 Some code review
- Renamed some properties
 - Reviewed GuiScrollBar()
 - Reviewed GuiPanel()
2019-02-12 16:45:40 +01:00
Ray
87295a1fca Reviewed GuiStatusBar() 2019-02-12 13:49:49 +01:00
Ray
73565b1907 Added GuiTextSplit() 2019-02-12 12:54:26 +01:00
Ray
a09c3cd5bb Reviewed GuiScrollPanel()
Added example
2019-02-11 09:28:05 +01:00
Ray
7228260ef6 Merge pull request #26 from Demizdor/improved_scroll_panel
Improved GuiScrollPanel()
2019-02-11 09:12:07 +01:00
75adea8245 Improved GuiScrollPanel() 2019-02-10 22:03:57 +02:00
Ray
8a13b16246 Working on issue #22 -WIP-
Trying to remove styling elements from functions
2019-02-08 12:52:26 +01:00
Ray
d0f6f6c89d Update ricons.h 2019-02-07 13:52:56 +01:00
Ray
a71bc820c3 REMOVE: GuiLabelEx()
Text alignment and padding styling moved out
2019-02-06 19:55:20 +01:00
Ray
33f033add3 ADDED: Custom icons support -WIP-
RICONS already working with GuiButton()... but other controls should be adapted for this amazing feature!
2019-02-06 19:50:49 +01:00
Ray
f6fee61aa8 Update controls_test_suite.c 2019-02-05 19:20:34 +01:00
Ray
4f9a660c33 Merge pull request #25 from Demizdor/adding_scrollbar
Added GuiScrollBar()
2019-02-03 20:35:47 +01:00
Ray
f53cdb737b Keep NUM_CONTROLS as a define
Despite proposed solution is probably better, I prefer old approximation to be more simple and clear.
2019-02-03 20:35:25 +01:00
Ray
ebf0a78005 Update raygui.h 2019-02-03 20:32:40 +01:00
a9813feb66 Added GuiScrollBar() 2019-02-03 10:26:23 +02:00
Ray
08d31730f6 Update raygui.h 2019-01-17 15:55:34 +01:00
Ray
b28acea720 Removed GuiSlider() and GuiSLiderBarEx() 2019-01-17 13:47:40 +01:00
Ray
3bf1d5d7c3 Renamed variable 2019-01-17 10:36:28 +01:00
Ray
972e7f403b Updated GuiListView() 2019-01-16 17:21:11 +01:00
Ray
9419a600d7 Review GuiScrollPanel() and GuiListViewEx() 2019-01-16 09:58:13 +01:00
Ray
adf03f9877 Try to support grid lines sub-pixel positioning
No simple solution to this issue...
2019-01-15 16:28:54 +01:00
Ray
947c1abb48 Update README.md 2019-01-11 15:27:31 +01:00
Ray
25b784f6cc Remove old style files 2019-01-09 23:46:01 +01:00
Ray
f437ded181 Create raygui_style_table_cyber_REV0.png 2019-01-09 23:45:22 +01:00
Ray
ef9eb883d9 Implementing GuiScrollPanel() -WIP- 2019-01-09 00:43:33 +01:00
0adc948ec1 Update function names 2018-12-26 14:31:15 +01:00
2956e4aa7b GuiTextBox(): Support european characters
New issue detected, european characters size is not properly detected.
2018-12-25 15:20:54 +01:00
5f978ca5df Review spacing 2018-12-24 11:47:23 +01:00
8a3a1020dc Change parameters order
to be consistent with other controls
2018-12-23 15:49:16 +01:00
a67c2745bf WARNING: BREAKING CHANGES
REMOVED: GuiCheckBoxEx()
REDESIGNED: GuiCheckBox()
REDESIGNED: GuiComboBox()
REDESIGNED: GuiDropdownBox()
REDESIGNED: GuiToggleGroup()
2018-12-23 14:23:56 +01:00
Ray
52f62c2208 Testing a possible controls improvement
Applicable to ToggleGroup, ComboBox, DropdownBox
2018-12-21 12:43:12 +01:00
Ray
46ddc88856 Update raygui.h 2018-12-19 15:31:55 +01:00
Ray
c93dbd1af4 Remove comment
TEXT_SIZE and TEXT_SPACING are global values, common for all controls
2018-12-12 11:52:47 +01:00
Ray
5e903329af Some minor tweaks 2018-12-04 00:42:47 +01:00
Ray
40575978b2 Update controls_test_suite.c 2018-12-03 16:17:31 +01:00
Ray
619eecd157 Avoid memory leak...
...by allocating style as a global array (on heap memory by default).

When trying to access guiStyle, if default style was not previously loaded, it loads automatically (RAII)
2018-12-03 16:17:24 +01:00
Ray
4c81641aba Added GuiToggleGroupEx()
Improved GuiToggleGroup()
2018-11-28 17:17:14 +01:00
330a8db463 WINDOW_STATUSBAR_HEIGHT 2018-11-27 13:30:46 +01:00
Ray
00cecf4bc0 Removed GuiLoadPaletteImage()
After lot of thinking and despite being an interesting functionality, I decide to remove this function, it was quite limited (only default style, no value properties...) and not that useful. It also added additional dependencies on Image loading/unloading functions. Let users implement this function if they want it...
2018-11-26 01:16:05 +01:00
Ray
009913c408 Some code tweaks 2018-11-26 00:58:48 +01:00
Ray
5473b79da1 Create GuiSliderPro() to be usde on all GuiSlider*() 2018-11-26 00:27:42 +01:00
Ray
1dfc2882ef Redesigned GuiLoadStylePalette()
- Renamed to GuiLoadStyleProps()
 - Support style properties array loading
2018-11-21 17:42:43 +01:00
Ray
13b78e8149 Corrected issue with DEFAULT_TEXT_SIZE 2018-11-20 23:27:26 +01:00
Ray
f167ca0370 Support custom font loading 2018-11-20 19:05:15 +01:00
Ray
1ce8b64a65 Rename some defines 2018-11-20 13:07:01 +01:00
Ray
493022be66 Move some properties to default 2018-11-20 12:18:34 +01:00