Commit Graph

380 Commits

Author SHA1 Message Date
Tom Mason
b7725b4a89 fix scrollbar crash
Copy paste mistake was checking the background type for the cursor style,
leading to a crash if background was image type and cursor was color, as
it would try to use the cursor color as a texture.
2018-05-07 10:36:20 +02:00
vurtun
823f79f856 Second attempt to fix #675 2018-04-23 16:17:24 +02:00
vurtun
f79b080d84 Fixed #674 popup and contextual combination problems 2018-04-23 11:06:18 +02:00
vurtun
da3f7fed6c Fixed #675 List view 2018-04-23 11:01:06 +02:00
vurtun
0981c1a321 Fixed #677 contextual right-click behavior
Closing a contextual menu by right click caused invalid behavior and
bocking. In addition having consecutive contextual menus and closing an
earlier menu will wrongfully open a following menu. Both are now fixed.
2018-04-23 10:55:35 +02:00
Micha Mettke
b91a815c82
Merge pull request #668 from nsawa/Fix_VC_warning_cannot_convert_parameter
Fix: VC++ warning cannot convert parameter.
2018-04-15 10:38:37 +02:00
vurtun
d5f32ee6f9 Fixed nk_tree_element_push_id macro 2018-04-15 10:34:53 +02:00
Naoyuki Sawa
9c6896c1ed Fix: VC++ warning cannot convert parameter. 2018-04-15 10:53:29 +09:00
vurtun
3f99a80f11 Added selectable tree nodes #626 2018-04-14 13:57:25 +02:00
vurtun
907db51a95 Merge branch 'pr_valist' of https://github.com/AntiBlueQuirk/nuklear into AntiBlueQuirk-pr_valist 2018-04-06 11:39:33 +02:00
AntiBlueQuirk
1ec96233a6 Fixing merge error 2018-04-05 12:57:21 -05:00
AntiBlueQuirk
e99a04bc03 Adding va_list versions of varargs functions 2018-04-05 11:17:26 -05:00
AntiBlueQuirk
47bc15f37f Fixed a case where rendering would assert if a temporary buffer failed to be allocated
Other parts of the draw_list code simply fail more or less silently when the
buffers fill up. The user could allocate bigger buffers and try again, except
that these particular functions assert when they fail to allocate the buffer.
2018-04-05 11:03:27 -05:00
vurtun
d374953d27 Fixed #657 contextual activation code 2018-04-04 16:43:09 +02:00
vurtun
f5aa92c5ca Seperated single header out into multiple files
Nuklear now comes in two flavours. For ones there is the single-header
version for distribution and multiple files inside the /src folder for
development and better readability. Since I don't want to manually
update each version if the other changes the /src directory includes a
python script developed by Apoorva Joshi to pack all files inside the
directory into a single header file.
2018-04-02 18:06:12 +02:00
Micha Mettke
2825f3492e
Merge pull request #655 from Artomatix/master
Make text edit scroll less when typing past the end
2018-04-01 04:12:58 -07:00
vurtun
253f73c976 Fixed #656 Single frame multi-calling nk_convert
It is now possible to call `nk_convert` multiple times in a single
frame.
2018-04-01 13:09:22 +02:00
vurtun
1caba3a5c9 BREAKING CHANGE! Changed nk_clear behavior #656
Previously `nk_clear` with optional vertex output enabled would try and
clear each passed buffer from `nk_convert` if called. Problems arise
if each buffer was specified previously in own code block outside
`nk_clear`.

Overall the buffer clearing was an overreaching measure of `nk_clear`
and I hope not to many tried to make use of it. In general the buffer
is owned by the user of nuklear and not nuklear itself.
Therefore it does not make sense for nuklear to access it after
`nk_convert` was successfully completed.

Sorry for any inconvenience caused by this breaking change.
2018-04-01 12:36:56 +02:00
Aneesh Roy
33d8b8f187 Text edit scrolls less when typing past the end 2018-03-30 14:04:30 +01:00
vurtun
94c0412a08 Fixed #647 window open/close flickering
Opening and closing a set of windows with at least one other window
active caused flickering if a window as closed. Reason was a missing
check inside `nk_build` that did not skip newly closed windows.

I am not 100% sure but this could also affect #637 but I still needs to
be tested.
2018-03-20 11:22:04 +01:00
vurtun
20cd35c0fb Added nk_image_color back into API #645
No idea what happend but for some reason I accidentally removed
`nk_image_color`. I don't think there is any reason why it should have
been removed so I added it back in.
2018-03-14 16:36:00 +01:00
Sergey Semushin
76107a2cd2 Make ctx->begin 0 if ctx->end became 0.
Fixes #634.
2018-03-02 09:23:37 +03:00
vurtun
45193dc6dd Fixed #636 slider dragging behavior 2018-02-23 22:51:08 +01:00
vurtun
05fed4f833 Fixed changelog dates to correct year 2018-02-21 23:20:39 +01:00
vurtun
1626610040 Added additional documentation on nk_property_xxx 2018-02-17 20:20:07 +01:00
Zach Ploskey
5a79427453
Correct doc comments for nk_window_get_height 2018-02-10 11:08:52 -08:00
vurtun
39e1041c07 Fixed #580 miscalculated baked cursor bake size 2018-01-31 14:52:43 +01:00
vurtun
533b7fc083 Fixed #615 stb_truetype name collision 2018-01-31 11:53:44 +01:00
vurtun
f8dfddd732 Applied patch from #603 for panel border drawing 2018-01-28 11:48:44 +01:00
vurtun
11c81d4631 Fixed accidental code remove in last commit 2018-01-15 23:31:15 +01:00
vurtun
c36a167127 Added tree documentation 2018-01-15 19:30:57 +01:00
vurtun
da8273c4c6 Added nk_group_begin_titled 2018-01-12 18:35:36 +01:00
vurtun
c9189a250b Finished documenation conversion 2018-01-09 12:15:44 +01:00
vurtun
8027ebe0ee Second last doc conversion commit 2018-01-08 16:08:38 +01:00
vurtun
8709a881f0 Added input documentation translation 2018-01-08 02:21:21 +01:00
vurtun
9a314f0e29 Finised context documentation translation 2018-01-07 22:59:27 +01:00
vurtun
dd5f3520a0 Started documentation transition to markdeep 2018-01-07 17:18:02 +01:00
Naoyuki Sawa
83e2c109d5 Fix nk_colorf_hsva_f alpha calculation 2018-01-06 08:52:26 +09:00
vurtun
604a7dfa42 Merge branch 'master' of https://github.com/vurtun/gui 2018-01-05 12:33:49 +01:00
vurtun
bd30c124a6 Fixed #544 color picker (breaking change) 2018-01-05 12:32:42 +01:00
Martin Gerhardy
acaab2f46a Fixed implicit fallthrough warning 2018-01-04 21:34:53 +01:00
vurtun
5bbe337399 Removed docu typo 2018-01-02 11:08:10 +01:00
vurtun
f08b62039f Split license into dual license MIT/public domain 2018-01-02 10:47:08 +01:00
vurtun
07e422ecd1 Fixed warnings found by gcc and clang 2018-01-01 17:18:52 +01:00
vurtun
023c2da494 Fixed define intendation 2018-01-01 15:45:09 +01:00
vurtun
683185e762 Merge branch 'issue585' of https://github.com/mgerhardy/nuklear into mgerhardy-issue585 2018-01-01 15:41:57 +01:00
Martin Gerhardy
61143c3400 Fixed issue #585 2017-12-31 17:37:02 +01:00
Martin Gerhardy
107c920fb0 Fixed second part of issue #584 2017-12-31 17:29:52 +01:00
vurtun
87d3e9f3ad Added documentation for group 2017-12-29 11:43:36 +01:00
vurtun
f83c8648b7 Fixed #583 small warning in GCC 2017-12-25 18:31:16 +01:00