|
||||||||||||||||
Practice session |
Exercises
|
|||||||||||||||
Changing the properties of the windows | ||||||||
The objective of this practice session is to modify the properties of the two windows in an activity: the main one and the one for the game. | ||||||||
Start up JClic author, go to the menu File | Open File... and choose the project module1.jclic.zip which you have worked with in previous sessions and which is found in the folder C:\Programme Files\JClic\projects\module1 (in Windows), or in $home/JClic/projects/modulo1 in other systems. Confirm with OK. Go to the menu Activities. In the column on the left is the list of all the activities in the project. Select the activity info which you created in the previous practice session. Sometimes the column with the list is too narrow to be able to read all the names on it. To widen it hold the mouse on the extreme right hand side of the column. When a double arrow appears drag the mouse to the right until you have the width you need. Click on the menu Window. The windows automatically appear as the programme has made them i.e. grey and with the game window in the centre of the main window. In the central space, Preview, you get a preview of how the window changes as you make the modifications. In the lower part of the main window there are two sections: Main Window and Game Window, with the tools for modifying them. Start by modifying the aspect of the main window, which is the one that contains all the elements of the activity. By modifying the main window, you modify the background in the activity.
|
||||||||
The fourth section of the dropdown menu allows you to decide on the Opacity of the colour you have chosen.
Verify that the activity is functioning in the test window using the button and observe the effect of the modifications you have introduced. Close the test window so as to continue working with JClic author. Now you are going to modify the games window by changing the background colour, its position and the margin. The game window, like the main one can be filled in with a solid colour or a gradient, but cannot be filled in with an image. Click on the button Background colour in the game window and choose the colour with the value RGB: 204, 255, 102. Confirm with OK. Verify again that the activity is functioning using the button . Close the test window and go back to JClic author. Return to the game window and mark the option Centered. Continuing with the properties of the game window modify the value Margin to 26, and verify that the Border option is ticked. Verify that the activity is functioning in the test window using the button . Having arrived at this point, this is the aspect that the windows of the activity should have: Close the test window and save the project with the menu File | Save... select module1.jclic.zip and confirm with Save. Confirm again with Yes, if you are asked if you wish to replace the file. |
||||||||