pMinimap = CreateFrame('Frame', 'pMinimap', UIParent)
pMinimap:SetScript('OnEvent', function(self, event, ...) self[event](self, event, ...) end)
pMinimap:RegisterEvent('ADDON_LOADED')
pMinimapToggleClock = InterfaceOptionsDisplayPanelShowClock_SetFunc
InterfaceOptionsDisplayPanelShowClock_SetFunc = function() end
for _, check in pairs{InterfaceOptionsDisplayPanelShowClock} do
local f = check:CreateFontString(nil, 'OVERLAY', 'GameFontNormal')
f:SetPoint('TOPLEFT', check, 0, 10)
f:SetText('|cff00ff33OVERRID BY PMINIMAP!|r')
check:Disable()
check.Enable = function() end
end
function pMinimap.ADDON_LOADED(self, event, name)
if(name ~= 'pMinimap') then return end
local db = pMinimapDB or {point = {'TOPRIGHT', 'TOPRIGHT', -15, -15}, scale = 1, offset = 5, colors = {0, 0, 0, 0.5}, durability = true, coords = false, clock = true, level = 2, strata = 'BACKGROUND', font = 'Interface\\AddOns\\pMinimap\\font.ttf', fontsize = 13, fontflag = 'OUTLINE'}
MinimapBorder:SetTexture('')
MinimapBorderTop:Hide()
MinimapToggleButton:Hide()
MinimapZoomIn:Hide()
MinimapZoomOut:Hide()
Minimap:EnableMouseWheel()
Minimap:SetScript('OnMouseWheel', function(self, dir)
if(dir > 0) then
Minimap_ZoomIn()
else
Minimap_ZoomOut()
end
end)
-- MinimapZoneText:Hide()
-- MinimapZoneTextButton:Hide()
이부분 주석 처리 하시면 됩니다(녹색글씨)