Exemple #1
0
int CMMDesktop::PlayLevel(int restart) {
	CGUIListItem *li = levBrowser->GetSelectedItem();
	if (li) {
		return PlayLevel(li->GetData(), restart);
	}
	return 0;
}
Exemple #2
0
void CMMDesktop::EditLevel()
{
	mainGUI->SetEditorLevelInit(0);
	CGUIListItem *li = levBrowser->GetSelectedItem();
	if (li) {
		CMMDirFile *file = li->GetData();
		if (file->Tags & eMMLTeditable) {
			mainGUI->SetEditorLevelInit(file->LevelPath);
			eventServer->SendPriorityEvent(ECommand,GetID(),mainGUI->handler->GetID(),2);
		}
	}
	
//	eventServer->SendPriorityEvent(ECommand,GetID(),mainGUI->handler->GetID(),2);

}
Exemple #3
0
void* CGUIGridList_Impl::GetItemData ( int iRow, int hColumn )
{
    CGUIListItem* pItem = GetItem ( iRow, hColumn );

    return pItem ? pItem->GetData () : NULL;
}