View Single Post
06-03-13, 03:42 PM   #7
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,929
To stop the errors coming up and make frame 1 be docked then you need to make the following changes in the plugin file. This is a block of code around line 166 in the file. I assume changing the f1 to f2, f3 etc will pick the alternative frame layouts. So it may be possible to set up a frame specifically for nUI docking purposes.

Code:
--rbc_printf("plugin.setEnabled(true)");	

local HB_Frame = f1_HealBot_Action -- HealBot_Action;	-- Xrystal 5.3
if not HB_Frame then
	--rbc_printf("Healbot_Action Frame is nil");	-- Xrystal 5.3
end
plugin.HB_Frame = HB_Frame;

if not HB_Frame.saved_parent then
	HB_Frame.saved_parent   = HB_Frame:GetParent();
	HB_Frame.border_color   = HB_Frame:GetBackdropBorderColor();
	HB_Frame.backdrop_color = HB_Frame:GetBackdropColor();
end
		
HB_Frame:SetParent( plugin.container );
HB_Frame:SetPoint( "TOPLEFT", plugin.container, "TOPLEFT", -10, 10 );
HB_Frame:SetPoint( "BOTTOMRIGHT", plugin.container, "BOTTOMRIGHT", 0, 0 );
HB_Frame:SetFrameStrata( plugin.container:GetFrameStrata() );
HB_Frame:SetFrameLevel( plugin.container:GetFrameLevel()+1 );
HB_Frame:SetBackdropBorderColor( 0, 0, 0, 1 );
HB_Frame:SetBackdropColor( 0, 0, 0, 0 );
	
HealBot_Globals.HideOptions = 1;

-- Xrystal 5.3
if ( HealBot_Action_OptionsButton ) then
	HealBot_Action_OptionsButton:Hide();	
end
--HealBot_Action_OptionsButton:Hide();

--HealBot_Config.HideOptions = 1;
--HealBot_Options_DisableHealBotOpt:SetChecked(0)
--HealBot_Options_DisableHealBot(0);
ShowUIPanel(HB_Frame);
nUI_Movers:lockFrame( HB_Frame, true, nil );
__________________


Characters:
Gwynedda - 70 - Demon Warlock
Galaviel - 65 - Resto Druid
Gamaliel - 61 - Disc Priest
Gwynytha - 60 - Survival Hunter
Lienae - 60 - Resto Shaman
Plus several others below level 60

Info Panel IDs : http://www.wowinterface.com/forums/s...818#post136818