Changeset 6634 for code/branches/chat/src
- Timestamp:
- Mar 29, 2010, 1:44:13 PM (15 years ago)
- Location:
- code/branches/chat/src/orxonox/graphics
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/chat/src/orxonox/graphics/CMakeLists.txt
r6633 r6634 6 6 GlobalShader.cc 7 7 Model.cc 8 ChatBox.cc 8 9 ParticleEmitter.cc 9 10 ParticleSpawner.cc -
code/branches/chat/src/orxonox/graphics/ChatBox.cc
r6633 r6634 47 47 // Configure the history size 48 48 // Pressing <ENTER> changes the maximal number of entries within the history Listbox 49 historySize->subscribeEvent(Editbox::EventTextAccepted, Event::Subscriber(& DemoSample::Event_HistorySizeChange, this));49 historySize->subscribeEvent(Editbox::EventTextAccepted, Event::Subscriber(&ChatBox::Event_HistorySizeChange, this)); 50 50 51 51 // Configure the text Editbox 52 52 // Pressing <ENTER> puts the text into the history Listbox 53 chatText->subscribeEvent(Editbox::EventTextAccepted, Event::Subscriber(& DemoSample::Event_ChatTextAdded, this));53 chatText->subscribeEvent(Editbox::EventTextAccepted, Event::Subscriber(&ChatBox::Event_ChatTextAdded, this)); 54 54 55 55 // Configure the font name Combobox 56 56 // Selecting a name changes the font used in the history Listbox and the text Editbox 57 fontName->subscribeEvent(Combobox::EventTextChanged, Event::Subscriber(& DemoSample::Event_FontChange, this));57 fontName->subscribeEvent(Combobox::EventTextChanged, Event::Subscriber(&ChatBox::Event_FontChange, this)); 58 58 59 59 // Configure the font size Spinner 60 60 // Selecting a size changes the font size used in the history Listbox and the text Editbox 61 fontSize->subscribeEvent(Spinner::EventValueChanged, Event::Subscriber(& DemoSample::Event_FontChange, this));61 fontSize->subscribeEvent(Spinner::EventValueChanged, Event::Subscriber(&ChatBox::Event_FontChange, this)); 62 62 fontSize->setTextInputMode(Spinner::Integer); 63 63 fontSize->setMinimumValue(4.0f); … … 281 281 { 282 282 // Display the error message in the chat window 283 addChatText(e.getMessage());283 //addChatText(e.getMessage()); 284 284 font = 0; 285 285 }
Note: See TracChangeset
for help on using the changeset viewer.