You've already forked godot
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:
@@ -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();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user