From 50dce1c1e777f31b90012ac362996470dc364068 Mon Sep 17 00:00:00 2001 From: Robert Jelic <36573031+NoryiE@users.noreply.github.com> Date: Mon, 23 Jan 2023 21:52:20 +0100 Subject: [PATCH] added :setSelectionColor() added :setSelectionColor(backgroundCol, foregroundCol) --- Basalt/objects/Textfield.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Basalt/objects/Textfield.lua b/Basalt/objects/Textfield.lua index 8285e82..334f256 100644 --- a/Basalt/objects/Textfield.lua +++ b/Basalt/objects/Textfield.lua @@ -685,6 +685,12 @@ return function(name) end end end, + + setSelectionColor = function(self, bg, fg) + selectionBG = bg or selectionBG + selectionFG = fg or selectionFG + return self + end, draw = function(self) if (base.draw(self)) then @@ -756,4 +762,4 @@ return function(name) } return setmetatable(object, base) -end \ No newline at end of file +end