fix color picker, add project delete button with message box

This commit is contained in:
2017-08-19 12:09:03 +01:00
parent de59ae151c
commit ac3857b697
10 changed files with 102 additions and 46 deletions

View File

@@ -66,10 +66,14 @@ void NodeButton::parse_attributes(kAttribute ka, const tinyxml2::XMLAttribute* a
{
switch (ka)
{
case kAttribute::Color:
m_border->parse_attributes(ka, attr);
color_normal = m_border->m_color;
color_hover = glm::clamp(m_border->m_color + glm::vec4(.1, .1, .1, 0), {0,0,0,0}, {1,1,1,1});
color_down = glm::clamp(m_border->m_color + glm::vec4(.2, .2, .2, 0), {0,0,0,0}, {1,1,1,1});
case kAttribute::Padding:
case kAttribute::Width:
case kAttribute::Height:
case kAttribute::Color:
case kAttribute::Thickness:
case kAttribute::BorderColor:
m_border->parse_attributes(ka, attr);