WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   nUI: Bug Reports (https://www.wowinterface.com/forums/forumdisplay.php?f=90)
-   -   NEW IM chat mode (https://www.wowinterface.com/forums/showthread.php?t=33568)

Chmee 06-28-10 12:10 PM

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).

spiel2001 06-28-10 12:15 PM

Can you post a screen shot of what you're describing. It does not sound correct.

What display resolution are you using?

Xrystal 06-28-10 12:42 PM

That sounds like the clickAnywhereButton. Scott, to save you hunting around while at work :D Heres the relevant code in the FloatingChatWindow.lua file in case it helps you figure it out :D

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



All times are GMT -6. The time now is 07:48 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI