Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7499


Ignore:
Timestamp:
Sep 29, 2010, 2:49:26 PM (14 years ago)
Author:
dafrick
Message:

Fix to get rid of lua/cegui error.

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

Legend:

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

    r7163 r7499  
    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"/>
    2827        </Window>
    2928    </Window>
  • code/branches/tutorial2/data/gui/scripts/ChatBox.lua

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