Minor tweaks for debug text

This commit is contained in:
2022-01-02 14:05:52 -05:00
parent af393e8acb
commit 40095cb8b7
3 changed files with 12 additions and 9 deletions

View File

@ -59,6 +59,7 @@ void UIText::ParseString(std::string inputText, int x, int y, int letterScale, s
void UIText::AddLetter(int xpos, int ypos, char crnt, std::string tag, int lttrScale, Game::groupLabels groupLabel)
{
// =======THIS NEEDS TO BE REFACTORED TO NOT USE INDIVIDUAL ENTITIES FOR EACH LETTER============
auto& letter(manager.addEntity());
letter.addComponent<TransformComponent>(xpos*lttrScale, ypos*lttrScale, letterWidth, letterHeight, 1);
letter.addComponent<SpriteComponent>("font", SpriteComponent::spriteText, crnt, letterWidth, letterHeight, lttrScale);