Ich brauche einen Setup Parameter im Bereich 0,1...50,0 in 0,1 Schritten.
Das habe ich mit cMenuEditProcItem gemacht, klappt auch, aber das Speichern von im Setup geänderten Werten geht nicht. In plugin.c geht cPlugin:: SetupStore auch nur für char und int, während cMenuEditProcItem double ist, und da zwischen 0 und 1 immer 0 gespeichert wird.
In Plugins.html steht dazu:
To store its values in the global setup, a plugin has to call the function
void SetupStore(const char *Name, type Value);
where Name is the name of the parameter ("GreetingTime" in the above example, without the prefix "hello.") and Value is a simple data type (like char *, int etc). Note that this is not a function that the individual plugin class needs to implement! SetupStore() is a non-virtual member function of the cPlugin class.
Wenn ich statt dessen cMenuEditIntItem verwende geht es, aber im Setup steht dann 1...500 statt 0,1... 50,0.
Wie löse ich das? Geht doch nur char und int, oder wie bekomme ich das hin?
Wäre schön, wenn plugins das auch könnten.