SCI Programming.com
Welcome, Guest. Please login or register.
December 18, 2017, 09:52:02 AM
Home  >  Tutorials  >  Chapter 10: Point and Click Menu Views
Chapter 10: Point and Click Menu Views

This chapter explains what all views we are currently going to need in order to get this whole point and click menu off the ground. Basicly, this time all we are really going to need are the menu buttons. I'm not going to go into a whole lot of detail, if you've done Chapter 4 of the point and click inventory, you should pretty much know what to expect. So here goes.

Our Point and Click Menu Views (View950)

First off, we are going to need our "action" menu buttons which will allow us to actually interact with our rooms. This time around though, I am not going to ask you to make any additional inventory buttons, I have thought about it and I have decided it would be too much of a drain on our memory resources to continuously check and update a current item block. So, there's a few dozen images you won't have to draw. Instead I just have the backpack which simply highlights if your cursor is set to an item. Besides that, we are also going to need the rest of our action buttons both highlighted and unhighlighted. I have placed the whole slew of them in loop 0 of view 950.

  • Cel 0 ... Walk ... Unhighlighted
  • Cel 1 ... Walk ... Highlighted
  • Cel 2 ... Talk ... Unhighlighted
  • Cel 3 ... Talk ... Highlighted
  • Cel 4 ... Hand ... Unhighlighted
  • Cel 5 ... Hand ... Highlighted
  • Cel 6 ... Look ... Unhighlighted
  • Cel 7 ... Look ... Highlighted
  • Cel 8 ... Inventory ... Unhighlighted
  • Cel 9 ... Inventory ... Highlighted

Next we need our "system" menu buttons which are used to handle things like saving or restoring a game, restarting, changing the speed and volume, or quitting. The good news is that these do not need to highlight, so there are only half as many of them.

  • Cel 0 ... Levels (speed & volume)
  • Cel 1 ... Restart
  • Cel 2 ... Restore Game
  • Cel 3 ... Save Game
  • Cel 4 ... Quit

This is going much faster than last time. Now I'm not entirely sure why I placed these next two views in different loops, I think I was going to try to add some animation to them but never got around to it, that is something that I will leave for you to do if you want. Anyway, the cels in loop 2 and 3 are the menu's header and footer.


Loop 2, cel 0


Loop 3, cel 0


Which brings us to the final loop of our point and click menu bar. Basicly these little buggers are indicators and buttons which allow us to quickly switch between our "action" and "system" menus as well as access our help dialog.

    Loop 8            
  • Cel 0 ... Action ... Unhighlighted
  • Cel 1 ... Action ... Highlighted
  • Cel 2 ... System ... Unhighlighted
  • Cel 3 ... System ... Highlighted
  • Cel 4 ... Help ... Unhighlighted

That's it, all of the views we need to get us going.

That sums up the Point and Click Menu Views, Moving Right Along!
<< Prev Back to Tutorials Next >>

The SCI Programming Community
Copyright © 2007 - 2017, All Rights Reserved.