aboutsummaryrefslogtreecommitdiff
path: root/tools/editor/plugins/sample_library_editor_plugin.h
diff options
context:
space:
mode:
authorRémi Verschelde2016-03-13 14:37:47 +0100
committerRémi Verschelde2016-04-02 22:06:30 +0200
commit1d096471dcd05be4c9eb77f576a432d5ec303bab (patch)
treed2159422fc483f391f6453a033e394334db534d6 /tools/editor/plugins/sample_library_editor_plugin.h
parent7c44cbee67974db90c22488a81af7567c4e47f6a (diff)
downloadgodot-1d096471dcd05be4c9eb77f576a432d5ec303bab.tar.gz
godot-1d096471dcd05be4c9eb77f576a432d5ec303bab.tar.zst
godot-1d096471dcd05be4c9eb77f576a432d5ec303bab.zip
Add stop and delete buttons to sample library
Based on the work by @rdcklinux in #3339. The play button becomes a stop button while playing. A delete button is added in the last column. (cherry picked from commit 533b9b734272d60ba60427e3d7092a84fe47f9e0)
Diffstat (limited to 'tools/editor/plugins/sample_library_editor_plugin.h')
-rw-r--r--tools/editor/plugins/sample_library_editor_plugin.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/editor/plugins/sample_library_editor_plugin.h b/tools/editor/plugins/sample_library_editor_plugin.h
index cbdcf5fc3..0dba00e64 100644
--- a/tools/editor/plugins/sample_library_editor_plugin.h
+++ b/tools/editor/plugins/sample_library_editor_plugin.h
@@ -53,6 +53,8 @@ class SampleLibraryEditor : public Panel {
Button *load;
Button *_delete;
Tree *tree;
+ bool is_playing;
+ Object *last_sample_playing;
EditorFileDialog *file;
@@ -79,7 +81,6 @@ protected:
public:
void set_undo_redo(UndoRedo *p_undo_redo) {undo_redo=p_undo_redo; }
-
void edit(Ref<SampleLibrary> p_sample);
SampleLibraryEditor();
};