View Full Version : Preemptile Runespan help?
supersayian2224
07-30-2012, 02:29 AM
Hi! Just wondering if anyone managed to get the preemptile runespan script up and running -- I've tried updating the script but it's still giving me the old Unknown identifier 'SmartGetDebugDC' at line 353
I got it to compiling by removing all painting procedures from it (was a mission.. so much debug up in here!).
Alternatively have a look at this thread: http://villavu.com/forum/showthread.php?t=84334
In the above, It shows an example of how to draw on Smart 7.X++ Manually and Automatically. By Manually it means without SmartGraphics.Simba. Some scripts still use SmartGetDebugDC and TCanvases for drawing on Smart. Inorder to port those scripts to Simba 0.99 and draw on Smart Manually, you need to learn how to use SetPersistentMemoryBitmap and ResetPersistentMemoryBitmap. The first will make our bitmap use Smart's Canvas. Whatever is drawn on our bitmap will be drawn on Smart's canvas. The second function will reset the memory pointer. This will prevent leaks. It is recommended to use SmartGraphics for drawing on Smart if you are in-experienced. Smart_DrawBitmap and Smart_DrawTextMulti will do the same thing and is MUCH MUCH easier!
Note: The Automatic Drawing Example does the EXACT same thing as the Manual Drawing Example is it is much shorter and easier.
Powered by vBulletin® Version 4.2.1 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.