checkbox fix
This commit is contained in:
@@ -7,7 +7,8 @@
|
|||||||
using namespace gui;
|
using namespace gui;
|
||||||
|
|
||||||
CheckBox::CheckBox(bool checked) : UINode(glm::vec2(32.0f)), checked(checked) {
|
CheckBox::CheckBox(bool checked) : UINode(glm::vec2(32.0f)), checked(checked) {
|
||||||
setColor(glm::vec4(0.0f, 0.0f, 0.0f, 0.5f));
|
setColor({0.0f, 0.0f, 0.0f, 0.5f});
|
||||||
|
setHoverColor({0.05f, 0.1f, 0.2f, 0.75f});
|
||||||
}
|
}
|
||||||
|
|
||||||
void CheckBox::draw(const DrawContext* pctx, Assets*) {
|
void CheckBox::draw(const DrawContext* pctx, Assets*) {
|
||||||
|
|||||||
@@ -6,7 +6,6 @@
|
|||||||
namespace gui {
|
namespace gui {
|
||||||
class CheckBox : public UINode {
|
class CheckBox : public UINode {
|
||||||
protected:
|
protected:
|
||||||
glm::vec4 hoverColor {0.05f, 0.1f, 0.2f, 0.75f};
|
|
||||||
glm::vec4 checkColor {1.0f, 1.0f, 1.0f, 0.4f};
|
glm::vec4 checkColor {1.0f, 1.0f, 1.0f, 0.4f};
|
||||||
boolsupplier supplier = nullptr;
|
boolsupplier supplier = nullptr;
|
||||||
boolconsumer consumer = nullptr;
|
boolconsumer consumer = nullptr;
|
||||||
|
|||||||
Reference in New Issue
Block a user