Game Development Community

hardcoded references to PlayGui

by Andy Schatz · in Torque 3D Professional · 05/08/2009 (12:33 pm) · 4 replies

A slight annoyance that it would be nice to have fixed. In a few places in the code, the game is referring to PlayGui by name (Waterblock does this for example). I've adjusted the structure of things a bit in my project so that PlayGui refers to the container object with all the game stuff in it, and PlayGui3D refers to the actual 3d gui object (I don't like having my HUD as a child of the 3d window, I prefer it to be a sibling).

At any rate, it would be nice if PlayGui weren't referenced by name in the code itself.

#1
05/08/2009 (5:14 pm)
Yea... that could be done better. I say lets call this a bug.
#2
06/24/2009 (10:53 am)
Just retagging (as a bug) and bumping this.
#3
06/25/2009 (7:27 pm)
Thanks for bumping it.

The reflection manager was the last holdout peeking at "PlayGui". I'm refactoring it now so that it no longer has to do that.

This will be fixed for beta 4.
#4
06/29/2009 (11:45 am)
Logged as THREED-536