support for xml menus
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@1797 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: 5a16e9f9c49dde898cfc2a741822c20332fd00a5 Former-commit-id: 0485348bb434841aa6485c580d5b6a7a188fd285
This commit is contained in:
parent
11611490c0
commit
32c295c8be
1 changed files with 6 additions and 3 deletions
|
@ -566,10 +566,13 @@ rmShowStandings(void *prevHdle, tRmInfo *info, int start)
|
|||
const char *race = info->_reRaceName;
|
||||
|
||||
rmScrHdle = GfuiScreenCreate();
|
||||
sprintf(buf, "%s Standings", race);
|
||||
GfuiTitleCreate(rmScrHdle, buf, strlen(buf));
|
||||
|
||||
GfuiScreenAddBgImg(rmScrHdle, "data/img/splash-result.png");
|
||||
void *param = LoadMenuXML("standingsmenu.xml");
|
||||
CreateStaticControls(param,rmScrHdle);
|
||||
|
||||
sprintf(buf, "%s Standings", race);
|
||||
const int messId = CreateLabelControl(rmScrHdle, param, "racetitle");
|
||||
GfuiLabelSetText(rmScrHdle, messId, buf);
|
||||
|
||||
const int offset = 50;
|
||||
const int xRank = offset + 30;
|
||||
|
|
Loading…
Reference in a new issue