Set UI size before creation, make waveform slider act as a button

Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
falkTX 2022-10-31 01:30:44 +00:00
parent 20d62751e0
commit 5c38ab61de
No known key found for this signature in database
GPG Key ID: CDBAA37ABC74FBA0
4 changed files with 9 additions and 4 deletions

2
dpf

@ -1 +1 @@
Subproject commit 15cbdcd5e64054dfb4781e6269899047aed19619
Subproject commit f725f0825086896f44a0bc54b629ba0da919541e

View File

@ -18,6 +18,8 @@
#ifndef DISTRHO_PLUGIN_INFO_H_INCLUDED
#define DISTRHO_PLUGIN_INFO_H_INCLUDED
#include "DistrhoArtworkNekobi.hpp"
#define DISTRHO_PLUGIN_BRAND "DISTRHO"
#define DISTRHO_PLUGIN_NAME "Nekobi"
#define DISTRHO_PLUGIN_URI "http://distrho.sf.net/plugins/Nekobi"
@ -29,4 +31,7 @@
#define DISTRHO_PLUGIN_NUM_INPUTS 0
#define DISTRHO_PLUGIN_NUM_OUTPUTS 1
#define DISTRHO_UI_DEFAULT_WIDTH DistrhoArtworkNekobi::backgroundWidth
#define DISTRHO_UI_DEFAULT_HEIGHT DistrhoArtworkNekobi::backgroundHeight
#endif // DISTRHO_PLUGIN_INFO_H_INCLUDED

View File

@ -1,6 +1,6 @@
/*
* DISTRHO Nekobi Plugin, based on Nekobee by Sean Bolton and others.
* Copyright (C) 2013-2021 Filipe Coelho <falktx@falktx.com>
* Copyright (C) 2013-2022 Filipe Coelho <falktx@falktx.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
@ -40,6 +40,7 @@ DistrhoUINekobi::DistrhoUINekobi()
fSliderWaveform->setId(DistrhoPluginNekobi::paramWaveform);
fSliderWaveform->setStartPos(133, 40);
fSliderWaveform->setEndPos(133, 60);
fSliderWaveform->setCheckable(true);
fSliderWaveform->setRange(0.0f, 1.0f);
fSliderWaveform->setStep(1.0f);
fSliderWaveform->setValue(0.0f);

View File

@ -1,6 +1,6 @@
/*
* DISTRHO Nekobi Plugin, based on Nekobee by Sean Bolton and others.
* Copyright (C) 2013-2021 Filipe Coelho <falktx@falktx.com>
* Copyright (C) 2013-2022 Filipe Coelho <falktx@falktx.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
@ -22,7 +22,6 @@
#include "ImageWidgets.hpp"
#include "DistrhoArtworkNekobi.hpp"
#include "NekoWidget.hpp"
using DGL_NAMESPACE::ImageAboutWindow;