Browse Source

set color for submit buttons

Odilitime 5 years ago
parent
commit
0bd3e2c27c
  1. 2
      src/graphics/elements/INPUTElement.cpp

2
src/graphics/elements/INPUTElement.cpp

@ -35,7 +35,7 @@ std::unique_ptr<Component> INPUTElement::renderer(const ElementRenderRequest &re @@ -35,7 +35,7 @@ std::unique_ptr<Component> INPUTElement::renderer(const ElementRenderRequest &re
return std::move(inputComponent);
} else if (type == "submit") {
//std::cout << "Creating submit" << std::endl;
std::unique_ptr<ButtonComponent> butComponent = std::make_unique<ButtonComponent>(0, 0, 62.0f, 13.0f, request.parentComponent->win->windowWidth, request.parentComponent->win->windowHeight);
std::unique_ptr<ButtonComponent> butComponent = std::make_unique<ButtonComponent>(0, 0, 62.0f, 13.0f, 0xA0A0A0FF, request.parentComponent->win->windowWidth, request.parentComponent->win->windowHeight);
auto propIter3 = tagNode->properties.find("value");
if (propIter3 != tagNode->properties.end()) {
butComponent->value = propIter3->second;

Loading…
Cancel
Save