lego: fix/match SetColorString (#72)

* lego: fix/match SetColorString

* explicitly cast to float to avoid warning

* style fixes

* remove superfluous includes

* Update legobackgroundcolor.cpp
This commit is contained in:
Christian Semmler
2023-07-02 19:17:15 +02:00
committed by GitHub
parent 9415bd18bb
commit d64a04705c
2 changed files with 38 additions and 41 deletions

View File

@@ -1,15 +1,15 @@
#ifndef LEGOBACKGROUNDCOLOR_H
#define LEGOBACKGROUNDCOLOR_H
#include "mxstring.h"
#include "mxcore.h"
#include "mxstringvariable.h"
class LegoBackgroundColor : public MxStringVariable
{
public:
__declspec(dllexport) LegoBackgroundColor(const char *, const char *);
void SetColorString(const char *colorString);
protected:
__declspec(dllexport) LegoBackgroundColor(const char *p_name, const char *p_colorString);
void SetColorString(const char *p_colorString);
private:
float h;
float s;
float v;