Browse Source

add more tips

dev
Jørgen Lien Sellæg 4 months ago
parent
commit
800e7a17c3
  1. 40
      TradeSkillMaster/GUI/BuildPage.lua

40
TradeSkillMaster/GUI/BuildPage.lua

@ -74,11 +74,31 @@ local function CreateCustomPriceFrame()
text = TSMAPI.Design:GetInlineColor("category")..L["More Advanced Methods"].."|r", text = TSMAPI.Design:GetInlineColor("category")..L["More Advanced Methods"].."|r",
relativeWidth = 1, relativeWidth = 1,
}, },
{
type = "Label",
text = "Combine sources, math, and functions to build rules. Sources are case-insensitive.",
relativeWidth = 1,
},
{ {
type = "Label", type = "Label",
text = format("See %s for more info.", TSMAPI.Design:GetInlineColor("link").."https://tinyurl.com/tsm2Ascension|r"), text = format("See %s for more info.", TSMAPI.Design:GetInlineColor("link").."https://tinyurl.com/tsm2Ascension|r"),
relativeWidth = 1, 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 <ItemLink> <Price String>",
relativeWidth = 1,
},
{ {
type = "HeadingLine", type = "HeadingLine",
relativeWidth = 1, relativeWidth = 1,
@ -113,6 +133,26 @@ local function CreateCustomPriceFrame()
text = "max(vendor, 120% crafting)", text = "max(vendor, 120% crafting)",
relativeWidth = 1, 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) TSMAPI:BuildPage(container, page)

Loading…
Cancel
Save