mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-23 21:15:11 +00:00
GUI: focus sample editor when clicking on waveform
This commit is contained in:
parent
ea463e4dfd
commit
3b0be2c42a
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,6 @@
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
|
|
||||||
// TODO:
|
// TODO:
|
||||||
// - clicking on waveform should give this window focus
|
|
||||||
// - add "create instrument using this sample" option
|
// - add "create instrument using this sample" option
|
||||||
// - .dmc loading
|
// - .dmc loading
|
||||||
void FurnaceGUI::drawSampleEdit() {
|
void FurnaceGUI::drawSampleEdit() {
|
||||||
|
@ -1192,6 +1191,7 @@ void FurnaceGUI::drawSampleEdit() {
|
||||||
ImVec2 rectSize=ImGui::GetItemRectSize();
|
ImVec2 rectSize=ImGui::GetItemRectSize();
|
||||||
|
|
||||||
if (ImGui::IsItemClicked()) {
|
if (ImGui::IsItemClicked()) {
|
||||||
|
nextWindow=GUI_WINDOW_SAMPLE_EDIT;
|
||||||
if (ImGui::IsMouseDoubleClicked(ImGuiMouseButton_Left)) {
|
if (ImGui::IsMouseDoubleClicked(ImGuiMouseButton_Left)) {
|
||||||
sampleDragActive=false;
|
sampleDragActive=false;
|
||||||
sampleSelStart=0;
|
sampleSelStart=0;
|
||||||
|
|
Loading…
Reference in a new issue