Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 11, 2010, 2:42:47 PM (14 years ago)
Author:
dafrick
Message:

Adding new level notifications.oxw, to "showcase", or at this stage rather "test" Notifications.
Restoring tutorial.oxw to its old state, before it was hijacked by me for testing.

Extending Script class. Now also normal orxonox code can be executed with it, the execution of code can be triggered with Triggers (obviously) and cod can also executed on load.
I needed this to load the NotificationLayer in levels where it is needed.
Also inserted a Script that loads the NotificationQueue to display Notifications in all levels it was needed.

Location:
code/trunk/src/modules/notifications
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/modules/notifications/NotificationDispatcher.cc

    r7403 r7404  
    7272        Method for creating a NotificationDispatcher object through XML.
    7373    */
    74     void NotificationDispatcher::XMLPort(Element& xmlelement, XMLPort::Mode mode)
     74    void NotificationDispatcher::XMLPort(Element& xmlElement, XMLPort::Mode mode)
    7575    {
    76         SUPER(NotificationDispatcher, XMLPort, xmlelement, mode);
     76        SUPER(NotificationDispatcher, XMLPort, xmlElement, mode);
    7777
    78         XMLPortEventSink(NotificationDispatcher, BaseObject, "trigger", trigger, xmlelement, mode); //TODO: Change BaseObject to MultiTrigger as soon as MultiTrigger is the base of all triggers.
     78        XMLPortEventSink(NotificationDispatcher, BaseObject, "trigger", trigger, xmlElement, mode); //TODO: Change BaseObject to MultiTrigger as soon as MultiTrigger is the base of all triggers.
    7979    }
    8080
    81     void NotificationDispatcher::XMLEventPort(Element& xmlelement, XMLPort::Mode mode)
     81    void NotificationDispatcher::XMLEventPort(Element& xmlElement, XMLPort::Mode mode)
    8282    {
    83         SUPER(NotificationDispatcher, XMLEventPort, xmlelement, mode);
     83        SUPER(NotificationDispatcher, XMLEventPort, xmlElement, mode);
    8484
    85         XMLPortEventState(NotificationDispatcher, BaseObject, "trigger", trigger, xmlelement, mode);
     85        XMLPortEventState(NotificationDispatcher, BaseObject, "trigger", trigger, xmlElement, mode);
    8686    }
    8787
  • code/trunk/src/modules/notifications/NotificationDispatcher.h

    r7403 r7404  
    5555            virtual ~NotificationDispatcher(); //!< Destructor.
    5656
    57             virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); //!< Method for creating a NotificationDispatcher object through XML.
    58             virtual void XMLEventPort(Element& xmlelement, XMLPort::Mode mode);
     57            virtual void XMLPort(Element& xmlElement, XMLPort::Mode mode); //!< Method for creating a NotificationDispatcher object through XML.
     58            virtual void XMLEventPort(Element& xmlElement, XMLPort::Mode mode);
    5959
    6060            /**
Note: See TracChangeset for help on using the changeset viewer.