Ejemplo n.º 1
0
void CInstanceInfoWindow::OnDoubleClickListItem()
{
	int itemIndex = ListBox_GetCurSel(mInstancesListBox);
	if (itemIndex != LB_ERR)
	{
		u32 id = ListBox_GetItemData(mInstancesListBox, itemIndex);
		EditorScene* scene = EditorScene::getInstance();
		EditorWindow* window = EditorWindow::getInstance();

		if (scene->SelectObject(id))
		{
			scene->FocusSelectedObject();
			window->ShowNodeInfo(id);
		}
		SetFocus(mParentHwnd);
	}
}
Ejemplo n.º 2
0
void CMeshNodePanel::MouseDoubleClicked(int sx, int sy)
{
	EditorScene* scene = EditorScene::getInstance();
	EditorWindow* window = EditorWindow::getInstance();
	if (!scene)
		return;

	E_MOUSE_STATE mouseState = window->GetMouseState();
	if (mouseState == EMS_PICKING)
	{
		int id = scene->SelectObject(sx, sy);
		if (id != -1)
		{
			scene->FocusSelectedObject();
			mCreateMeshNodeWindow.SelectListItem(id);
		}
	}
}