02.01.2010, 03:31
(
Последний раз редактировалось Zamaroht; 11.01.2011 в 01:27.
)
Zamaroht's Textdraw Editor v1.0
Click here for the old version (0.6)(Versiуn en Espaсol - Spanish version: http://forum.sa-mp.com/index.php?topic=143694.0)
• What does this do?
This is a script made to help other gamemodes' developers to do their textdraws. Getting a textdraw exactly how we want by just looking to some code is just too complicated and time-consuming, so by using this filterscript you can just design a collection of textdraws in-game and export all the data you need to a file. Since 1.0, you can now also create a filterscript from in-game, which after you compile runs straight away, without further modifications.
_________________________________________________
• Introduction:
This is a whole new and scratch made version of the previous Textdraw Editor 0.6. Since it has been fully recoded and not a single piece of code of 0.6 was reused, I supposed that creating a new topic would be appropriate. It has a lot of improvements, listed below.
_________________________________________________
• Features:
Here is a list of the most important features that the script provides. Those marked with red color weren't present in the previous versions.
- Support for multiple textdraws at the same time.
- Close-to-none commands, user friendly interface.
- You can now see a preview of each textdraw in the textdraw selection menu, for easier recognition.
- Most of all the interface is done with dialogs.
- Movements and resizes can be done with the arrow keys.
- You can now duplicate textdraws, to do GUIs faster and more precisely.
- Projects support: You can create new projects, load them, delete them, and export them to a file. Each one with its own Textdraws.
- Projects save automatly after each edition, you don't have to worry about losing your creation.
- Appart from the classic export mode, you can create self-working filterscripts from inside the game. You just have to compile them and run them!
- Support for custom colors added. You can use hex custom colors, or use the color combinator to choose the amount of each color you want.
- Improved stability.
• Screenshots: (Click to enlarge)
http://zamaroht.com.ar/textdraw/images/sa-mp-135.png
http://zamaroht.com.ar/textdraw/images/sa-mp-136.png
http://zamaroht.com.ar/textdraw/images/sa-mp-137.png
http://zamaroht.com.ar/textdraw/images/sa-mp-138.png
http://zamaroht.com.ar/textdraw/images/sa-mp-139.png
http://zamaroht.com.ar/textdraw/images/sa-mp-141.png
http://zamaroht.com.ar/textdraw/images/sa-mp-142.png
_________________________________________________
• Credits:
- Nicolбs 'Zamaroht' Laurito.
- dini and some dutils functions were used, by Dracoblue.
_________________________________________________
• Disclaimer:
- You don't have to include me in your credits if you used this filterscript to create your textdraws.
- You hold full rights over the exported files and filterscripts created by this filterscript.
- You can re-distribute the main filtescript as you wish, but ALWAYS keeping the name of the author and a link back to http://forum.sa-mp.com/index.php?topic=143025.0 attached to the mean of distrubution. Even if you create a modification based on this filterscript, the same terms apply.
_________________________________________________
• Important:
- Remember, to be able to use your creations, you have to select the Export option from the menu. The .tde and .lst files are used internally by the Editor, and are not meant to be modified or used by humans.
• Download:
AMX compiled and ready-to-use file:
Mirror attached at the end of the post
(RC1: 4 downloads)
(RC2: 3519 downloads)
Source code:
Mirror attached at the end of the post
(RC1: 102 downloads)
(RC2: 3643 downloads)
_________________________________________________
• Changelog:
Код:
v1.0: (10/1/2011) - Changed the dialog IDs to the 1574-1605 range. v1.0 RC2: (3/1/2010) - Fixed a bug where the textdraw strings wouldn't load properly from a .tde file. - Fixed a syntax bug where "Outline shadow 6" would show instead of "Outline shadow 5". - Updated some outdated comments. v1.0 RC1: (1/1/2010) - First release.
• Notes:
- It is advised to run this script in a server with a blank script (like lvdm) and without any other filterscript. Otherwise dialogs from different scripts could mix up.
- Even although multiplayer use is partially included, it's best stable when being used by just a single person.
- The custom hex code system for colors works with the following formats: 0xFFFFFFFF, #FFFFFFFF, FFFFFFFF. If no alpha channel is specified, it will be FF by default.
- To run a exported filterscript, you have to open it with pawno from inside the scriptfiles folder, compile it, copy the .amx to the filterscripts folder, and add the required data in server.cfg. Look here for more info.
_________________________________________________
Feel free to leave either good or bad feedback and share your thoughts, they are always welcome