Hello, here is a simple script I am running to move the Micro Menu and it works great, but often when I am reloading my UI or teleporting somewhere else and facing a loading screen, it resets to the default position.
CharacterMicroButton:ClearAllPoints()
CharacterMicroButton:SetPoint(“RIGHT”,124, -37)
Could someone here with a little experience with lua tell me what I could add to this script to prevent it from moving at all?
Paste the following into the web site addon.bool.no. Rename the addon to something unique ( DekelMoveMenu maybe). Press “Create my addon and give me my files”. Install as per any other addon.
local f = CreateFrame("Frame")
f:SetScript("OnEvent", function(self, event, ...)
CharacterMicroButton:ClearAllPoints()
CharacterMicroButton:SetPoint("RIGHT",124, -37)
end)
f:RegisterEvent("PLAYER_ENTERING_WORLD")
Appreciate the help, but I am still having the same issue after installing this.
Could always just use a barmod like Bartender or Dominos and it’ll stay where you want it to.
I’ve used them in the past, but I like having my UI as close to default as possible while adding minor scripts to improve it just a tad bit. I’d like to keep the default icon borders & artwork intact by having my actionbars as is, with just this script working properly. You don’t think maybe there was a typo in that above script that I missed, do you? Or maybe Blizzard has tided up the code some more and that part of the script has the incorrect format? This script doesn’t seem to do anything at all for me.
If you’re not using any other bar mods/scripts then change the previous code too:
CharacterMicroButton:ClearAllPoints()
CharacterMicroButton:SetPoint("RIGHT",124, -37)
CharacterMicroButton.SetPoint = function() end
Make sure the double quotes " around “RIGHT” are actually double quotes, the forum sometimes changes them and if you don’t have errors on, you won’t know.
this new one works great, thanks