/* ----------------------------------------------- GTASC - GTA adaptation for TI Calculators ----------------------------------------------- Programmed by : Olivier SANGALA Version : 1.2 License : Free under GNU General Public License ( see "gpl.txt" ) Release Date : 05/01/2007 Platform : TI89/TI92+/V200 Website : http://olivier.sangala.free.fr Email : olivier_sangala@hotmail.com ---------- License ---------- Copyright (C) 2002-2007 Olivier SANGALA This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ //----------------------------------------------------------------------------- //#define DrawStrCenter(x,y,s,a) (DrawStr((LCD_WIDTH-6*strlen(s))/2,y,s,a)) //-------------------------------------------------------------------------- typedef struct { char Caption[32]; } TItem; typedef struct { int Index; int ItemCounter; char Title[32]; TItem Items[20]; } TMenu; //-------------------------------------------------------------------------- void DrawStrCenter(int x,int y,char*s); void MenuNew2(void); void MenuAddTitle(char * str); void MenuAddItem(char * str); void MenuDo(void); //--------------------------------------------------------------------------