From 0813681c19eedf09ac7be30855529befaec29657 Mon Sep 17 00:00:00 2001 From: Niro <80123634+NiroUwU@users.noreply.github.com> Date: Fri, 28 Jan 2022 15:22:58 +0100 Subject: [PATCH] removed calc.getText() out of Textbox.lua --- main.lua | 2 +- src/class/Textbox.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/main.lua b/main.lua index 7cb3ad3..5bb9bed 100755 --- a/main.lua +++ b/main.lua @@ -34,7 +34,7 @@ function love.load() -- Textboxes: textbox = { - tutorial = Textbox(40, 40, width-80, height-80, text.tutorial, "center", {255, 255, 255}, {0, 0, 0}) + tutorial = Textbox(40, 40, width-80, height-80, getText(text.tutorial), "center", {255, 255, 255}, {0, 0, 0}) } diff --git a/src/class/Textbox.lua b/src/class/Textbox.lua index 6d32675..ea9d363 100755 --- a/src/class/Textbox.lua +++ b/src/class/Textbox.lua @@ -8,7 +8,7 @@ function Textbox:init(tempX, tempY, tempW, tempH, tempText, tempAlign, tempTC, t self.h = tempH -- Text: - self.text = calc.getText(tempText) + self.text = tempText self.align = tempAlign -- Colours: