');
document.write('');
var yuipath = 'clientscript/yui';
var yuicombopath = '';
var remoteyui = false;
}
else // Load Rest of YUI remotely (where possible)
{
var yuipath = 'https://ajax.googleapis.com/ajax/libs/yui/2.9.0/build';
var yuicombopath = '';
var remoteyui = true;
if (!yuicombopath)
{
document.write('');
}
}
var SESSIONURL = "s=bca19e0f055679e53ba9394becebeea3&";
var SECURITYTOKEN = "guest";
var IMGDIR_MISC = "warmane/misc";
var IMGDIR_BUTTON = "warmane/buttons";
var vb_disable_ajax = parseInt("0", 10);
var SIMPLEVERSION = "422";
var BBURL = "https://forum.warmane.com";
var LOGGEDIN = 0 > 0 ? true : false;
var THIS_SCRIPT = "showthread";
var RELPATH = "showthread.php?t=360903";
var PATHS = {
forum : "",
cms : "",
blog : ""
};
var AJAXBASEURL = "https://forum.warmane.com/";
var CoTTooltips = {
rename: true,
icons: false,
iconsize: 15,
qualitycolor: true,
overridecolor: {
spells: '#839309',
items: '',
npcs: '#fff',
objects: '#fff',
quests: '#ffb100',
achievements: '#fff'
}
};
// -->
Personal Health and Target Health addon
Member
Personal Health and Target Health addon
Greetings reader,
I am as evident from the name of the topic searching for an addon that will provide me with the ability to move ONLY my own health and that of my target, much alike Xpearl, however not so flashy and without any other frames included. I've been reffered to move everything, but it doesnt seem to be working properly for me : http://imgur.com/a/kq5e8 there is simply no way to interact with the addon.
Do any of you addon masters have a way of assisting me?
Many thanks
Member
Easiest way to achieve what you want. You will have to adjust x,y coordinates naturally.
/run local x,y = 10, 25 PlayerFrame:ClearAllPoints() PlayerFrame:SetPoint("CENTER", UIParent, "CENTER", x, y)
/run local x,y = 25, 10 TargetFrame:ClearAllPoints() TargetFrame:SetPoint("CENTER", UIParent, "CENTER", x, y)
You can use following code inside addon:
local f = CreateFrame("Frame")
f:SetScript("OnEvent", function()
--[[ Moves the player frame ]]--
local x,y = 10, 25 PlayerFrame:ClearAllPoints() PlayerFrame:SetPoint("CENTER", UIParent, "CENTER", x, y)
--[[ Moves the target frame ]]--
local x,y = 25, 10 TargetFrame:ClearAllPoints() TargetFrame:SetPoint("CENTER", UIParent, "CENTER", x, y)
end)
f:RegisterEvent("PLAYER_ENTERING_WORLD")
Member
Amazing. The /runs were exactly what i needed ! Thanks a ton
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules