Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 28, 2011, 4:21:14 PM (13 years ago)
Author:
dafrick
Message:

Making NotificationQueue XML-loadable. Adding notifications to all levels.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/tutoriallevel3/src/modules/notifications/NotificationQueueCEGUI.h

    r8453 r8636  
    7070
    7171        public:
    72             NotificationQueueCEGUI(const std::string& name, const std::string& senders = NotificationListener::ALL, unsigned int size = NotificationQueue::DEFAULT_SIZE, unsigned int displayTime = NotificationQueue::DEFAULT_DISPLAY_TIME);
     72            NotificationQueueCEGUI(BaseObject* creator);
    7373            virtual ~NotificationQueueCEGUI();
     74
     75            virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);
    7476
    7577            void destroy(bool noGraphics = false); // Destroys the NotificationQueue.
    7678
    77             /**
    78             @brief Set the size of the window that displays the NotificationQueue.
    79             @param size A vector whose first component is the relative width of the window (a value between 0 and 1) and whose second component is the absolute width in pixels (additional to the relative width, can be negative). The height is set such that exactly as many Notifications fit as is the maximum size of the NotificationQueue (in terms of the number of Notifications).
    80             */
    81             inline void setDisplaySize(const Vector2& size)
    82                 { this->setDisplaySize(Vector4(size.x, size.y, 0.0, 0.0)); }
    8379            void setDisplaySize(const Vector4& size); // Set the size of the window that displays the NotificationQueue.
     80           
    8481            /**
    8582            @brief Get the size of the window that displays the NotificationQueue.
     
    130127           
    131128        protected:
     129            virtual void create(void); // Creates the NotificationQueue in lua.
     130           
    132131            virtual void notificationPushed(Notification* notification); // Is called by the NotificationQueue when a notification was pushed
    133132            virtual void notificationPopped(void); // Is called by the NotificationQueue when a notification was popped.
     
    146145            Vector4 fontColor_; //!< The font color of the Notifications text as a vector, in RGBA form, with values from 0 to 1.
    147146            std::string fontColorStr_; //!< The font color of the Notifications text as a string with the ARGB hexadecimal values.
    148            
    149             void create(void); // Creates the NotificationQueue in lua.
     147
     148            void initialize(void); // Initializes The NotificationQueueCEGUI.
    150149
    151150    }; // tolua_export
Note: See TracChangeset for help on using the changeset viewer.