Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 29, 2010, 9:56:07 PM (14 years ago)
Author:
dafrick
Message:

Enabled the ChatBox to be closed by pressing the close button in the upper right corner of the frame window.

Location:
code/branches/presentation3/data/gui
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation3/data/gui/layouts/ChatBox.layout

    r6928 r7009  
    66        <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
    77        <Property Name="UnifiedAreaRect" Value="{{0,0},{0,0},{1,0},{1,0}}" />
    8         <Window Type="MenuWidgets/FrameWindow" Name="/ChatBox" >
     8        <Window Type="MenuWidgets/FrameWindow" Name="orxonox/ChatBox" >
    99            <Property Name="Text" Value="Chat" />
    1010            <Property Name="InheritsAlpha" Value="False" />
     
    2525                <Property Name="UnifiedAreaRect" Value="{{0.02,0},{1,-30},{0.98,0},{1,-5}}" />
    2626            </Window>
     27            <Event Name="CloseClicked" Function="ChatBox.ChatBoxCloseButton_clicked"/>
    2728        </Window>
    2829    </Window>
  • code/branches/presentation3/data/gui/scripts/ChatBox.lua

    r6928 r7009  
    22
    33local P = createMenuSheet("ChatBox")
     4
     5function P.ChatBoxCloseButton_clicked(e)
     6    orxonox.ChatInputHandler:getInstance():deactivate()
     7end
     8
    49return P
    510
Note: See TracChangeset for help on using the changeset viewer.