tooltip=L["Will cancel auctions even if they have a bid on them, you will take an additional gold cost if you cancel an auction with bid."],
},
{
type="CheckBox",
label=L["Round Normal Price"],
settingInfo={TSM.db.global,"roundNormalPrice"},
tooltip=L["If checked, whenever you post an item at its normal price, the buyout will be rounded up to the nearest gold."],
},
{
type="CheckBox",
label=L["Disable Invalid Price Warnings"],
settingInfo={TSM.db.global,"disableInvalidMsg"},
tooltip=L["If checked, TSM will not print out a chat message when you have an invalid price for an item. However, it will still show as invalid in the log."],
tooltip=L["Play the selected sound when a post / cancel scan is complete and items are ready to be posted / canceled (the gray bar is all the way across).Select None to disable sounds"],
text=format(L["There are two ways of making clicking the Post / Cancel Auction button easier. You can put %s and %s in a macro (on separate lines), or use the utility below to have a macro automatically made and bound to scrollwheel for you."],"\""..TSMAPI.Design:GetInlineColor("link").."/click TSMAuctioningPostButton|r\"","\""..TSMAPI.Design:GetInlineColor("link").."/click TSMAuctioningCancelButton|r\""),
relativeWidth=1,
},
{
type="HeadingLine"
},
{
type="Label",
text=L["ScrollWheel Direction (both recommended):"],
relativeWidth=0.59,
},
{
type="CheckBox",
label=L["Up"],
relativeWidth=0.2,
settingInfo={macroOptions,"up"},
tooltip=L["Will bind ScrollWheelUp (plus modifiers below) to the macro created."],
},
{
type="CheckBox",
label=L["Down"],
relativeWidth=0.2,
settingInfo={macroOptions,"down"},
tooltip=L["Will bind ScrollWheelDown (plus modifiers below) to the macro created."],
},
{
type="Label",
text=L["Modifiers:"],
relativeWidth=0.24,
fontObject=GameFontNormal,
},
{
type="CheckBox",
label="ALT",
relativeWidth=0.25,
settingInfo={macroOptions,"alt"},
},
{
type="CheckBox",
label="CTRL",
relativeWidth=0.25,
settingInfo={macroOptions,"ctrl"},
},
{
type="CheckBox",
label="SHIFT",
relativeWidth=0.25,
settingInfo={macroOptions,"shift"},
},
{
type="Button",
relativeWidth=1,
text=L["Create Macro and Bind ScrollWheel (with selected options)"],
text=L["Whitelists allow you to set other players besides you and your alts that you do not want to undercut; however, if somebody on your whitelist matches your buyout but lists a lower bid it will still consider them undercutting."],
},
{
type="CheckBox",
relativeWidth=0.49,
label=L["Match Whitelist Players"],
settingInfo={TSM.db.global,"matchWhitelist"},
tooltip=L["If enabled, instead of not posting when a whitelisted player has an auction posted, Auctioning will match their price."],
text=L["You do not have any players on your whitelist yet."],
fontObject=GameFontNormal,
relativeWidth=1,
})
end
TSMAPI:BuildPage(container,page)
end
functionOptions:DrawNewOperation(container)
localcurrentGroup=Options.currentGroup
localpage={
{
-- scroll frame to contain everything
type="ScrollFrame",
layout="List",
children={
{
type="InlineGroup",
layout="flow",
title=L["New Operation"],
children={
{
type="Label",
text=L["Auctioning operations contain settings for posting, canceling, and resetting items in a group. Type the name of the new operation into the box below and hit 'enter' to create a new Crafting operation."],
relativeWidth=1,
},
{
type="EditBox",
label=L["Operation Name"],
relativeWidth=0.8,
callback=function(self,_,name)
name=(nameor""):trim()
ifname==""thenreturnend
ifTSM.operations[name]then
self:SetText("")
returnTSM:Printf(L["Error creating operation. Operation with name '%s' already exists."],name)
tooltip=L["If checked, Auctioning will ignore all auctions that are posted at a different stack size than your auctions. For example, if there are stacks of 1, 5, and 20 up and you're posting in stacks of 1, it'll ignore all stacks of 5 and 20."],
tooltip=L["Any auctions at or below the selected duration will be ignored. Selecting \"<none>\" will cause no auctions to be ignored based on duration."],
tooltip=L["How many auctions at the lowest price tier can be up at any one time. Setting this to 0 disables posting for any groups this operation is applied to."],
},
{
type="Slider",
label=L["Stack Size"],
settingInfo={operation,"stackSize"},
min=1,
max=1000,
step=1,
relativeWidth=0.5,
disabled=operation.relationships.stackSize,
tooltip=L["How many items should be in a single auction, 20 will mean they are posted in stacks of 20."],
},
{
type="CheckBox",
label=L["Use Stack Size as Cap"],
settingInfo={operation,"stackSizeIsCap"},
disabled=operation.relationships.stackSizeIsCap,
tooltip=L["If you don't have enough items for a full post, it will post with what you have."],
},
{
type="Slider",
label=L["Keep Quantity"],
settingInfo={operation,"keepQuantity"},
min=0,
max=1000,
step=1,
relativeWidth=0.5,
tooltip=L["How many items you want to keep in your bags and not have Auctioning post."],
},
},
},
{
type="Spacer",
},
{
type="InlineGroup",
layout="flow",
title=L["Auction Price Settings"],
children={
{
type="Slider",
label=L["Bid percent"],
settingInfo={operation,"bidPercent"},
isPercent=true,
min=0,
max=1,
step=0.01,
relativeWidth=0.5,
disabled=operation.relationships.bidPercent,
tooltip=L["Percentage of the buyout as bid, if you set this to 90% then a 100g buyout will have a 90g bid."],
},
{
type="EditBox",
label=L["Undercut Amount"],
settingInfo={operation,"undercut"},
relativeWidth=0.49,
acceptCustom=true,
disabled=operation.relationships.undercut,
tooltip=L["How much to undercut other auctions by. Format is in \"#g#s#c\". For example, \"50g30s\" means 50 gold, 30 silver, and no copper."],
tooltip=L["The lowest price you want an item to be posted for. Auctioning will not undercut auctions below this price."],
},
{
type="Dropdown",
label=L["When Below Minimum"],
relativeWidth=0.5,
list={["none"]=L["Don't Post Items"],["minPrice"]=L["Post at Minimum Price"],["maxPrice"]=L["Post at Maximum Price"],["normalPrice"]=L["Post at Normal Price"],["ignore"]=L["Ignore Auctions Below Minimum"]},
settingInfo={operation,"priceReset"},
disabled=operation.relationships.priceReset,
tooltip=L["This dropdown determines what Auctioning will do when the market for an item goes below your minimum price. You can not post the items, post at one of your configured prices, or have Auctioning ignore all the auctions below your minimum price (and likely undercut the lowest auction above your mimimum price)."],
tooltip=L["The maximum price you want an item to be posted for. Auctioning will not undercut auctions above this price."],
},
{
type="Dropdown",
label=L["When Above Maximum"],
relativeWidth=0.5,
list={["minPrice"]=L["Post at Minimum Price"],["maxPrice"]=L["Post at Maximum Price"],["normalPrice"]=L["Post at Normal Price"]},
settingInfo={operation,"aboveMax"},
disabled=operation.relationships.aboveMax,
tooltip=L["This dropdown determines what Auctioning will do when the market for an item goes above your maximum price. You can post the items at one of your configured prices."],
tooltip=L["The minimum profit you would want to make from doing a reset. This is a per-item price where profit is the price you reset to minus the average price you spent per item."],
tooltip=L["This determines what size range of prices should be considered a single price point for the reset scan. For example, if this is set to 1s, an auction at 20g50s20c and an auction at 20g49s45c will both be considered to be the same price level."],