Button Scaling
t-mart opened this issue ยท 6 comments
When scaling my minimap scale to 2.0x, my minimap buttons also scaled that much, beyond my preference. I wish they were independently scalable, but it does not seem like that feature is in SexyMap currently.
I'd like to research an implementation to a button-specific scale.
Before I get too deep into this, @funkydude, have you thought about this before? Would you accept this kind of work into SexyMap? Any reasons why you think this could not work, whether that be your vision for the project or technically?
Thanks.
change 1 function in Buttons.lua like this:
` local setPosition = function(frame, angle) local scale = Minimap:GetScale() local radius = (Minimap:GetWidth() / 2) + mod.db.radius local bx, by = sm.shapes:GetPosition(angle, radius)
frame:SetScale(1/scale) frame:ClearAllPoints() frame:SetPoint("CENTER", Minimap, "CENTER", bx, by)
end `
and buttons will stay in right size.
Can you explain how to do this? I don't quite understand
This would be a lovely feature to add. I wonder if it could have a global setting but also a per-button override setting (e.g. if I want everything at 75% scale, but garrison/covenant/etc button a bit larger like it is on the default map).
Well, apparently they're really rushing to fix this. August 2018 and I'm here for the same problem.
Sorry funkydude but I gotta uninstall. The map is freaking TINY, scaling it makes the buttons huge, and apparently you don't care.
I posted on Curse back when Legion first came out about this... and he swore up and down it was not his addon causing this.
Anyway it was the reason I stopped using the SexyMap and I see it has not been fixed after all this time.
I'm also looking for Minimap buttons independent scaling functionality. I guess it doesn't exists yet since this ticket is still open. Is there any other addon which can provide this functionality in combination with SexyMap maybe ?
change 1 function in Buttons.lua like this:
`
local setPosition = function(frame, angle)
local scale = Minimap:GetScale()
local radius = (Minimap:GetWidth() / 2) + mod.db.radius
local bx, by = sm.shapes:GetPosition(angle, radius)
frame:SetScale(1/scale)
frame:ClearAllPoints()
frame:SetPoint("CENTER", Minimap, "CENTER", bx, by)
end
`
and buttons will stay in right size.