mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 19:11:50 +00:00
RichButton removed, use Container instead
This commit is contained in:
parent
b836ec514a
commit
9611252d84
10 changed files with 58 additions and 90 deletions
|
|
@ -97,7 +97,8 @@ void Container::draw(const GfxContext* pctx, Assets* assets) {
|
|||
}
|
||||
|
||||
void Container::drawBackground(const GfxContext* pctx, Assets* assets) {
|
||||
if (color.a <= 0.0f)
|
||||
glm::vec4 color = isPressed() ? pressedColor : (hover ? hoverColor : this->color);
|
||||
if (color.a <= 0.001f)
|
||||
return;
|
||||
glm::vec2 pos = calcPos();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue