-
Notifications
You must be signed in to change notification settings - Fork 572
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make nk_combo Header Symbols Optional. #142
Conversation
@zgcrowno thanks for tracking it down. Before we'll dive into review, please check general review guidelines and make appropriate PR changes 😉. Btw. have you tested this with few different backends? |
@dumblob, thanks for the review guidelines link; I hadn't seen that! I think I've updated the PR sufficiently, but please let me know if I've missed anything. As for different backends, I've only tested it in OpenGL, but it seems to work just fine on that. My apologies, as I'm new to this sort of testing, but how do you generally go about testing across different render backends? Is there an especially efficient means of doing that? Thanks so much! |
Thanks so much, @Hejsil. I'll see if I can't rectify these issues today. |
@Hejsil, I couldn't find anything about running a script in the reviewers guide, but I did see |
@zgcrowno Aaah, you're right. It is not mentioned in the reviewers guide but in the Readme.md in src. We should probably link to it in the reviewers guide 👍 |
Alright, @Hejsil, I ran the batch file, and I believe I've remedied the other issues as well. Just let me know if you require anything else. Thanks again! |
It seems like the newlines changed in |
Hmm, that's unfortunate. Feel free to let me know if I can help in any way. |
@Hejsil, the |
Sorry, @Hejsil, this weekend has been pretty busy for me. I'll try to get this taken care of today. |
I've actually realized that the issue I fixed for nk_combo still exists for nk_combo_begin_image, so I think I'll add that fix to this PR as well, since it's basically the same thing. |
Alright, @Hejsil, I added the optional header symbol behavior to nk_combo_begin_color, nk_combo_begin_image and nk_combo_begin_image_text. If everything looks alright to you, I can go ahead and squash my commits. |
Just tested the code again, and everything looks good! I still see the newline issue, but maybe if you rebase and remove the |
I'm not sure why, but I can't seem to rebase because of unstaged changes to nuklear.h that I'm inexplicably unable to stash/reset/etc. Would you recommend I just revert the commit that introduced the newline issue, @Hejsil? |
Idk, maybe: git reset upstream/master # This will give you all your changes from master unstaged
git checkout nuklear.h # Reset nuklear.h
cd src
paq.bat # Regenrate
cd ..
git add . # Add all changes
git commit -m "Message" # Commit
git push -f # Force push This should be very similar to a rebase |
Alright, @Hejsil, I think we're all good! Thanks so much for your help. |
Looks good! If @dumblob agrees then it'll get merged. Sorry about all the newline nonsense. |
@zgcrowno it's all good, I just had a bad day. |
The changes made ensure that when an nk_combo has no symbol associated with it, the symbol is neither drawn nor reserved any space in the header.