WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   WorldMap (https://www.wowinterface.com/forums/showthread.php?t=38929)

Aftermathhqt 02-14-11 04:54 AM

WorldMap
 
Hello, im working on removing all the textures in world map, but.. this happens.

the texture is always there. for some reason.

Code:

CreateBorder(_G['WorldMapFrame'], 12, R, G, B, -99, 1, -99, 1, -99, -2, -99, -2)

--_G['WorldMapFrame']:SetPoint('CENTER', UIParent, 'CENTER', -200, -500)

local WorldMapBg = CreateFrame('Frame', nil, _G['WorldMapFrame'])
WorldMapBg:SetFrameStrata('LOW')       
WorldMapBg:SetBackdrop({
    bgFile = [[Interface\Buttons\WHITE8x8]],
    insets = {top = 90, left = 90, bottom = 90, right = 90},
})
WorldMapBg:SetBackdropColor(0, 0, 0, .7)

WORLDMAP_FULLMAP_SIZE = 0.8
--WORLDMAP_QUESTLIST_SIZE = 0.7

_G['BlackoutWorld']:SetAlpha(0)

_G['WorldMapFrameTexture1']:SetAlpha(0)
_G['WorldMapFrameTexture2']:SetAlpha(0)
_G['WorldMapFrameTexture3']:SetAlpha(0)
_G['WorldMapFrameTexture4']:SetAlpha(0)
_G['WorldMapFrameTexture5']:SetAlpha(0)
_G['WorldMapFrameTexture6']:SetAlpha(0)
_G['WorldMapFrameTexture8']:SetAlpha(0)
_G['WorldMapFrameTexture9']:SetAlpha(0)
_G['WorldMapFrameTexture10']:SetAlpha(0)
_G['WorldMapFrameTexture11']:SetAlpha(0)
_G['WorldMapFrameTexture12']:SetAlpha(0)
_G['WorldMapFrameTexture13']:SetAlpha(0)
_G['WorldMapFrameTexture14']:SetAlpha(0)
_G['WorldMapFrameTexture15']:SetAlpha(0)
_G['WorldMapFrameTexture16']:SetAlpha(0)
_G['WorldMapFrameTexture17']:SetAlpha(0)
_G['WorldMapFrameTexture18']:SetAlpha(0)

_G['WorldMapFrameMiniBorderRight']:Hide()
_G['WorldMapFrameMiniBorderLeft']:Hide()

http://img11.imageshack.us/img11/678...1411114916.jpg -- Quest Map
http://img7.imageshack.us/img7/4712/...1411114928.jpg -- Normal World Map
http://img573.imageshack.us/img573/3...1411115310.jpg -- Mini world map

Ketho 02-14-11 12:34 PM

I know almost nothing about textures,
but maybe you could shorten this code a bit: (string concatenation in tables)
Code:

_G['WorldMapFrameTexture1']:SetAlpha(0)
_G['WorldMapFrameTexture2']:SetAlpha(0)
_G['WorldMapFrameTexture3']:SetAlpha(0)
...
_G['WorldMapFrameTexture18']:SetAlpha(0)

Code:

for i = 1, 18 do
  _G["WorldMapFrameTexture"..i]:SetAlpha(0)
end

.. but the 7th one is missing, or was that intended?

Grimsin 02-15-11 12:41 AM

I dont understand what it is that your still trying to hide? it looks like in your screen shot you did hide most of the textures? you want to hide the actual map graphic?

SDPhantom 02-15-11 12:54 AM

Here's some additional information...

Base Name: WorldMapFrameTexture
Range: 1-18
Description: Texture of the frame itself.

Base Name: WorldMapDetailTile
Range: 1-12
Quantity Constant: NUM_WORLDMAP_DETAIL_TILES
Description: Base texture of map displayed when unexplored.

Base Name: WorldMapOverlay
Range: 1-??? (Dynamically created in Lua)
Quantity Constant: NUM_WORLDMAP_OVERLAYS
Description: Sections of the zone map revealed by exploration.

Aftermathhqt 02-15-11 01:30 AM

Quote:

Originally Posted by Ketho (Post 229733)
I know almost nothing about textures,
but maybe you could shorten this code a bit: (string concatenation in tables)
Code:

_G['WorldMapFrameTexture1']:SetAlpha(0)
_G['WorldMapFrameTexture2']:SetAlpha(0)
_G['WorldMapFrameTexture3']:SetAlpha(0)
...
_G['WorldMapFrameTexture18']:SetAlpha(0)

Code:

for i = 1, 18 do
  _G["WorldMapFrameTexture"..i]:SetAlpha(0)
end

.. but the 7th one is missing, or was that intended?

That was the problem i through somthing was missing.

anyways fixed it; here is result: http://img15.imageshack.us/img15/237...1511172301.jpg

Just need to fix the backdrop, and its done =)


All times are GMT -6. The time now is 12:23 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI