Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7612


Ignore:
Timestamp:
Nov 4, 2010, 10:57:19 AM (14 years ago)
Author:
dafrick
Message:

Reverting a change that I made some time ago.
It turns out, that CEGUI doesn't like it (on some machines, expecially on tardis) if Events for a window are defined after the child windows are defined in the .layout file.
So putting it above the child windows should be fine.

Location:
code/trunk/data/gui
Files:
2 edited

Legend:

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

    r7500 r7612  
    1313            <!--<Property Name="UnifiedAreaRect" Value="{{0.01,0},{0.03,0},{0.6,0},{0.69375,0}}" />-->
    1414            <Property Name="UnifiedAreaRect" Value="{{0.35,0},{0.10,0},{0.98,0},{0.65,0}}" />
     15            <Event Name="CloseClicked" Function="ChatBox.ChatBoxCloseButton_clicked"/>
    1516            <Window Type="MenuWidgets/Listbox" Name="orxonox/ChatBox/history" >
    1617                <Property Name="Font" Value="Monofur-10" />
  • code/trunk/data/gui/scripts/ChatBox.lua

    r7500 r7612  
    22
    33local P = createMenuSheet("ChatBox")
    4 
    5 function P.onLoad()
    6     local window = winMgr:getWindow("orxonox/ChatBox")
    7     orxonox.GUIManager:subscribeEventHelper(window, "CloseClicked", P.name .. ".ChatBoxCloseButton_clicked")
    8 end
    94
    105function P.ChatBoxCloseButton_clicked(e)
Note: See TracChangeset for help on using the changeset viewer.