void CMenuCharacterFiles::Build()
{
	CMenuBase::Build();

	SetOptionPos(MENU_FILE_FIELD_X + MENU_FILE_TEXT_OFFSET_X, MENU_FILE_FIELD_Y + MENU_FILE_TEXT_OFFSET_Y);
	SetItemSpacing(0);
	SetScrollWrap(DFALSE);

	// Remove all of the menu options
	RemoveAllOptions();

	if(m_nAction == MENU_ACTION_SAVE)
	{
		m_hEdit = AddEditOption("Type the filename:", 0, m_pMainMenus->GetSmallFont(), 135, 16, DNULL);
		m_hEdit->SetText("Default");
	}
	else
		InitFileList("Players");

	m_hTransColor = m_pClientDE->SetupColor1(1.0f, 0.0f, 1.0f, DFALSE);

	// Delete the surface of the file field
	if(m_hFileField)
		{ m_pClientDE->DeleteSurface(m_hFileField); m_hFileField = 0; }

	m_hFileField = m_pClientDE->CreateSurfaceFromBitmap("interface/mainmenus/dialog.pcx");
}
Exemple #2
0
void CDHCPMessageHeader::InitialiseL()
/**
  * Initialise the message, wipe previous info
  * if the descriptor is being reused
  *
  * @internalTechnology
  */
	{
   RemoveAllOptions();
	TPtr8 ptr(iMsg->Des());
	ptr.FillZ(ptr.MaxLength());	
	ptr.SetLength(0);
	iRecord.InitialiseL(ptr);
	}
Exemple #3
0
// Termination
void CMenuBase::Term()
{
	// Remove all of the options
	RemoveAllOptions();

	// Note that the title surface is freed in CSharedResourceMgr

	// Free the title string
	if (m_hTitleString)
	{
		m_pClientDE->FreeString(m_hTitleString);
		m_hTitleString=DNULL;
	}

	m_bInit=FALSE;
}