You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-22 15:06:45 +00:00
Bring that Whole New World to the Old Continent too
Applies the clang-format style to the 2.1 branch as done for master in
5dbf1809c6.
This commit is contained in:
@@ -29,8 +29,8 @@
|
||||
#ifndef PARTICLES_EDITOR_PLUGIN_H
|
||||
#define PARTICLES_EDITOR_PLUGIN_H
|
||||
|
||||
#include "editor/editor_plugin.h"
|
||||
#include "editor/editor_node.h"
|
||||
#include "editor/editor_plugin.h"
|
||||
#include "scene/3d/particles.h"
|
||||
#include "scene/gui/spin_box.h"
|
||||
|
||||
@@ -40,14 +40,13 @@
|
||||
|
||||
class ParticlesEditor : public Control {
|
||||
|
||||
OBJ_TYPE(ParticlesEditor, Control );
|
||||
OBJ_TYPE(ParticlesEditor, Control);
|
||||
|
||||
Panel *panel;
|
||||
MenuButton *options;
|
||||
HBoxContainer *particles_editor_hb;
|
||||
Particles *node;
|
||||
|
||||
|
||||
EditorFileDialog *emission_file_dialog;
|
||||
SceneTreeDialog *emission_tree_dialog;
|
||||
|
||||
@@ -57,9 +56,6 @@ class ParticlesEditor : public Control {
|
||||
SpinBox *emission_amount;
|
||||
OptionButton *emission_fill;
|
||||
|
||||
|
||||
|
||||
|
||||
enum Menu {
|
||||
|
||||
MENU_OPTION_GENERATE_AABB,
|
||||
@@ -72,35 +68,33 @@ class ParticlesEditor : public Control {
|
||||
DVector<Face3> geometry;
|
||||
|
||||
void _generate_emission_points();
|
||||
void _resource_seleted(const String& p_res);
|
||||
void _node_selected(const NodePath& p_path);
|
||||
void _resource_seleted(const String &p_res);
|
||||
void _node_selected(const NodePath &p_path);
|
||||
|
||||
void _menu_option(int);
|
||||
|
||||
void _populate();
|
||||
|
||||
friend class ParticlesEditorPlugin;
|
||||
friend class ParticlesEditorPlugin;
|
||||
|
||||
protected:
|
||||
|
||||
void _notification(int p_notification);
|
||||
void _node_removed(Node *p_node);
|
||||
static void _bind_methods();
|
||||
public:
|
||||
|
||||
public:
|
||||
void edit(Particles *p_particles);
|
||||
ParticlesEditor();
|
||||
};
|
||||
|
||||
class ParticlesEditorPlugin : public EditorPlugin {
|
||||
|
||||
OBJ_TYPE( ParticlesEditorPlugin, EditorPlugin );
|
||||
OBJ_TYPE(ParticlesEditorPlugin, EditorPlugin);
|
||||
|
||||
ParticlesEditor *particles_editor;
|
||||
EditorNode *editor;
|
||||
|
||||
public:
|
||||
|
||||
virtual String get_name() const { return "Particles"; }
|
||||
bool has_main_screen() const { return false; }
|
||||
virtual void edit(Object *p_node);
|
||||
@@ -109,7 +103,6 @@ public:
|
||||
|
||||
ParticlesEditorPlugin(EditorNode *p_node);
|
||||
~ParticlesEditorPlugin();
|
||||
|
||||
};
|
||||
|
||||
#endif // PARTICLES_EDITOR_PLUGIN_H
|
||||
|
||||
Reference in New Issue
Block a user