By HeliJunkie
So let us open a text editor (for example notepad.exe) and start to define our first dialog. For each dialog we have to define a class. For each class, we have to use a special syntax:
So we will make a Dialog with the name "SampleDialog". So we write to our notepad:
We must place all definitions for our dialog between the "{" and the "};". As you can see, I will give all new/changed text a blue color.
If we want to add comments to our file, we use can use "//". And it's not important where it is within a line. It can be at the beginning of a line. So let us add a comment:
Each dialog has a set of properties it can/must have. Here is a list:
Dialog-Class Properties
Name |
Type |
Remark |
idd | integer | A unique number for our dialog. If you don't need direct access to it, use "-1" |
duration | integer | How long this dialog will be displayed (only for non interactive dialogs) |
movingEnabled | boolean | Specify if the player can move while the dialog is displayed.(Only for non interactive dialogs. Interactive dialogs always have false.) |
controlsBackground | array | A string array of control class names to use for background controls. |
controls | array | A string array of control class names to use. |
objects | array | ??? |
So let us set the main properties to our sample:
So we have now created our dialog class skeleton. Let us proceed with adding a control to our sample dialog.