From 468d2b36359bf8791ab2d51e24b567aa1d70139c Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Sun, 17 Apr 2022 11:08:08 +0200 Subject: [PATCH] Added a green debug mode rectangle for CarouselComponent. Also changed the debug mode rectangle from blue to green for TextListComponent. --- es-core/src/components/primary/CarouselComponent.h | 4 ++++ es-core/src/components/primary/TextListComponent.h | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/es-core/src/components/primary/CarouselComponent.h b/es-core/src/components/primary/CarouselComponent.h index 78fe51d37..3454b6930 100644 --- a/es-core/src/components/primary/CarouselComponent.h +++ b/es-core/src/components/primary/CarouselComponent.h @@ -387,6 +387,10 @@ template void CarouselComponent::render(const glm::mat4& parentT mRenderer->setMatrix(carouselTrans); + // In image debug mode, draw a green rectangle covering the entire carousel area. + if (Settings::getInstance()->getBool("DebugImage")) + mRenderer->drawRect(0.0f, 0.0f, mSize.x, mSize.y, 0x00FF0033, 0x00FF0033); + // Background box behind the items. mRenderer->drawRect(0.0f, 0.0f, mSize.x, mSize.y, mCarouselColor, mCarouselColorEnd, mColorGradientHorizontal); diff --git a/es-core/src/components/primary/TextListComponent.h b/es-core/src/components/primary/TextListComponent.h index b309ced6d..287ef9a34 100644 --- a/es-core/src/components/primary/TextListComponent.h +++ b/es-core/src/components/primary/TextListComponent.h @@ -376,7 +376,7 @@ template void TextListComponent::render(const glm::mat4& parentT if (Settings::getInstance()->getBool("DebugText")) { mRenderer->drawRect(mHorizontalMargin, 0.0f, mSize.x - mHorizontalMargin * 2.0f, mSize.y, 0x00000033, 0x00000033); - mRenderer->drawRect(0.0f, 0.0f, mSize.x, mSize.y, 0x0000FF33, 0x0000FF33); + mRenderer->drawRect(0.0f, 0.0f, mSize.x, mSize.y, 0x00FF0033, 0x00FF0033); } // Clip to inside margins.