GuiMLTextCtrl - what atom has bitmapRef != NULL ?
by Orion Elenzil · in Torque Game Engine · 11/21/2008 (2:01 pm) · 1 replies
Howdy folks!
i'm trying to extend GuiMLTextCtrl::findHitAtom() to recognize bitmaps in the MLText, and having some trouble finding any Atoms which have bitmaps. do atoms ever have bitmaps ? i was assuming they did because struct Atom{} contains a bitmapRef.
however, walking through all the atoms in both mLineList and mLineAtoms reveals no atoms with a non-null bitmapRef.
implementing something like findHitBitmap() is trivial and works, but it would be much cleaner and more versatile to be able to get an atom corresponding to a bitmap.
clues ?
perhaps i should look at how the bitmapRefs in mBitmapRefList are created, and add a back-pointer to the atom they came from.
i'm trying to extend GuiMLTextCtrl::findHitAtom() to recognize bitmaps in the MLText, and having some trouble finding any Atoms which have bitmaps. do atoms ever have bitmaps ? i was assuming they did because struct Atom{} contains a bitmapRef.
however, walking through all the atoms in both mLineList and mLineAtoms reveals no atoms with a non-null bitmapRef.
implementing something like findHitBitmap() is trivial and works, but it would be much cleaner and more versatile to be able to get an atom corresponding to a bitmap.
clues ?
perhaps i should look at how the bitmapRefs in mBitmapRefList are created, and add a back-pointer to the atom they came from.
About the author
Associate Orion Elenzil
Real Life Plus