iLocation

iLocation

20.3k Downloads

Only coordinates on plugin

tb1337 opened this issue ยท 1 comments

commented

From Curseforge:

This is not a bug report, but a feature request.

I really like this addon, I used Broker_Location before it was abandoned.

However I'm missing the option to only show coordinates (no zone text at all) in the Broker text, so I added it (though rather ugly code style):

In config.lua:

The ZoneText needed a 4th option around line 88:

[4] = L["None"],

In iLocation.lua I updated the following function (and also added parenthesis to the coordinates):

function iLocation:UpdatePlugin()
self.ldb.text = format_zone(nil, self.db.ZoneText > 1 and "" or nil, self.db.ZoneText == 2 or nil);
if( self.db.ZoneText == 4 ) then
self.ldb.text = "";
end

if( self.db.ShowCoordinates ) then
	local coords = "("..format_coords()..")";
	self.ldb.text = self.ldb.text ..(coords ~= "" and " " or "")..coords;
end

self:CheckTooltips("Main");

end
My added parenthesis around the coordinates are a matter of taste. But works for me.

Thanks for the addon, keep up the good work!

commented

Implemented. You may also choose the parenthesis style ๐Ÿ‘