636 Commits

Author SHA1 Message Date
Ray
f0fb642501
Update .gitignore 2019-06-04 15:49:35 +02:00
Ray
f9a7f29889
Merge pull request #34 from benbeshara/master
Fixed crash when editing textbox at non-end pos
2019-06-04 13:40:30 +02:00
Ben Beshara
308f916d9d Fixed crash when editing textbox at non-end pos 2019-06-04 21:16:29 +10:00
Ray
f4d243ea88 Added extended GuiTextBox() example 2019-05-29 18:21:10 +02:00
Ray
b0f3f49b28 Corrected potential issue 2019-05-28 17:02:39 +02:00
Ray
10cc55548a Review latest PR
GuiTextBox() redesign is a huge addition and extends old text box capabilities a lot... but it implied a big amount of new functions and code. Some user could not require that extended functionality, so, I allowed enabling it with a flag while keeping the old (and simpler) implementations.

I reviewed all the code formating but it requires a deeper analysis, probably some functions could be moved to raylib text module.
2019-05-28 16:59:43 +02:00
Ray
afb8bae96f
Merge pull request #32 from Demizdor/gui_textbox_wip2
WIP modified GuiTextBox(), GuiSpinner() and GuiValueBox()
2019-05-28 16:05:53 +02:00
Demizdor
c146b2d950 Right clicking outside the textbox bounds will deactivate it 2019-05-11 11:18:40 +03:00
Demizdor
5c54c464d0 Improved GuiSpinner() responsiveness when buttons are held 2019-05-10 18:35:27 +03:00
Demizdor
10a8ab6dff WIP modified GuiTextBox(), GuiSpinner() and GuiValueBox() 2019-05-10 15:06:26 +03:00
Ray
c87d801ac5 Move example to folder 2019-05-09 17:53:53 +02:00
Ray
1eae19f183 TEXT_SIZE is a global style property 2019-05-09 12:24:15 +02:00
Ray
2ebb9ddde1 Remove comments 2019-05-08 18:52:53 +02:00
Ray
3a172583de Remove trail spaces 2019-05-08 18:41:59 +02:00
Ray
e70706da41 Separate VALUEBOX, SPINNER properties 2019-05-06 23:13:52 +02:00
Ray
8b9e1ee94b Avoid rIcons code if not supported 2019-05-06 09:22:26 +02:00
Ray
a3a8e3dd5a Corrected issue with forced property 2019-05-05 12:51:27 +02:00
Ray
a2a3af31de Code review and formatting 2019-04-30 18:46:44 +02:00
Ray
c45e7ee524 Review Scrollbar properties name for consistency 2019-04-30 18:33:05 +02:00
Ray
4554fe571b
Update README.md 2019-04-29 10:13:36 +02:00
Ray
4925bbabe8 Added note 2019-04-11 00:19:12 +02:00
Ray
3aebab1029 Some small issues corrected
Make sure default style is not randomly changed by any control, every required GuiSetStyle() is reverted before leaving the control.
2019-04-01 23:58:47 +02:00
Ray
3bc66fe108 Added 2 new icons 2019-04-01 19:14:59 +02:00
Ray
b710c8ff79 Review detail 2019-03-27 17:50:28 +01:00
Ray
0c88d7c17b Corrected wrong style usage in BUTTON 2019-03-27 10:04:24 +01:00
Ray
ac88a7891e Added comment 2019-03-26 12:41:51 +01:00
Ray
7c9cdd0886 ADDED: GuiIconText()
Useful to retrieve text with icon just using icon enum id
2019-03-11 15:13:57 +01:00
Ray
e9e05fcb2d Added some icons and moved others 2019-03-11 15:12:53 +01:00
raysan5
6b7352bc6c Added mouse wheel scroll to GuiScrollPanel()
Reviewed GuiWindow() top status bar
2019-03-04 12:45:55 +01:00
Ray
498cea4ad3 Review GuiSliderPro() 2019-02-28 23:07:06 +01:00
Ray
14182fe475 Added functions definition placeholder 2019-02-28 12:10:47 +01:00
Ray
bbcf2e9507 Review standalone mode
Still, Font management is very specific to raylib...
2019-02-28 11:34:43 +01:00
Ray
7cd660176b Update GuiStatusBar() 2019-02-25 02:06:46 +01:00
Ray
283f599c4b Update controls_test_suite.c 2019-02-22 19:18:09 +01:00
Ray
732edd9764 REDESIGNED: GuiMessageBox() 2019-02-22 18:33:35 +01:00
Ray
5c8848c2c6 GuiMessageBox() -WIP- 2019-02-22 17:14:20 +01:00
Ray
705c3c47bd Change ternary operator formatting 2019-02-22 13:12:02 +01:00
Ray
87c9119dd4 Some tweaks and removed tabs 2019-02-22 12:11:44 +01:00
Ray
62514f2d6d Remove end-line spaces 2019-02-21 18:44:46 +01:00
Ray
ed0ed131b0 Review GuiWindowBox() 2019-02-21 12:09:47 +01:00
Ray
9ad9729fd8 Reviewed GuiCheckBox() 2019-02-21 11:24:26 +01:00
Ray
c8f4530f16 Redesigned RICON_INFO 2019-02-21 11:24:13 +01:00
Ray
8e8094aca9 Update ricons.h 2019-02-20 19:01:33 +01:00
Ray
174d5cf8bf Some code tweaks on GuiScrollPanel() 2019-02-20 19:01:21 +01:00
Ray
13eb597ae8 Some code tweaks 2019-02-18 18:06:36 +01:00
Ray
3eb7e57ee0 Added name identifier to rIcons 2019-02-15 12:45:18 +01:00
Ray
d51438d910 Some tweaks 2019-02-14 17:56:02 +01:00
Ray
1e730686c9 Some corrections and improvements 2019-02-14 17:02:02 +01:00
Ray
c357392577 Convert TEXT_ALIGNMENT into a control property
Now text alignment could be set by basic control type
2019-02-14 16:25:33 +01:00
Ray
70cf22dec8 REVIEWED: GuiLine(), GuiGroupBox() -WIP-
- GuiLine(): Removed thick style property parameter
 - GuiGroupBox(): Use new GuiLine()
2019-02-14 13:16:43 +01:00
Ray
5b1e5b747f Support rIcons drawing on all controls
A part of the rIcon support, also support custom text alignment... but I don't like current solution using a global guiTextAlign variable, probably it can be moved to a per-control property... but it would require passing that value to GuiDrawText()

Also GetTextWidth() should be modified to support rIcon size properly... current implementation could be improved...
2019-02-14 12:51:16 +01:00
Ray
28d565599e
Merge pull request #28 from Demizdor/add_scrollbar_to_listview
Added GuiScrollBar() to GuiListViewEx()
2019-02-14 12:23:30 +01:00
Demizdor
52391d8e9a Added GuiScrollBar() to GuiListViewEx() 2019-02-13 20:26:55 +02:00
Ray
7a0335896c Improve rIcons support -WIP-
Some controls refactored
2019-02-12 18:38:55 +01:00
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
Demizdor
04d441604e Fixed bug in GuiScrollBar() 2019-02-12 18:47:00 +02:00
Demizdor
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
Demizdor
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
Demizdor
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
raysan5
0adc948ec1 Update function names 2018-12-26 14:31:15 +01:00
raysan5
2956e4aa7b GuiTextBox(): Support european characters
New issue detected, european characters size is not properly detected.
2018-12-25 15:20:54 +01:00
raysan5
5f978ca5df Review spacing 2018-12-24 11:47:23 +01:00
raysan5
8a3a1020dc Change parameters order
to be consistent with other controls
2018-12-23 15:49:16 +01:00
raysan5
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
Sergio Martínez
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