Okay. Before we dive deep into Window Editor, let's say, that there're still a few things which we need to tweak as this tool is very young. One of the things which can seem impractical is the absence of the default blank template when you add new window through Project Manager. This is an easy fix, so download this file: blank.zip and unpack it into your WME dev kit directory to the folder templates\window (so you have there now two folders - question and blank).
Okay. Now when we've done our homework, let's return to our task and add a new window in the project manager to the folder interface. Right click the folder and choose Add Window:
And select template blank plus name the window Test:
Now see, that two files were added to the tree - Test.window and Test.script. It's actually the contents of the template folder, more on that in the templates chapter. Double click on the test.window to launch our new tool - Window Edit.
In the section 1 we can see the tree filled with components of our brand new window. As soon as we select one of the component, our property grid at the section 2 updates and we see the parameters which influence the selected component. Let's hilight now our Test (Blank) item and see what can we do to our window:
1. General
2. Behavior
3. Layout
4. Appearance
Okay. Time for spicing out our little window a little bit:
Click on the Add Button icon in the section 4 and then click-drag the button on the window to adjust its size. You should get the following result:
If we have this newly created button hilighted, our property grid changed and we can easily see, that we can set some extra parameters to it (I'm mentioning only those which weren't already mentioned above):
Pressed - means that the button's default state is pressed down.
CenterImage - means that you can assign the image to the button and then center it in the buttons region.
PixelPerfect - is the same as with the sprite. If it's true, the mouseclick is accepted only on the active parts of the image (non transparent).
Focusable - means that it's possible to set focus to the button.
WORK IN PROGRESS…