- REVIEWED: `GuiLoadStyle()` to support compressed font atlas image data and unload previous textures
- RENAMED: Multiple controls properties definitions to prepend `RAYGUI_`
- RENAMED: `RICON_` references to `RAYGUI_ICON_` for library consistency
The bounds check occurred before the `GuiButton`s for the increment and decrement feature of the `Spinner` control which meant using the buttons when the spinner value was at the `minValue` or `maxValue` and incremented or decremented past the min or max would not be resolved until the next time the `Spinner` control was called in the code, likely on the next iteration of a program loop. This caused an array index out of bounds issue in my codebase.
This controls require an external texture provided and a specific function to draw that texture. Personally I never used it and I feel it shouldn't belong to raygui. Anyone requiring to use an `ImageButton` should probably create it using the backend graphics library and the types/functions defined.
Modify gui_textbox_extended.h to contain DrawTextRec and DrawTextRecEx since they were cut from raylib, also add DrawTextBoxedSelectable as an alias for DrawTextRecEx for compatibility/name consistency
Modify gui_textbox_extended.h to be compatible with the latest raylib
* hue and alpha color bar fix
fixes issues with the slider going over the end of the bar
fixes color on colorbar to:
- not get smaller when the overflow increases
- not have a small white rectangle at the bottom
* switched back to DrawRectangleGradientV
- ADDED: `RAYGUI_SUPPORT_CUSTOM_RICONS` for external `ricons.h`
- RENAMED: Some defines for consistency and make them private
- Increased version to 3.0-dev
* scrollPanel fix
fixed a bug of the scrollbars disappearing
implemented checking of scrollbar side for drawing the little rectangle
* readded (int) cast
If you have a style file with CRLF line endings and specify a font file on a system that expects LF line endings, then the font file will fail to load with an error such as...
WARNING: FILEIO: [./assets/terminal/Mecha.ttf
] Failed to open file
...because it sees the CR as part of the name.
Adding '\r' to the negated scanset for sscanf() fixes the issue.
* Fix for issue #94: infinite loop on space-free sequences in text that are wider than textbox bounds
marked no lastSpacePos as -1.
check for a space-char had to come earlier than check for width overrun.
if no space found in this line but line too wide, wrap sequence and start new line with textWidth of last character.
reset lastSpacePos on every new line.
* GuiTextBoxMulti now will also break when encountering a newline character
Co-authored-by: Ray <raysan5@gmail.com>
marked no lastSpacePos as -1.
check for a space-char had to come earlier than check for width overrun.
if no space found in this line but line too wide, wrap sequence and start new line with textWidth of last character.
reset lastSpacePos on every new line.
Now all controls just use GuiDrawRectangle() that receives border parameters if required, it replaces previous DrawRectangle()/DrawRectangleRec() + DrawRectangleLinesEx() combinations.
It centralizes rectangles drawing into a single function, allowing some further customization in the future if required...