ported xml menu changes from sdl-port
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@1685 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: c23115bb6420ac326b1765e8d48cc6765a3bdbf6 Former-commit-id: 3489749a43870c086d6adf822d445bfe336ad6f5
This commit is contained in:
parent
38e461077b
commit
7aef2f5330
1 changed files with 14 additions and 26 deletions
|
@ -262,41 +262,29 @@ ReRacemanMenu(void)
|
|||
NULL, (tfuiCallback)NULL,
|
||||
1);
|
||||
|
||||
str = GfParmGetStr(params, RM_SECT_HEADER, RM_ATTR_BGIMG, 0);
|
||||
if (str) {
|
||||
GfuiScreenAddBgImg(racemanMenuHdle, str);
|
||||
}
|
||||
|
||||
GfuiMenuDefaultKeysAdd(racemanMenuHdle);
|
||||
|
||||
void *param2 = LoadMenuXML("racechoicemenu.xml");
|
||||
CreateStaticControls(param2,racemanMenuHdle);
|
||||
|
||||
|
||||
str = GfParmGetStr(params, RM_SECT_HEADER, RM_ATTR_NAME, 0);
|
||||
if (str) {
|
||||
GfuiTitleCreate(racemanMenuHdle, str, strlen(str));
|
||||
int id = CreateLabelControl(racemanMenuHdle,param2,"title");
|
||||
GfuiLabelSetText(racemanMenuHdle,id,str);
|
||||
}
|
||||
|
||||
CreateButtonControl(racemanMenuHdle,param2,"newrace",NULL,ReStartNewRace);
|
||||
CreateButtonControl(racemanMenuHdle,param2,"configurerace",NULL,reConfigureMenu);
|
||||
CreateButtonControl(racemanMenuHdle,param2,"configureplayers",DriverMenuInit(racemanMenuHdle),GfuiScreenActivate);
|
||||
|
||||
GfuiMenuButtonCreate(racemanMenuHdle,
|
||||
"New Race", "Start a New Race",
|
||||
NULL, ReStartNewRace);
|
||||
CreateButtonControl(racemanMenuHdle,param2,"backtomain",ReInfo->_reMenuScreen,GfuiScreenActivate);
|
||||
|
||||
GfuiMenuButtonCreate(racemanMenuHdle,
|
||||
"Configure Race", "Configure The Race",
|
||||
NULL, reConfigureMenu);
|
||||
|
||||
GfuiMenuButtonCreate(racemanMenuHdle,
|
||||
"Configure Players", "Players configuration menu",
|
||||
NULL, rePlayerConfig);
|
||||
|
||||
if (GfParmGetEltNb(params, RM_SECT_TRACKS) > 1) {
|
||||
GfuiMenuButtonCreate(racemanMenuHdle,
|
||||
"Load", "Load a Previously Saved Game",
|
||||
racemanMenuHdle, reLoadMenu);
|
||||
CreateButtonControl(racemanMenuHdle,param2,"load",racemanMenuHdle,reLoadMenu);
|
||||
}
|
||||
|
||||
GfuiMenuBackQuitButtonCreate(racemanMenuHdle,
|
||||
"Back to Main", "Return to previous Menu",
|
||||
ReInfo->_reMenuScreen, GfuiScreenActivate);
|
||||
|
||||
GfuiScreenActivate(racemanMenuHdle);
|
||||
|
||||
return RM_ASYNC | RM_NEXT_STEP;
|
||||
|
|
Loading…
Reference in a new issue