#########################
#
# Dialog helper by Infernal_Demon
#
# MLC team - MultiLanguageCoders 
#
#########################

Yeahhiehhh

#-- Intro --#
	 This is a simple addon for scripters that like dialogs but hate to make the events code or are tired of doing them (like me), or for the scripter that likes to keep there ids in a sequencial order. 
	 With this addon you can create ids events and organize the dialog code in milisecond.


#-- How to load --# 
	 To load this addon you simply put the dialoghelper.mrc were you want and then on your mirc command line you do:
		
		load -rs path\dialoghelper.mrc

	 If its on your mirc directory and not in any folder you wont need the path, just do

		load -rs dialoghelper.mrc

	 A dialog should appear telling you that the loaded addon has some initialization commands, you should press "Yes"


#-- Features --#
	 Everybodys favourite part!!!
	 Ok, the simplest function in this addon is the Id generator. 

	There is a new feature, which is a little combo box above the tabs that has all the dialogs in your dialogs. This will make it easier to use this addon as you just select the dialog you want and click on the load button and the dialog code is loaded in to the edit. (NOTE: you dont need all of the dialog code to make this work, you can just past some lines and it will work just fine)
	The info button just displays some usefull information, try it.

	
## Id generator ##
	What is this?
	The id generator is just what it says. You put a number in the first edit and another in the second edit (should be bigger than the one in the first edit) and then you press the " > " button and voila, you have a list of ids separated by commas (",").

	Example: 
	 First edit: 1
	 Second edit:30
	 Result: 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30
	
	 I also added a button called "Clip". This button just copies the result to the clipboard, so you dont even have to select the result and press ctrl+c. Nice huh?

--The features you want to know ;)
## Id converter ##
	Here you just paste the code you want in the "Raw code" edit (cant paste it anywere else) and the you place an id number to star on the "Star at id:" edit.
	After you press the "Change ids" button, all of the ids in the "Raw code" will be transfered to the "Formated code" edit were the code will have its new id.
	You will notice the button "Clipboard" this just does what it says and is available for this feature and for the Event create feature (which Ill discuss in just a sec).
	Be careful with the clear button as it will also clear the code in the "Raw code", every time you click on the "Change ids" button the text in the "Formated code" edit will be cleared, so dont worry about that.
	The "Changed ids" list, just gives you a list of all the ids in the format:
		Old id - New id
	So you wont loose track of which was which.
	A nice little thing I thought about just before I was going to release this addon was the "^" button, which copies the code in the "Formated code" edit into the "Raw code". "Why is this a good thing?" you might ask, well when you change tabs all the code in the "Formated code" edit will be lost, so if you want to create events for your new formated code, this will be a very good option.
	In the menus youll have two options, which explain themselves (or at least I hope).

## Event creator ##
	This is a great feature, which helps you alot!! 
	With this, you wont loose time writting the the dialog events
	This will only be useful if you are like me and have big dialogs. It will create the dialog event even if it a small dialog :P
	In this feature you have lots of options, acessed by the menus.
	
	Devent options - 
		Create devents now: This will give you a list of all the possible devents like so:
			on *:dialog:<dname>:*:*: {
				if ($devent == init) { }
				elseif ($devent == sclick) { }
				elseif ($devent == edit) { }
				elseif ($devent == mouse) { }
				elseif ($devent == menu) { }
				elseif ($devent == dclick) { }
				elseif ($devent == close) { }
			}		
		
		Be careful using this option as it will clear all the code in the "Events code" edit

	Include devent -
		By deafult the event creator engine will not include the devents it will only produce the ids code.
		ex: if ($did == 24) { }
		Withi this option enabled, it will add the "if ($devent == dvent)" to the code.

	Write in numeric order - 
		Does what it says (might not work well if you use it with the next option enabled)

	Separate by commands - 
		This will organize the code by putting all the buttons, edits, etc, together.

	Put comments -
		Adds the control name and its value

		Ex.:
			button "D&one", 24, 582 416 49 21, default ok 
			will come out as
			;"D&one" - button
			if ($did == 24) { }

	Extra option are self explanatory so no point in talking about them :P

	Excludes - 
		Exclude the selected control



Guess thats all, hope it helped you understand this addon and the help it is going to provide.

Author: Infernal_Demon

Addon: Dialog helper

Where you can find me: 
	Ptnet on channels .... (just "/whois Infernal_Demon" and you will know)

Thanks to:
	See the about dialog

Bug reports or improvements:
	Send me a msg/memo on ptnet (I have no mail now)
- EOF -