ÜÜÜÜÜÜ Ü ÜÛßßÛÛÛÛÛÛÜ Ü Û ÛÛÛÛÛÛß ÜÜÛÛÛÛÛÛÛÛÛÛÛÛÛß ÜÜÜÜÜÜÜÜÜÜ ßÜÛ Ü ÜÜÜÜÜÜÜÜÜ °ß ÞÛÛßÛÛ ÜÛÛßßß ßÛß ÜÜÛÛÛÛÛÛÛÛÛÛÛÛÛÜ ÛÛÛÛÜ ÜÛÛÛÛÛÛÛÛÛÛÛÜ ° ÛÛÝ ÞÛ ÛÛ ° ÛÛßß ÜÜÜÜÜÜÜÜÜ ßÛ Û Ü Ü Ûß Ü Û ÛÛ Û ßÛ ÛÛß Ûß ßÜÜ ÜÜÛÛß ÛÜ ßÝ Ü ÞÛÝ ÞÛ Û ÜÜÜÜÛÜÜÜÜÜ ÛÛ Û ßÜ ßÛÛ ßÛÛÛÛÛÛÛÛÜ ÛÛ Û ÛÜ ß° ßÛ ÛÛÜ Û ÜßßÜ Û ÛÛÛ °ßßßßßßßß²²Ü ÛÛ Ü Û ßÛÜ ° ÛÛ ßÜ ° ßÜ Û ÛÛÛ ßÛÛ ÞÛ ÜÛÛÛÜ Û ßÛÜ ÛÛÜ ßÜÜÜÜÜ ÜÜß ÛÛ ÛÛÛ Ü ÜÛÛ ÜÜ ÛÜ ° ÜÛÛ ßÛÛÜÜ Ü ÜÜÛÜ ßÛÛÜÜÜÜÜ ßß ÜÜÛÛÛ ÛÛ ÜÛ ß Üܲ²Û ß Û ß ÜÛÛ °ßßÛÜ ßßÛÛÛÛÛÛÛÛÛÛÜ ÛÛÛÛÛÛÛÛÛÛÛÛÛÛ ÜÛÛ ÛÛÛÛÛÛÛÛÛÛÛß ° ÝßÜÜÜÛÛßß ° kP°ßÛÛÛÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜ ÜÜ Ü Ü Ü Ü Ý ß ß ß Ü Üß ßÜÛ Ûßß Ûß± Ûß± Ûß± Ü ß ß Ü ß ÜßÜ Û ²ÜÜ ²ÜÛ ²ßÜ ²ßß <´EGiS CoRP TuToRiaL SeRiES ú úú-ÄÄÄÄÄÄÄÄÄÄÄÄ--úú ú ChaPTeR 2 ú úú-ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ--úú ú CReATiNG LiGHTBaR DRiVeN MeNuS By LoNE RuNNeR WARNING ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ WARNING : If you want to learn PPL from scratch, the AEGiS Tutorial series are not for you... the tutorial series are intended to sysops that already have some basis on PPL programming, it is only here to give you hints and ideas or simply to show you some different wayz to do different things... However, if you never tried to code somme PPE's but you know how to code in basic or pascal, you should have no problem to transfer your skills on PPL! Also, if you think that we don't have anything to learn you, don't read this and delete it from your disk... this file is not here to say "Hey man! look, this is the way it HAS to be done coz we are the best!"... we just want to give some hints to all the sysops that need it or that want to see others coding technics.. everybody code diferent... so there is allways something to learn from a source code... WHAT ARE THE TUTURIAL SERIES ? ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ Why using other group's PPE's when it is so easy to make your own ones...? This is after asking such a question to sysop (a good friend of mine), and after he answered "coz i cannot find the fucking way to do what i want!" that i decided to begin the tutorial series... In thoses tutorials, you will find the basics to begin PPE coding, and i hope you will begin to make some good releases and, why not, join the Aegis Corp crew ! ;) CHAPTER 2 ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ Let's look at the way to build some "nice-looking-easy-configurable- lightbar-driven-menus" ! ;) First we need a menu, let's draw it ! (see MENU. file) This is a typicall menu with colors (nice? ;)) and with a separation line in the middle. Once we have our menu, we will have to make it work, in fact, it is quite easy to make it run, let's look at our example : We can translate the ppe into this scheme : Display Menu Display selected option Endless loop--------------------------------: : : : :--If UP/DOWN was pressed : : : : :--- Erase selection : :--- Inc or dec selection : :--- Redisplay selection : :--If Enter was pressed : : : : :--- Do stuff : :--- Go back to beginning of menu : :--If ESC was pressed : : : : :--- Exit Endless loop : : :-------------------------------------------: End program Once we have this scheme in mind, we just have make the associated procedures : DispSel() -> Will display the selected option EraseSel() -> Will erase the selected option To make the PPE look "cleaner" we may erase the cursor as well when a key is waited... Have a look a AGSTUT2.PPS, This will give you a base PPS file that you will be able to modify to match your needs... To configure your PPE, you just have to edit the MENU. file, and the lightbars will automatically change to what you put. DISCLAIMER ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ Do what you want with this, you have the code so you keep control over the compilation... you may use this code in whatever you want, you may destroy it, burn it, eat it, smoke it, inject it, vomit it, kick it, suck it, piss it, shot it, print it with reversed lines, rename it to zip, arj, arc or whatever you want, try then to extract it, to pkzipfix it, you may also perform sort on it, uuencode, crypt it with PGP, play it on your GUS or even your SB, you may sometimes even compile it or modify it, you may do WHAT YOU WANT, but NO MEMBER OF AEGiS CoRP MAY BE RESPONSIBLE FOR ANY DAMAGE CAUSED BY THE USE OF THIS CODE OR IT'S MODIFICATIONS... Also you can use it into your own releases, but please, don't be lame, great us ;) FINAL WORDS ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ Hope this will help you in customizing your PCB... If you have any comment or suggection, or if you just want to chat about PPE's and PPL, or for any other reason, don't hesitate to write us to : aegis.corp#barnabo@sparkhq.fdn.org - LoNE RuNNeR - _ _ _ ___ ___/\ _________/\ /\_____________/\________________ ___ _ _ \/\______________ / _ \/ _________ / ______________________ / __________ / _/ __/ \ ____)___\/ \ \_/ \/\___________ \/_ \ \ \_ \ \_ \__ \_ \_ / / \______\ /____________/________________/_____________/____________/kP ú-------`------'---------------------------------------------------------ú