710 Commits

Author SHA1 Message Date
7dae5b06f7 use the same style of dll export/import definition and extern c as raylib, so it actually works on windows. (#115) 2.8 2020-12-26 19:27:50 +01:00
Ray
f5bd6c08f8 Update gui_file_dialog.h 2020-12-18 20:06:38 +01:00
Ray
3b44da667b Updated to raylib 3.5
Use GetCharPressed() instead of GetKeyPressed()
2020-12-18 19:50:57 +01:00
60605f01b6 Handle CRLF line endings reading fontFileName. (#114)
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.
2020-12-14 16:11:17 +01:00
a380ef80c1 Missing closing parentheses for if statement (#113)
Added a missing parenthesis to the if statement for the *iconId* example.
2020-12-12 09:59:07 +01:00
7eda4008e2 Add missing examples in Makefile (#111)
Co-authored-by: epsimatt <epsimatt@protonmail.com>
2020-11-20 23:16:06 +01:00
Ray
b73eb56f3c Update image_exporter.c 2020-10-05 20:08:47 +02:00
07b30c30af Fix tiny spelling mistake (#103) 2020-07-21 19:28:19 +02:00
95b225b90c GuiTextBox(): Support Unicode inputs #99 2020-07-13 19:53:17 +02:00
6d2d6819fa GuiTextBoxMulti now will also break lines when encountering a newline character (#97)
* 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>
2020-07-04 11:30:33 +02:00
4eda62925c Fix for issue #94: infinite loop on space-free sequences in text that are wider than textbox bounds (#95)
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.
2020-06-20 17:51:46 +02:00
3e61557f25 Clean up CMake files (#90) 2020-05-18 19:32:22 +02:00
65bad19e26 Update raygui.h 2020-05-18 18:31:45 +02:00
4643d3769d Corrected issue with GuiCOlorPicker() drifting 2020-05-05 10:28:01 +02:00
8c33be58b2 Update raygui Rectangle to match raylib Rectangle (#88)
Rectangle in raygui should use a float.
2020-05-04 20:14:04 +02:00
8a38a8028e Bumped version 2020-05-03 21:25:00 +02:00
76d734bb30 Move all rectangles drawing to one single function
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...
2020-05-03 21:23:45 +02:00
4758b45676 Corrected some typos 2020-05-03 21:19:53 +02:00
fa8b958a91 Move CMake files to projects/CMake (#87)
Fixes #86
2020-05-01 13:31:15 +02:00
feb1a6c874 fixed package mode in FindRaylib (#85) 2020-04-29 12:40:24 +02:00
e689c710e4 Update CMakeLists.txt (#83)
Remove comma after RAYGUI_HEADERS or make install will not install the headers because RAYGUI_HEADERS is not set. ", " is an unreported syntactic error.
2020-04-24 23:16:18 +02:00
0fdacc87f6 Add CMake definitions (#79) 2020-04-16 13:24:03 +02:00
5191022a6b Fix unknown stack array size (#80)
Compiler expected a static value. Writing 64 directly in the declaration should fix it up.
2020-04-16 13:22:28 +02:00
3e1d420e60 Review examples copyright 2020-04-07 23:04:39 +02:00
7f4794c31d Review gui_file_dialog with proposed improvements
Proposed improvements in: https://github.com/raysan5/raylib/issues/1101
2020-04-06 23:20:38 +02:00
6346ae2246 Remove trailing spaces 2020-04-06 23:19:42 +02:00
b2974f3d28 Review issue sscanf() and hex value #78 2020-03-26 18:04:10 +01:00
Ray
18a32e61ab GuiGrid() Corrected issue with div by 0 2020-03-12 12:29:20 +01:00
Ray
6cf73a3054 GuiTextBoxMulti(), minor tweak to align cursor 2020-03-11 16:09:58 +01:00
Ray
9d911f7104 REVIEWED: IsMouseButtonPressed() to use define value 2020-03-11 16:00:41 +01:00
Ray
d3c810311c REVIEWED: GuiTextBoxMulti() #54
Simplified code, avoid line breaking.

WARNING: If a line is longer than box width, it crashes... word-wrap implementation requires some review...
2020-03-11 16:00:09 +01:00
d878d38e40 Added new example for a property list control (#76) 2020-03-11 12:32:56 +01:00
Ray
9d1e48bfe6 Expose internal GuiColor*() controls #74 2020-03-11 12:27:20 +01:00
Ray
24de442135 Update LICENSE link 2020-02-28 10:19:21 +01:00
Ray
6f80bfbbd1 Updated to raygui 2.7 2020-02-20 16:43:24 +01:00
Ray
ffdeef8d17 Experimenting with a tooltips API
Found several limitations:
 - Tooltip timming can not be properly set on imgui mode
 - Tooltip underlap to controls drawn after current control

Still, a quite interesting feature for further analysis.
2020-02-20 16:36:18 +01:00
Ray
b8932dab26 RENAMED: riconsdata.h to ricons.h 2020-02-14 23:18:43 +01:00
Ray
d297b5d7d9 GuiTextEditor() control example -WIP- 2020-02-10 23:57:51 +01:00
Ray
1f088bf174 Update README.md 2020-02-10 16:58:44 +01:00
fd349ca95c Fix parameters and guess at constants (#70) 2020-02-08 01:13:04 +01:00
Ray
8d5f8f28a4 Review LIST_ITEMS_HEIGHT property 2020-02-07 11:40:59 +01:00
Ray
efe2a42cee Remove unneded define 2020-01-30 18:02:26 +01:00
Ray
4fb2b73a15 Addressed issue #66
NOTE: GetDirectoryPath() has also been updated in raylib, latest master branch version must be used!
2020-01-26 12:55:14 +01:00
Ray
aa28f6c759 Review GetTextIcon() for #67 2020-01-26 12:00:33 +01:00
Ray
e1e296583e Review custom allocators warnings 2020-01-26 12:00:14 +01:00
Ray
962661b7ea Ignore Visual Studio generated files 2020-01-26 11:59:55 +01:00
Ray
4047b43b10 Removed atoi() dependency 2020-01-24 18:01:57 +01:00
Ray
146068751c Improved standalone support and example 2020-01-22 13:43:46 +01:00
fce438cd1c Support custom memory allocators 2020-01-19 11:21:29 +01:00
09d583687a Review functions declaration properties 2020-01-19 11:09:09 +01:00