12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- #ifndef EDITOR_PATH_H
- #define EDITOR_PATH_H
- #include "editor_data.h"
- #include "scene/gui/control.h"
- #include "scene/gui/popup_menu.h"
- class EditorPath : public Control {
- GDCLASS(EditorPath, Control);
- EditorHistory *history;
- Vector<ObjectID> objects;
- PopupMenu *popup;
- bool mouse_over;
- EditorPath();
- void _popup_select(int p_idx);
- void _gui_input(const Ref<InputEvent> &p_event);
- void _add_children_to_popup(Object *p_obj, int p_depth = 0);
- protected:
- static void _bind_methods();
- void _notification(int p_what);
- public:
- void update_path();
- EditorPath(EditorHistory *p_history);
- };
- #endif
|