From fd97eda9fe8ce9acc312fa5f5b7cdcb0a98156fc Mon Sep 17 00:00:00 2001 From: Idriss975 Date: Tue, 4 Nov 2025 18:07:50 +0100 Subject: [PATCH] Add undropSymbol property + implement both self.dropSymbol & self.undropSymbol --- src/elements/DropDown.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/elements/DropDown.lua b/src/elements/DropDown.lua index 936f92d..4780616 100644 --- a/src/elements/DropDown.lua +++ b/src/elements/DropDown.lua @@ -63,6 +63,8 @@ DropDown.defineProperty(DropDown, "dropdownHeight", {default = 5, type = "number DropDown.defineProperty(DropDown, "selectedText", {default = "", type = "string"}) ---@property dropSymbol string "\31" Indicator for dropdown state DropDown.defineProperty(DropDown, "dropSymbol", {default = "\31", type = "string"}) +---@property undropSymbol string "\31" Indicator for dropdown state +DropDown.defineProperty(DropDown, "undropSymbol", {default = "\17", type = "string"}) --- Creates a new DropDown instance --- @shortDescription Creates a new DropDown instance @@ -202,7 +204,7 @@ function DropDown:render() self.set("height", actualHeight) end - self:blit(1, 1, text .. string.rep(" ", self.get("width") - #text - 1) .. (isOpen and "\31" or "\17"), + self:blit(1, 1, text .. string.rep(" ", self.get("width") - #text - 1) .. (isOpen and self.dropSymbol or self.undropSymbol), string.rep(tHex[self.getResolved("foreground")], self.get("width")), string.rep(tHex[self.getResolved("background")], self.get("width"))) end