At long last I have managed to get another post written. I think this has turned out to be one of the longest in the tutorial so far … The topic this time enabling the user to select which Player they want to be. This includes saving and loading basic Player details so that you can select the Player you were last time you played. Some basic customization is provided too – name and an avatar. This part can be found at stormtek.geek.nz/rts_tutorial/part17.php. Enjoy!
P.S. While writing this part I fixed a small bug with the mouse cursor. We are using MouseCursorSkin to provide basic styling for the cursor (although the actual image being used depends on the current cursor state). I have set the border, padding, and margin for a Label to be 0. This ensures that the image we are using is displayed as large as possible.