2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2025-09-08 09:47:26 +00:00

Apply menu elements defaults

This commit is contained in:
Jan
2021-12-29 09:02:40 +01:00
parent d8b1f58b40
commit 96ad97b784
5 changed files with 40 additions and 20 deletions

View File

@@ -0,0 +1,21 @@
#include "CommonMenuTypes.h"
using namespace menu;
CommonColor::CommonColor()
: array{}
{
r = 0.0;
g = 0.0;
b = 0.0;
a = 0.0;
}
CommonColor::CommonColor(const double r, const double g, const double b, const double a)
: array{}
{
this->r = r;
this->g = g;
this->b = b;
this->a = a;
}

View File

@@ -12,6 +12,9 @@ namespace menu
double a;
};
double array[4];
CommonColor();
CommonColor(double r, double g, double b, double a);
};
struct CommonRect