Thread Tools Display Modes
Unread 06-28-10, 12:10 PM   #1
Chmee
A Molten Giant
Join Date: Dec 2006
Posts: 960
NEW IM chat mode

The latest Blizz chat interface allows picking "IM Style" or "classic style". If I pick the former, I can't access the "scroll up" button - instead the text edit box opens. In classic style, the edit box only opens on hitting the return key. It looks like IM style has an area up there where you can click to get the edit box, and it's too wide when put in the left info panel. nUI v. 5.06.26. In fact, the edit box itself overlaps the buttons, in either style. Maybe the fix is to shorten the box (and the corresponding clickable area in IM style).
Chmee is offline  
Unread 06-28-10, 12:15 PM   #2
spiel2001
nUI's Author
 
spiel2001's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 7,724
Can you post a screen shot of what you're describing. It does not sound correct.

What display resolution are you using?
__________________

What people don't get is that I am, ultimately, an artist at heart.
My brush has two colors, 1 and 0, and my canvas is made of silicon.



Official nUI Web Site: http://www.nUIaddon.com
Official nUI Support Forum: http://forums.nUIaddon.com
My day job: http://www.presidio.com/
spiel2001 is offline  
Unread 06-28-10, 12:42 PM   #3
Xrystal
nUI User and Supporter
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,035
That sounds like the clickAnywhereButton. Scott, to save you hunting around while at work Heres the relevant code in the FloatingChatWindow.lua file in case it helps you figure it out

Code:
<Button name="$parentClickAnywhereButton" setAllPoints="true" hidden="true" parentKey="clickAnywhereButton">
	<Scripts>
		<OnLoad>
		FCFClickAnywhereButton_OnLoad(self);
		</OnLoad>
		<OnEvent>
		FCFClickAnywhereButton_OnEvent(self, event, ...);
		</OnEvent>
		<OnClick>
		ChatEdit_SetLastActiveWindow(self:GetParent().editBox);
		</OnClick>
	</Scripts>
</Button>
Code:
function FCFClickAnywhereButton_OnLoad(self)
	self:SetFrameLevel(self:GetParent():GetFrameLevel() - 1);
	self:RegisterEvent("VARIABLES_LOADED");
	self:RegisterEvent("CVAR_UPDATE");
	self:RegisterForClicks("LeftButtonDown", "RightButtonDown");
	FCFClickAnywhereButton_UpdateState(self);
end

function FCFClickAnywhereButton_OnEvent(self, event, ...)
	local arg1 = ...;
	if ( event == "VARIABLES_LOADED" or
		(event == "CVAR_UPDATE" and (arg1 == "chatStyle" or arg1 == "CHAT_WHOLE_WINDOW_CLICKABLE")) ) then
		FCFClickAnywhereButton_UpdateState(self);
	end
end

function FCFClickAnywhereButton_UpdateState(self)
	if ( GetCVar("chatStyle") == "im" and GetCVarBool("wholeChatWindowClickable") and
		LAST_ACTIVE_CHAT_EDIT_BOX ~=  self:GetParent().editBox ) then
		self:Show();
	else
		self:Hide();
	end
end
__________________
Xrystal is offline  
 

Go BackWoWInterface » Featured Projects » nUI, MozzFullWorldMap and PartySpotter » Support » nUI: Bug Reports » NEW IM chat mode

Thread Tools
Display Modes

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