Ejemplo n.º 1
0
gboolean Func_Groups_button_press( GtkWidget *widget, GdkEventButton *event, gpointer data ){
	if ( event->button == 3 && event->type == GDK_BUTTON_PRESS ) {
		Entity_createFromSelection( "func_group", g_vector3_identity );
		ToggleActions = 0;
		return TRUE;
	}
	return FALSE;
}
Ejemplo n.º 2
0
	void EntityClassChooser::addEntity (EntityClassChooser* self)
	{
		// Create the entity and hide the dialog. We might get an EntityCreationException
		// if the wrong number of brushes is selected.
		try {
			std::string name = gtkutil::TreeModel::getSelectedString(self->_selection, 0);
			Entity_createFromSelection(name, self->_lastPoint);
			gtk_widget_hide(self->_widget);
		} catch (EntityCreationException &e) {
			gtkutil::errorDialog(e.what());
		}
	}
Ejemplo n.º 3
0
void Entity_ungroupSelectedPrimitives(){
	Entity_createFromSelection( "worldspawn", g_vector3_identity );
}