Overview
This is a Version2 tool for dynamic mixing of background masks in AMS to give the illusion of an extending 'Draw or Draws' on the side of the main program window. file size 24kb.It can be set up for multiple draws extending to many levels.
Info on the orig version/concept can be found here: http://www.indigorose.com/forums/sho...&highlight=dmt
This version is using Direct Memory Access to perform the pixel operations and is at least 13x faster than V1
Using the DMT
This is a Command Line Tool so its an .EXE file that has to have 3 bits of data passed to it to mix the masks. Note : all filenames have to be passed as 'short filenames' to avoid extra spaces in the command line.
Syntax
[MainPic] :A mask image of the program window with all the draws openCode:[MainPic] [Action] [Draw]
[Action] : Either 'Add' or 'Sub' to add or remove a draw from the main Mask image
[Draw] : A Mask image of a draw in the open position
Example:
Global Functions example:Code:CommandLine = MainPic.." ".."Sub".." "..ADrawPicLocation; File.Run("AutoPlay\\Prg\\DMT.exe", CommandLine, "", SW_SHOWNORMAL, true);
DownloadCode:function OpenDraw(ADrawPicLocation) RunDMT (MainPic.." ".."Add".." "..ADrawPicLocation); Audio.Load(CHANNEL_NARRATION, "AutoPlay\\Audio\\Keys.ogg", true, false); return true end ---------------------------------------------------------------------------------------------------------------- function ShutDraw(ADrawPicLocation) RunDMT (MainPic.." ".."Sub".." "..ADrawPicLocation); Audio.Load(CHANNEL_NARRATION, "AutoPlay\\Audio\\Knocker.ogg", true, false); return false end
This prog is free for you to use in your own projects. A small note of credit would be appeciated in anything you use it for.
Heres a quick example of how to use the DMT, its a demo prog with a few random functions in it.
Download DMT_Clueless.rar
Next ill be converting this and whole bunch of other image/picture functions into a DLL file which i that I may charge a small fee for.


Reply With Quote
. You dont have to run this every time you want to open the draws you just run it one time for each draw you have to find the magic numbers and then use them in your code -
