Changed some debug overlay colors.

This commit is contained in:
Leon Styhre 2021-03-22 17:56:38 +01:00
parent 32007b65bb
commit acef76d791
3 changed files with 3 additions and 3 deletions

View file

@ -368,7 +368,7 @@ void ImageComponent::render(const Transform4x4f& parentTrans)
Vector2f targetSizePos = (mTargetSize - mSize) * mOrigin * -1;
Renderer::drawRect(targetSizePos.x(), targetSizePos.y(), mTargetSize.x(),
mTargetSize.y(), 0xFF000033, 0xFF000033);
Renderer::drawRect(0.0f, 0.0f, mSize.x(), mSize.y(), 0x00000033, 0x00000033);
Renderer::drawRect(0.0f, 0.0f, mSize.x(), mSize.y(), 0xFF000033, 0xFF000033);
}
if (mTexture->isInitialized()) {
// Actually draw the image.

View file

@ -160,7 +160,7 @@ void RatingComponent::render(const Transform4x4f& parentTrans)
if (mOpacity > 0) {
if (Settings::getInstance()->getBool("DebugImage")) {
Renderer::drawRect(0.0f, 0.0f, mSize.y() * NUM_RATING_STARS,
mSize.y(), 0x00000033, 0x00000033);
mSize.y(), 0xFF000033, 0xFF000033);
}
if (mUnfilledTexture->bind()) {

View file

@ -165,7 +165,7 @@ void TextComponent::render(const Transform4x4f& parentTrans)
if (Settings::getInstance()->getBool("DebugText")) {
// Draw the "textbox" area, what we are aligned within.
Renderer::setMatrix(trans);
Renderer::drawRect(0.0f, 0.0f, mSize.x(), mSize.y(), 0xFF000033, 0xFF000033);
Renderer::drawRect(0.0f, 0.0f, mSize.x(), mSize.y(), 0x0000FF33, 0x0000FF33);
}
trans.translate(off);