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
GUIFormSpecMenu: Add basic element highlighing debug feature #9423
Conversation
src/gui/guiFormSpecMenu.cpp
Outdated
hovered->getAbsoluteClippingRect(), | ||
&hovered_pos); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Parameters are color, pos, *clip
, not color, clip, *pos
. http://irrlicht.sourceforge.net/docu/classirr_1_1video_1_1_i_video_driver.html#ac7f452fae0ef8abe01768a78ba7033b7
(Just using the clipping rect would also suffice.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch, thank you. I adjusted the PR accordingly.
222c318
to
3e2bc25
Compare
3e2bc25
to
78bc2a1
Compare
Nice. |
…t#9423) Activated using F5
…t#9423) Activated using F5
This PR adds a highlighting feature to all formspecs which can be enabled using the debug key.
Possible additions in the future: a static text to describe the highlighted element (type name, ID, etc)
To do
This PR is Ready for Review.
How to test