26.08.2013, 10:56
Here's the problem.
I have a set of dynamic objects created by Streamer.
At any moment only one object can be set material text while other objects should stay unchanged as well as the status when they were just created.
So when I switch to the target object which should be set material text, I need to restore the status of the previous one.
But I didn't figure out how.
I thought the key to restore the object is the parameter "backcolor" of the above function.
I knew it was ARGB format in which "A" means transparency.
so when I set it to 0, the object becomes transparent.
so this won't set the object back to the original status.
Any ideas? help? or suggestions?
Appreciate any of them from you guys!
I have a set of dynamic objects created by Streamer.
pawn Код:
CreateDynamicObject
So when I switch to the target object which should be set material text, I need to restore the status of the previous one.
But I didn't figure out how.
pawn Код:
SetDynamicObjectMaterialText(objectid, materialindex, const text[], materialsize = OBJECT_MATERIAL_SIZE_256x128, const fontface[] = "Arial", fontsize = 24, bold = 1, fontcolor = 0xFFFFFFFF, backcolor = 0, textalignment = 0);
I knew it was ARGB format in which "A" means transparency.
so when I set it to 0, the object becomes transparent.
so this won't set the object back to the original status.
Any ideas? help? or suggestions?
Appreciate any of them from you guys!