makescreenshot2() selection.
5 Attachment(s)
I'm trying to code a selection tool for using makescreenshot2(), so I don't have to keep using snipping tool to make images of tiles. I've got an idea of what needs to be done, but I'm not 100% sure if I'm getting the maths right.
Basically, the player left clicks to set the x and y and then they right click to find the difference between the first click and the last click, the script does the maths and takes a screen shot of the selected tiles, or that's what it's supposed to do. Attached below are the results of the script so far, and they're close to what I want, but obviously it's not working. PHP Code:
|
!this.capture; does nothing.
Your best bet would be to go through the array of tiles and draw them to a GuiDrawingPanel and save that image. When you're drawing specify "TILES" as the image and it will use the levels specified tileset/defs. |
Quote:
Quote:
Quote:
|
All times are GMT +2. The time now is 04:19 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.