void CUIMpChangeMapAdm::SendMessage(CUIWindow* pWnd, s16 msg, void* pData)
{
	if(LIST_ITEM_SELECT==msg && pWnd==lst)
		OnItemSelect();
	else if(BUTTON_CLICKED==msg)
	{
		if(pWnd==btn_ok)
			OnBtnOk();
	}
}
Example #2
0
void CAppDemoAppView::HandleListBoxEventL(CEikListBox* aListBox, TListBoxEvent aEventType)
	{
	if (aEventType == MEikListBoxObserver::EEventEnterKeyPressed)
		{
		if(aListBox)
			{
			TInt index = aListBox->CurrentItemIndex();
			OnItemSelect(index);
			}
		}
	}
Example #3
0
void CUIChangeMap::SendMessage(CUIWindow* pWnd, s16 msg, void* pData)
{
	if (LIST_ITEM_SELECT == msg && pWnd == lst)
	{		
		selected_item = *static_cast<u32*>(pData);
		OnItemSelect();
	}
	else if (BUTTON_CLICKED == msg)
	{
		if (pWnd == btn_ok)
			OnBtnOk();
		else if (pWnd == btn_cancel)
			OnBtnCancel();
	}
}
Example #4
0
void LevelEditor::UpdateItemList()
{
	ItemList.Clear();

	int row = LayerList.GetCurrentRow();
	if (row < 0) return;

	Layer& lay = _level->GetLayers()[row];

	for (int i = 0; i < lay.GetRooms().GetCount(); ++i)
	{
		ItemList.Add(i, lay.GetRooms()[i].GetName());
	}

	if (ItemList.GetRowCount())
		ItemList.SetCursor(0);

	OnItemSelect();
	UpdateMap(ItemList.GetRowCount() > 0);
}
Example #5
0
void LevelEditor::OnChangePoint()
{
	OnItemSelect();
	UpdateMap(true);
}