Skip to content
This repository has been archived by the owner on Apr 17, 2022. It is now read-only.

Add debug GUI for qtscript #3924

Closed
wzdev-ci opened this issue Feb 2, 2013 · 6 comments
Closed

Add debug GUI for qtscript #3924

wzdev-ci opened this issue Feb 2, 2013 · 6 comments

Comments

@wzdev-ci
Copy link
Contributor

wzdev-ci commented Feb 2, 2013

keyword_GUI_qtscript_qt_javascript resolution_fixed type_patch (an actual patch, not a request for one) | by Per


This commit adds a debug GUI that displays all script globals, triggers and labels, and allows you to double-click each label to center camera on and mark terrain under each label object. The dialog is kept continuously updated.

perim/warzone2100@fde5575

I had to add a dependency on QtGui to the SDL backend, and use QApplication instead of QCoreApplication. This seems to have no ill effect.

There are several possible future features that could be added to this. One idea is to add an input box for runtime evaluation of javascript code, which could be useful to set up testing scenarios. Another idea is to expose performance counters or logging calls for each scripting context.


Issue migrated from trac:3924 at 2022-04-16 10:51:36 -0700

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Feb 2, 2013

Per uploaded file 13 PM.png (49.1 KiB)

Screenshot of debug dialog
13 PM.png

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Feb 2, 2013

Per uploaded file dyneval.diff (5.4 KiB)

Adds dynamic evaluation of javascript

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Feb 2, 2013

Per uploaded file 31 PM.png (43.0 KiB)

Showing dynamic evaluation of javascript
31 PM.png

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Feb 2, 2013

dak180 commented


Mac build support: dak180/warzone2100@perim:master...dak180:topic/jsdebug

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Feb 2, 2013

Per changed status from new to closed

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Feb 2, 2013

Per changed resolution from `` to fixed

@wzdev-ci wzdev-ci closed this as completed Feb 2, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant