User talk:Sog1970/God stuff
Fade out/fade in is a bastard of a different nature. Tropical cyclone is the closest I can come to something like that - or at least using the same technique of using an image to mimic text. Microsoft Knowledge Base also does something similar to mimic pop-up boxes.
The other issue is the hold aspect. I'm trying to set this up that pressing 1 on the phone pad - as well as pressing health - will take you to that page. Maybe instead of hold something along the lines of "Press the hash key" or "Press 0".
I'm still playing with it, and I'm also still working on this page, so you'll have to be a little patient with me. (I'm ignoring CW completely - Guildy is going to take my mechanic away!) Nominally Humane! some time Tuesday, 13:22, Jul 6 2010 UTC
I'm not sure that hold has to do anything clever. I've no idea what to do with the operator. Possibly, we should just link zero to a completely blank screen. that's what always seems to happen to me when i'm in a phone queue. Take your time. There is absolutely no way i could finish this at all like I envisaged it on my own. Plus, I haven't finished my bit at all. --Sog1970 14:17, July 6, 2010 (UTC)
- Okay, functionality has been put in place here. I've done a cut and paste of the stuff frpom this page but did it with the text rather than the code, but it's just so you have an idea how it works.
- 1 - 9 acts as though you've pressed the buttons 1 through to 9. I haven't set it to not allow these to be pressed - it's possible but a lot more complex - but instead I've added in a catch all so if you press the wrong button you get to the angry God message. I'm working on the fly so we can improve that later.
- 0 acts as though you've pressed 0, but it won't work from the main menu - in fact that will just repeat the main menu again. Adding in something like "Press 0 to hear these instructions again" will make sense. Of course, later on you can add functionality to this, so that there is an option for 0 ubder any of the sub menus
- Star key * will take you back to the main menu at any time
- Hash or pound key # will take you back one step in the menu.
- Now the trick to all this is in that offset number which will appear in the url. with all the number buttons it will work that when you press a number if will add a digit to the right hand side of the offset number, which we can then use to manipulate stuff. So if you press 1 that will change to 1. If you press 1 and then 2 that will change to 1 and then 12. Make sense?
- So to code the sub screens it's all in that switch statement at the bottom. That looks something like this
{{#switch: {{CGI}} | 0 = Thank you for calling... | 1 = Welcome to Healthy Humanity... | 11 = You have selected male health-issues...
- and so on. So to add a sub menu all you need is to add the
| 111 =
and that will be what comes up when you've pressed 1 a third time. - I hope that makes sense and is easy enough to code. With your fade in and fade out and hold for something I was thinking "Press 0 to hold" which would take you to your next sub menu, and I have a trick in mind for the fade in that I have yet to get started on - but it basically means that I'm creating an image to mimic text. It's not a pretty way of doing things, but it's a trick that worked in Microsoft Knowledge Base and Game:Alone in the dark, so it will work again. Nominally Humane! some time Sunday, 22:13, Jul 11 2010 UTC
I will read this again when sober. thanks for the help so far. Hope it'll be worth it--Sog1970 22:35, July 11, 2010 (UTC)