1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-12 13:20:55 +00:00

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.
This commit is contained in:
Rémi Verschelde
2016-03-13 14:37:47 +01:00
parent be4d58e120
commit 533b9b7342
2 changed files with 57 additions and 32 deletions

View File

@@ -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();
};