Thread: [Super-tux-devel] Menu code
Brought to you by:
wkendrick
From: Ricardo C. <ri...@ae...> - 2004-01-02 01:45:59
Attachments:
menu-cleanups.patch
|
Hey there, I am doing some hacks to do a dialog to ask the level width, song filename and all that stuff needed by the level editor. You can see a screenshot of it here: http://rpmcruz.planetaclix.pt/trash/supertux.png Please, Tobias, update the cvs with the patch I have sent to the level editor (regarding the movements) and I will then send you a patch on this (still not functional). I would also like someone to answer if it is currently possible to know the number of levels. And, if not, if someone could write something to do it. Maybe by checking file names... Anyway, I think that the menu should be written in a way that wouldn't need a function to every single menu. In a way, that you just needed to say the name of the entries and it would draw and manage them, returning the entry chosen. I have already done this in a C++ game of mine, I could try to port it... I have done some cleanup to the menu; removed some useless brackets, replaced a couple of ifs with switchs and putted the constants MENU_*_ITEM to really be the menu entries number. Ricardo -- Most public domain software is free, at least at first glance. |
From: Tobias <tob...@gm...> - 2004-01-02 02:22:16
|
Am Do, den 01.01.2004 schrieb Ricardo Cruz um 20:48: > Hey there, > > I am doing some hacks to do a dialog to ask the level width, song filename > and all that stuff needed by the level editor. > You can see a screenshot of it here: > http://rpmcruz.planetaclix.pt/trash/supertux.png > > Please, Tobias, update the cvs with the patch I have sent to the level editor > (regarding the movements) and I will then send you a patch on this (still not > functional). Ehrm, believe it or not ;) but it is already applied. Greetz... Tobias Gläßer |
From: Ricardo C. <ri...@ae...> - 2004-01-02 05:10:48
|
Sorry, but I am downloading the cvs and my changes regarding the leveledit= or=20 mouse movement and Dan's regarding holding the laptop are not there... Ricardo Em Sexta, 2 de Janeiro de 2004 08:22, o Tobias Gl=C3=A4=C3=9Fer escreveu: > Am Do, den 01.01.2004 schrieb Ricardo Cruz um 20:48: > > Hey there, > > > > I am doing some hacks to do a dialog to ask the level width, song > > filename and all that stuff needed by the level editor. > > You can see a screenshot of it here: > > http://rpmcruz.planetaclix.pt/trash/supertux.png > > > > Please, Tobias, update the cvs with the patch I have sent to the level > > editor (regarding the movements) and I will then send you a patch on th= is > > (still not functional). > > Ehrm, believe it or not ;) but it is already applied. > > Greetz... > > Tobias Gl=C3=A4=C3=9Fer > > =2D-=20 A pessimist is a man who has been compelled to live with an optimist. -- Elbert Hubbard |
From: offipso <of...@ab...> - 2004-01-02 05:22:20
|
Heh yes, I was wondering about that, although I don't know the workings of CVS. -Dan On Fri, 2004-01-02 at 00:14, Ricardo Cruz wrote: > Sorry, but I am downloading the cvs and my changes regarding the leveleditor > mouse movement and Dan's regarding holding the laptop are not there... > > Ricardo |
From: Bill K. <nb...@so...> - 2004-01-02 05:34:33
|
On Fri, Jan 02, 2004 at 12:27:25AM -0500, offipso wrote: > Heh yes, I was wondering about that, although I don't know the workings > of CVS. Last I saw, 'anonymous' CVS access would often provide files from longer ago than if you used your 'developer' account to log in and grab files. Has to do with some of the trouble they've been having with servers, I guess. I only do developer access, so I haven't noticed it, and am not 100% sure if the issue still exists. I tried to dig up some refs to the problem, but didn't find any very quickly, so I guess take my word for it (until someone comes up with a better idea ;) ) -bill! |
From: Ricardo C. <ri...@ae...> - 2004-01-02 05:37:41
|
You just need to type the following comands: cvs -d:pserver:ano...@cv...:/cvsroot/super-tux login cvs -z3 -d:pserver:ano...@cv...:/cvsroot/super-tux co supertux When asked for a password, just press Enter. It will download the cvs to a supertux directory. Cheers, Ricardo Em Sexta, 2 de Janeiro de 2004 05:27, o offipso escreveu: > Heh yes, I was wondering about that, although I don't know the workings > of CVS. > > -Dan > > On Fri, 2004-01-02 at 00:14, Ricardo Cruz wrote: > > Sorry, but I am downloading the cvs and my changes regarding the > > leveleditor mouse movement and Dan's regarding holding the laptop are not > > there... > > > > Ricardo > > ------------------------------------------------------- > This SF.net email is sponsored by: IBM Linux Tutorials. > Become an expert in LINUX or just sharpen your skills. Sign up for IBM's > Free Linux Tutorials. Learn everything from the bash shell to sys admin. > Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click > _______________________________________________ > Super-tux-devel mailing list > Sup...@li... > https://lists.sourceforge.net/lists/listinfo/super-tux-devel -- T-shirt of the Day: Head for the Mountains -- courtesy Anheuser-Busch beer Followup T-shirt of the Day (on the same scenic background): If you liked the mountains, head for the Busch! -- courtesy someone else |
From: offipso <of...@ab...> - 2004-01-02 05:43:45
|
Oh no, I know, remarkably, how to use anonymous access to get the CVS version of Super Tux. Rather what I meant was I didn't know if the reason the patches weren't applied was because of a lag in CVS of some sort. And as I don't have developer access to CVS, I'll have to wait until the problem--if there is one--rights itself, I suppose. -Dan Koestler On Fri, 2004-01-02 at 00:41, Ricardo Cruz wrote: > You just need to type the following comands: > cvs -d:pserver:ano...@cv...:/cvsroot/super-tux login > cvs -z3 -d:pserver:ano...@cv...:/cvsroot/super-tux co > supertux > > When asked for a password, just press Enter. > It will download the cvs to a supertux directory. > > Cheers, > Ricardo > > Em Sexta, 2 de Janeiro de 2004 05:27, o offipso escreveu: > > Heh yes, I was wondering about that, although I don't know the workings > > of CVS. > > > > -Dan > > > > On Fri, 2004-01-02 at 00:14, Ricardo Cruz wrote: > > > Sorry, but I am downloading the cvs and my changes regarding the > > > leveleditor mouse movement and Dan's regarding holding the laptop are not > > > there... > > > > > > Ricardo > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: IBM Linux Tutorials. > > Become an expert in LINUX or just sharpen your skills. Sign up for IBM's > > Free Linux Tutorials. Learn everything from the bash shell to sys admin. > > Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click > > _______________________________________________ > > Super-tux-devel mailing list > > Sup...@li... > > https://lists.sourceforge.net/lists/listinfo/super-tux-devel |