mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 19:11:50 +00:00
audio::reset_channel + minor refactor
This commit is contained in:
parent
9fbf46169f
commit
0ab39fa06f
9 changed files with 62 additions and 40 deletions
|
|
@ -445,12 +445,12 @@ void TextBox::drawBackground(const GfxContext* pctx, Assets* assets) {
|
|||
if (isFocused() && multiline) {
|
||||
batch->setColor(glm::vec4(1, 1, 1, 0.1f));
|
||||
glm::vec2 lcoord = label->calcCoord();
|
||||
lcoord.y -= 4;
|
||||
lcoord.y -= 2;
|
||||
uint line = label->getLineByTextIndex(caret);
|
||||
int lineY = label->getLineYOffset(line);
|
||||
int lineHeight = font->getLineHeight() * label->getLineInterval();
|
||||
batch->rect(lcoord.x, lcoord.y+lineY, label->getSize().x, 1);
|
||||
batch->rect(lcoord.x, lcoord.y+lineY+lineHeight, label->getSize().x, 1);
|
||||
batch->rect(lcoord.x, lcoord.y+lineY+lineHeight-2, label->getSize().x, 1);
|
||||
}
|
||||
|
||||
label->setColor(glm::vec4(input.empty() ? 0.5f : 1.0f));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue