Exemplo n.º 1
0
int CMMDesktop::PlayLevel(int restart) {
	CGUIListItem *li = levBrowser->GetSelectedItem();
	if (li) {
		return PlayLevel(li->GetData(), restart);
	}
	return 0;
}
Exemplo n.º 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);

}
Exemplo n.º 3
0
void* CGUIGridList_Impl::GetItemData ( int iRow, int hColumn )
{
    CGUIListItem* pItem = GetItem ( iRow, hColumn );

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