Gamestudio Links
Zorro Links
Newest Posts
WFO Training with parallel cores Zorro64
by Martin_HH. 02/23/26 10:49
ZorroGPT
by TipmyPip. 02/21/26 19:15
Camera always moves upwards?
by clonman. 02/21/26 09:29
Zorro version 3.0 prerelease!
by TipmyPip. 02/20/26 13:22
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 02/19/26 13:22
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
3 registered members (MonsterX, Martin_HH, TipmyPip), 6,282 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
alx, ApprenticeInMuc, PatrickH90, USER0328, Sfrdragon
19199 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
whats the best way to code a menu? #190719
03/30/08 17:41
03/30/08 17:41
Joined: Jan 2007
Posts: 1,619
Germany
Scorpion Offline OP
Serious User
Scorpion  Offline OP
Serious User

Joined: Jan 2007
Posts: 1,619
Germany
title says all.
Can you tell me what you think is the best way in making a menu?

The code should not affect anything but the menue-code. It should be good structures and I would like to use structs for it. And ofc its important that it's easy to make changes and add new things to it without to change the whole code and every single function.

I hope you know what I mean. It shall be an easy to handle and changeble menu.


This is no code request. I just want to collect ideas on how you create and organize your menu codes, so that I can see whats the best and cleanset way to do it \:\)

Thats really important to me and I am happy about every reply
Scorpion

Re: whats the best way to code a menu? [Re: Scorpion] #199825
04/01/08 13:15
04/01/08 13:15
Joined: Oct 2002
Posts: 799
Germany->Bavaria->Nuremberg
C
Christian__A Offline
User
Christian__A  Offline
User
C

Joined: Oct 2002
Posts: 799
Germany->Bavaria->Nuremberg
As i am a big fan of XML, i am planing to use XML-files to define menus. I just would parse them and create the elements that are defined in it (Buttons, Text, Bmaps...) . You can link the menus together with simple "scripts" - But there will still be some hard-coding, like changing the settings.
Building a XML-parser for Lite-C would be some work, but you could also use simple .TXT-files. (I'm using TinyXML in C++)

Last edited by Christian__A; 04/01/08 13:16.

MfG, Christian__A. Visit my Site: www.chris-a.de


Re: whats the best way to code a menu? [Re: Christian__A] #199833
04/01/08 13:24
04/01/08 13:24
Joined: Jul 2001
Posts: 6,904
H
HeelX Offline
Senior Expert
HeelX  Offline
Senior Expert
H

Joined: Jul 2001
Posts: 6,904
I am currently designing the whole game<->dialogue stucture of Razor for my valentine and use a statechart for this to get the idea what I have got and in which subsystem certain thinks and modes are contained in. Later I will hardcode it in terms of the dialogue links and the menu behaviour and so on.

Re: whats the best way to code a menu? [Re: HeelX] #199849
04/01/08 14:38
04/01/08 14:38
Joined: Jul 2007
Posts: 959
nl
F
flits Offline
User
flits  Offline
User
F

Joined: Jul 2007
Posts: 959
nl
i am using texts wite invisble button above it it runs white 3 functions

its just how you want your buttons if at all
and what stuff it does need to do only start new game and load/save quit is easy

but making change volume/brightnis/lod/resoultion/brandwiedth/viewdistance/
shadersettings/keys/yostick/gamepad/mouse_sensive/enz.
is diffulcter

if you change resolution you need to change you bmap to not realy a big problem but it cost a memmory

and one bmap save's al lot more hardisk then 50 buttons but 50 buttons ore more looks nicer


"empty"

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1