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:
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 workAbout the author
http://cyberiansoftware.com.ar/
Torque 3D Owner Novack
CyberianSoftware