When doing this how can you just remove the Text, as I want to keep the FDK image, but I want to changed the text, as it takes a long time to keep loading the paint image.
Any ideas?
Mat
</3
Printable View
When doing this how can you just remove the Text, as I want to keep the FDK image, but I want to changed the text, as it takes a long time to keep loading the paint image.
Any ideas?
Mat
</3
I'm thinking you could do:
Simba Code:(*
SMART_ClearCanvasArea
~~~~~~~~~~~~~~~~~~~~~
.. code-block:: pascal
procedure SMART_ClearCanvasArea(Area: TBox);
Clears a specific area of the SMART canvas defined by the box, 'Area'.
.. note::
Author: Coh3n
Last Modified: January 10th, 2012 by Coh3n
Example:
.. code-block:: pascal
SMART_ClearCanvasArea(IntToBox(10, 10, 50, 50));
To clear just the area where text would be and then call in SMART_DrawText
Just load the bitmap again and copy the tiny bit you need to repaint. No need to clear anything.
Edit: musafabitmap.copy
Loading the Bitmap again is what he wants to avoid doing?
I have a second suggestion, not sure if it works but:
http://docs.villavu.com/simba/script...ghlight=freeze
As the BMP is very large it takes a lot of time to load, and as its constantly under attack I don't want the player to die.
I'm not sure what you mean by:
musafabitmap.copy
Could you explain more <3
Mat
</3
It's just a function that copies a specified area of a bitmap which will allow you to only repaint a very small area over the old text before painting over again with the new text. Check the documentation for parameters.
Check how I do this in my script.