SanjoSolutions / crafting-addon

Highly automated and optimized crafting and selling of the crafted items.
The Unlicense
1 stars 1 forks source link

Possible to allow the evaluate button to be moveable? #8

Open doperyde opened 2 months ago

doperyde commented 2 months ago

https://github.com/SanjoSolutions/crafting-addon/blob/8a3085ae0e090df9166db2af508d82f4fd2e9873/Plan.lua#L82

Would you consider making/allowing the 'evaluate' button to be moveable? or possibly anchor it to the crafting window/frame? Instead of having it statically anchored it to the bottom right corner area of the screen as it appears to be defined? Or suggest how I could make the modification myself?

local evaluateButton = CreateFrame("Button", nil, UIParent,

  "UIPanelButtonTemplate")

evaluateButton:SetSize(80, 22)

evaluateButton:SetTextToFit("Evaluate")

evaluateButton:SetPoint("BOTTOMRIGHT", -10, 100)

evaluateButton:SetScript("OnClick", function()

Thank you in advance!

SanjoSolutions commented 2 months ago

Or suggest how I could make the modification myself?

With the line evaluateButton:SetPoint("BOTTOMRIGHT", -10, 100) the position can be changed.