// Build the menu void CMenuJoystick::Build() { // Make sure to call the base class CMenuBase::Build(); // m_pClientDE->CPrint("CMenuJoystick::Build called!"); // BLB TEMP CreateTitle("interface\\mainmenus\\options.pcx", IDS_MENU_TITLE_OPTIONS, m_pMainMenus->GetTitlePos()); SetOptionPos(m_pMainMenus->GetOptionsPos()); SetItemSpacing(5); SetScrollWrap(DFALSE); UseArrows(DTRUE, 300); m_bUseJoystick=g_pBloodClientShell->IsUseJoystick(); // check if the joystick has been disabled by the advanced menu console variables HCONSOLEVAR hVar = m_pClientDE->GetConsoleVar( "joystickdisable"); if (hVar != NULL) { if (m_pClientDE->GetVarValueFloat(hVar) == 1) { m_bUseJoystick = DFALSE; g_pBloodClientShell->SetUseJoystick(FALSE); } } // read in the JOYSTICK.CFG file m_pClientDE->ReadConfigFile ("joystick.cfg"); UpdateData(DFALSE); BuildAxisMenus(); // Update the enable/disable status of the controls UpdateEnable(); }
LTBOOL CFolderStats::Build() { CreateTitle(IDS_TITLE_PLAYER); UseArrows(LTTRUE); UseBack(LTTRUE,LTFALSE,LTTRUE); return CBaseFolder::Build(); }
LTBOOL CFolderIntel::Build() { LTIntPt header = g_pLayoutMgr->GetFolderCustomPoint((eFolderID)m_nFolderID,"HeaderPos"); CLTGUITextItemCtrl *pCtrl = CreateTextItem(IDS_INTEL_ITEMS,0,0,LTTRUE,GetMediumFont()); AddFixedControl(pCtrl,header,LTFALSE); UseArrows(LTTRUE); UseBack(LTTRUE,LTFALSE,LTTRUE); return CBaseSelectionFolder::Build(); }
LTBOOL CFolderViewInventory::Build() { CreateTitle(IDS_TITLE_INVENTORY); m_pFont = GetLargeFont(); if (g_pLayoutMgr->GetListFontSize((eFolderID)m_nFolderID) == 0) m_pFont = GetSmallFont(); else if (g_pLayoutMgr->GetListFontSize((eFolderID)m_nFolderID) == 1) m_pFont = GetMediumFont(); UseArrows(LTTRUE); UseBack(LTTRUE,LTFALSE,LTTRUE); LTBOOL success = CBaseSelectionFolder::Build(); return success; }