Changeset 8637 for code/branches/presentation/src/libraries
- Timestamp:
- May 28, 2011, 5:10:01 PM (14 years ago)
- Location:
- code/branches/presentation
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation
- Property svn:mergeinfo changed
/code/branches/tutoriallevel (added) merged: 7828-7831,7894,8370 /code/branches/tutoriallevel2 (added) merged: 8371,8374,8376-8378,8444-8451 /code/branches/tutoriallevel3 (added) merged: 8453,8634,8636
- Property svn:mergeinfo changed
-
code/branches/presentation/src/libraries/core/GUIManager.cc
r8627 r8637 38 38 #include <CEGUIDefaultLogger.h> 39 39 #include <CEGUIExceptions.h> 40 #include <CEGUIFontManager.h> 40 41 #include <CEGUIInputEvent.h> 41 42 #include <CEGUIMouseCursor.h> … … 44 45 #include <CEGUIWindow.h> 45 46 #include <CEGUIWindowManager.h> 47 #include <CEGUIXMLAttributes.h> 46 48 #include <elements/CEGUIListbox.h> 47 49 #include <elements/CEGUIListboxItem.h> … … 729 731 } 730 732 733 /** 734 @brief 735 Adds a new freetype font to the CEGUI system. 736 @param name 737 The name of the new font. 738 @param size 739 The font size of the new font in pixels. 740 @param fontName 741 The filename of the font. 742 */ 743 /*static*/ void GUIManager::addFontHelper(const std::string& name, int size, const std::string& fontName) 744 { 745 if(CEGUI::FontManager::getSingleton().isFontPresent(name)) // If a font with that name already exists. 746 return; 747 748 CEGUI::Font* font = NULL; 749 CEGUI::XMLAttributes xmlAttributes; 750 751 // Attributes specified within CEGUIFont 752 xmlAttributes.add("Name", name); 753 xmlAttributes.add("Filename", fontName); 754 xmlAttributes.add("ResourceGroup", ""); 755 xmlAttributes.add("AutoScaled", "true"); 756 xmlAttributes.add("NativeHorzRes", "800"); 757 xmlAttributes.add("NativeVertRes", "600"); 758 759 // Attributes specified within CEGUIXMLAttributes 760 xmlAttributes.add("Size", multi_cast<std::string>(size)); 761 xmlAttributes.add("AntiAlias", "true"); 762 763 font = CEGUI::FontManager::getSingleton().createFont("FreeType", xmlAttributes); 764 if(font != NULL) 765 font->load(); 766 } 767 731 768 } -
code/branches/presentation/src/libraries/core/GUIManager.h
r8627 r8637 128 128 129 129 // TODO: Temporary hack because the tolua exported CEGUI method does not seem to work 130 static void subscribeEventHelper(CEGUI::Window* window, const std::string& event, const std::string& function); //tolua_export 131 static void setTooltipTextHelper(CEGUI::ListboxItem* item, const std::string& toooltip); //tolua_export 132 static void setItemTooltipsEnabledHelper(CEGUI::Listbox* listbox, bool enabled); //tolua_export 130 static void subscribeEventHelper(CEGUI::Window* window, const std::string& event, const std::string& function); // tolua_export 131 static void setTooltipTextHelper(CEGUI::ListboxItem* item, const std::string& toooltip); // tolua_export 132 static void setItemTooltipsEnabledHelper(CEGUI::Listbox* listbox, bool enabled); // tolua_export 133 static void addFontHelper(const std::string& name, int size, const std::string& fontName); // tolua_export 133 134 134 135 static GUIManager& getInstance() { return Singleton<GUIManager>::getInstance(); } // tolua_export -
code/branches/presentation/src/libraries/network/synchronisable/Synchronisable.cc
r8329 r8637 383 383 /** 384 384 * This function determines, wheter the object should be saved to the bytestream (according to its syncmode/direction) 385 * @param id gamestate id386 385 * @param mode Synchronisation mode (toclient, toserver or bidirectional) 387 386 * @return true/false … … 397 396 /** 398 397 * This function determines, wheter the object should accept data from the bytestream (according to its syncmode/direction) 399 * @param id gamestate id400 398 * @param mode Synchronisation mode (toclient, toserver or bidirectional) 401 399 * @return true/false
Note: See TracChangeset
for help on using the changeset viewer.