Game Development Community

Bitmap field inconsistency

by Novack · in iTorque 2D · 09/02/2011 (3:37 pm) · 2 replies

There is an inconsistency on how the engine expects the path for the bitmap field in -at least- the GuiBitmapCtrl, between the definition data, and the dynamic setter.

Note that is highly probable that this be common factor accross Torque engines, but I dont have the time now for checking it.

Example:
%bitmapCtrl = new GuiBitmapCtrl()
{
   bitmap = "~/data/images/Bonus/shuffleanddealsign_off.png"; // path with ~ will work
};

%bitmapCtrl.setBitmap("game/data/images/Bonus/shuffleanddealsign_off.png"); // path with ~ will NOT work

#1
09/02/2011 (4:00 pm)
Btw, this has been mentioned a couple of times, I just thought of reporting, as for someone to log it for improvement.
#2
09/02/2011 (4:36 pm)
logged ITGB-213
thanks!