OK. I´ve already tried it. Could you help me with already existing lua file?:
EVENT_MANAGER:RegisterForEvent("SpinStop", EVENT_ADD_ON_LOADED,
function(eventCode, addon)
if (addon):find("^ZO_") then return end
for name, scene in pairs(SCENE_MANAGER.scenes) do
if not (name):find("market") and scene:HasFragment(FRAME_PLAYER_FRAGMENT) then
scene:RemoveFragment(FRAME_PLAYER_FRAGMENT)
end
end
EVENT_MANAGER:UnregisterForEvent("SpinStop", eventCode)
end)
How to bind this function to a keybind pls?
|