Display current driver name in the title of the Car Select menu
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@2709 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: 9ebc9fcd88bf38bdd33fb03ccbd3244465868618 Former-commit-id: 0cbf0058e709b78617ae7fb64db02f1bc249c50f
This commit is contained in:
parent
c7b85d4d47
commit
8146f151f5
1 changed files with 3 additions and 4 deletions
|
@ -49,16 +49,14 @@ void RmCarSelectMenu::onActivateCB(void *pCarSelectMenu)
|
|||
const char* pszCurSkinName =
|
||||
pMenu->getDriver()->skinName ? pMenu->getDriver()->skinName : rmdStdSkinName;
|
||||
|
||||
// TODO.
|
||||
// Load specs from the current car XML file.
|
||||
|
||||
// Initialize the GUI contents.
|
||||
GfuiLabelSetText(pMenu->GetMenuHandle(), pMenu->GetDynamicControlId("drivernamelabel"),
|
||||
pMenu->getDriver()->name);
|
||||
pMenu->resetCarCategoryComboBox(pCurCar->strCategoryName);
|
||||
pMenu->resetCarModelComboBox(pCurCar->strCategoryName, pCurCar->strRealName);
|
||||
pMenu->resetCarDataSheet(pCurCar->strName);
|
||||
pMenu->resetCarSkinComboBox(pCurCar->strRealName, pszCurSkinName);
|
||||
pMenu->resetCarPreviewImage(pszCurSkinName);
|
||||
// TODO : display car specs values (progress bars and raw figures).
|
||||
}
|
||||
|
||||
const CarData* RmCarSelectMenu::getSelectedCarModel() const
|
||||
|
@ -354,6 +352,7 @@ bool RmCarSelectMenu::Initialize()
|
|||
|
||||
CreateStaticControls();
|
||||
|
||||
CreateLabelControl("drivernamelabel");
|
||||
CreateComboboxControl("categorycombo", this, onChangeCategory);
|
||||
CreateComboboxControl("modelcombo", this, onChangeModel);
|
||||
CreateComboboxControl("skincombo", this, onChangeSkin);
|
||||
|
|
Loading…
Reference in a new issue