Changeset 2858 for code/branches/questsystem5/src/orxonox/overlays/notifications/NotificationQueue.h
- Timestamp:
- Mar 26, 2009, 9:45:23 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/questsystem5/src/orxonox/overlays/notifications/NotificationQueue.h
r2785 r2858 71 71 @brief 72 72 Displays Notifications from specific senders. 73 Beware! The NotificationQueue is an OverlayGruop and thus cannot be be a sub-element of an OverlayGroup (at least no for now.) 74 75 Creating a NotificationQueue through XML goes as follows: 76 <NotificationQueue 77 name = "SuperQueue" //Name of your OverlayQueue. 78 maxSize = "5" //The maximum size of Notifications displayed. 79 notificationLength = "64" //The maximum number of characters of a Notification, that are displayed. (Default is 5) 80 displayTime = "30" //The time a Notification is displayed in seconds. (Default is 30) 81 targets = "target1, target2" //The senders this NotificationQueue displays Notifications from. (all, if all Notifications should be displayed.) 82 font = "VeraMono" //The font (Default is VeraMono) 83 fontSize = '0.4' //The font size. (Default is 0.025) 84 position = "0.0, .0.0" //The position of the NotificationQueue. (Default is 0.0,0.0) 85 /> 73 86 @author 74 87 Damian 'Mozork' Frick … … 140 153 bool getTargets(std::string* string) const; //!< Returns a string consisting of the concatination of the targets. 141 154 142 inline void setPosition(Vector2 pos) 155 /** 156 @brief Sets the position of the NotificationQueue. 157 @param pos The position. 158 */ 159 inline void setPosition(Vector2 pos) 143 160 { this->position_ = pos; this->positionChanged(); } 144 161 145 void scroll(const Vector2 pos); 162 void scroll(const Vector2 pos); //!< Scrolls the NotificationQueue, meaning all NotificationOverlays are moved the input vector. 146 163 147 164 private: … … 183 200 bool setFont(const std::string & font); //!< Set the font. 184 201 185 void positionChanged( );202 void positionChanged(void); //!< Aligns all the Notifications to the position of the NotificationQueue. 186 203 187 204 void addNotification(Notification* notification, const std::time_t & time); //!< Add a notification to the queue.
Note: See TracChangeset
for help on using the changeset viewer.