Thread Tools Display Modes
09-15-09, 11:45 AM   #1
Grimsin
A Molten Giant
 
Grimsin's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2006
Posts: 990
Minimap Shape changing

Is it still necessary for us to provide our own shape masks for the minimap? I swear i was reading somewhere that wow added a lot of them to the game so now we just have to use a set command for them? but that could have just been me dreaming...
__________________
"Are we there yet?"

GrimUI
[SIGPIC][/SIGPIC]
  Reply With Quote
09-15-09, 11:51 AM   #2
Katae
A Cobalt Mageweaver
AddOn Author - Click to view addons
Join Date: Jun 2007
Posts: 208
function GetMinimapShape() return "SQUARE" end

Is that what you're looking for?

http://www.wowwiki.com/GetMinimapShape
  Reply With Quote
09-15-09, 12:46 PM   #3
Slakah
A Molten Giant
 
Slakah's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2007
Posts: 863
Originally Posted by Katae View Post
function GetMinimapShape() return "SQUARE" end

Is that what you're looking for?

http://www.wowwiki.com/GetMinimapShape
Thats a user defined function, it's purely for working out where to place minimap buttons in relation to the minimap.

but that could have just been me dreaming...
I think you were dreamingm
  Reply With Quote
09-15-09, 01:36 PM   #4
Grimsin
A Molten Giant
 
Grimsin's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2006
Posts: 990
Yea i think i was to, im not seeing any way to do it other then having a mask file in my addons folder to point to. oh well. wishful thinking.
__________________
"Are we there yet?"

GrimUI
[SIGPIC][/SIGPIC]
  Reply With Quote
09-17-09, 09:11 AM   #5
Grimsin
A Molten Giant
 
Grimsin's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2006
Posts: 990
On the same subject... so i have the minimap shape changed to square i noticed other addons that do this also adjust the minimap blips or the city arrows as well. On mine though the city arrows still follow a circle pattern. How do i change those up to work on square pattern. Example of addon that changes both is Chinchila.

My minimap code is currently as follows...
Code:
Minimap:ClearAllPoints() 
	    Minimap:SetPoint("BOTTOM", UIParent, 0, 11) 
	    Minimap:SetHeight(132) 
	    Minimap.SetHeight = dummy 
	    Minimap:SetBackdropBorderColor(nil, nil, nil, nil) 
	    Minimap.SetBackdropBorderColor = dummy 
	    Minimap:SetMaskTexture([[Interface\AddOns\GrimUIcore\Masks\Mask-SQUARE]]) 
	    Minimap.ClearAllPoints = dummy 
	    Minimap.SetPoint = dummy 
	    Minimap.SetWidth = dummy 
	    Minimap.SetMaskTexture = dummy
		Minimap:SetScale(0.95)
__________________
"Are we there yet?"

GrimUI
[SIGPIC][/SIGPIC]
  Reply With Quote
09-17-09, 10:55 AM   #6
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
My addon, PocketPlot, doesn't made the arrows follow a square pattern. I don't recall any addon I used doing that. Are you sure Chinchilla does this? If so, look in its code to see how.
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote
09-17-09, 11:19 AM   #7
Grimsin
A Molten Giant
 
Grimsin's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2006
Posts: 990
positive hehe i was up half the night studding how it works. I think it has to do with either setting a mask texture for the MiniMapcluster frame some how OR it has to do with this chunk of setpoint code i found in chinchila that makes no sense to me but looks like it might vary well be how its done.

if you want to take a look maybe you would understand it better the controls for the function are in the Appearance folder in Chinchila and then in the Appearance.lua

starting around line 338 to 411 is where the part i dont understand fully is and looks most likely like what makes those arrows follow a square pattern instead of a round one.
__________________
"Are we there yet?"

GrimUI
[SIGPIC][/SIGPIC]
  Reply With Quote
09-17-09, 11:32 AM   #8
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
That function doesn't have anything to do with the directional arrows on the minimap. The function you're referencing is just Chinchilla setting its shape and its border. I don't think addons have access to those arrows...

Yeah, Chinchilla doesn't change the shape that the arrows follow. (screenshot)
Attached Thumbnails
Click image for larger version

Name:	WoWScrnShot_091709_123006.jpg
Views:	666
Size:	35.0 KB
ID:	3373  
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote
09-17-09, 11:40 AM   #9
Grimsin
A Molten Giant
 
Grimsin's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2006
Posts: 990
HAHA your right! i just looked again and figured out that the arrows i was looking at were not the bliz default ones ROFL!!!!!

gah (cry)

hahaha i was up till 4am for that!
__________________
"Are we there yet?"

GrimUI
[SIGPIC][/SIGPIC]
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Minimap Shape changing


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off