Provide id of selected object to script
-
Hi gentlemen,
A nice debugging feature would be to provide the object id of the object that the user currently has selected in gui. Example: Game.getSelectedObjectId
One could log details, show extra visuals, etc with this information.Also solves this guys problem: http://screeps.com/forum/topic/287/Creep-overrideable-info-string-for-display-on-info-panel
Regards,
DrJamgo
-
With multiple browser windows open how would you differentiate?
Perhaps we also would need a client ID to match up with the selections and viewed rooms.
-
@K-C: My proposal: id depends on most recent selection event, regardless of the instance.
Keep in mind this is supposed to be a debug feature, we can live with a few flaws I think. Visuals aren't perfect either, but are still great.
Regards,
DrJamgo