From 800e7a17c3bc82dfb1c10f6c5164d6cb897c1856 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B8rgen=20Lien=20Sell=C3=A6g?= Date: Sat, 3 Jan 2026 08:12:45 +0100 Subject: [PATCH] add more tips --- TradeSkillMaster/GUI/BuildPage.lua | 40 ++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/TradeSkillMaster/GUI/BuildPage.lua b/TradeSkillMaster/GUI/BuildPage.lua index 734d1fe..98bd8d7 100644 --- a/TradeSkillMaster/GUI/BuildPage.lua +++ b/TradeSkillMaster/GUI/BuildPage.lua @@ -74,11 +74,31 @@ local function CreateCustomPriceFrame() text = TSMAPI.Design:GetInlineColor("category")..L["More Advanced Methods"].."|r", relativeWidth = 1, }, + { + type = "Label", + text = "Combine sources, math, and functions to build rules. Sources are case-insensitive.", + relativeWidth = 1, + }, { type = "Label", text = format("See %s for more info.", TSMAPI.Design:GetInlineColor("link").."https://tinyurl.com/tsm2Ascension|r"), relativeWidth = 1, }, + { + type = "Label", + text = "Functions: min, max, avg, first, check, ifgt, ifgte, iflt, iflte, ifeq, round, roundup, rounddown", + relativeWidth = 1, + }, + { + type = "Label", + text = "Convert other items: convert(dbmarket, item:12345) or convert(dbmarket, |cffffffff|Hitem:12345|h[Item]|h|r)", + relativeWidth = 1, + }, + { + type = "Label", + text = "Test strings: /tsm price ", + relativeWidth = 1, + }, { type = "HeadingLine", relativeWidth = 1, @@ -113,6 +133,26 @@ local function CreateCustomPriceFrame() text = "max(vendor, 120% crafting)", relativeWidth = 1, }, + { + type = "Label", + text = "dbmarket * 0.9", + relativeWidth = 1, + }, + { + type = "Label", + text = "ifgt(dbminbuyout, 200g, dbminbuyout, dbmarket)", + relativeWidth = 1, + }, + { + type = "Label", + text = "round(dbmarket, 1g)", + relativeWidth = 1, + }, + { + type = "Label", + text = "convert(dbmarket, item:36901) * 1.05", + relativeWidth = 1, + }, } TSMAPI:BuildPage(container, page)