Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8627


Ignore:
Timestamp:
May 27, 2011, 9:54:03 PM (13 years ago)
Author:
landauf
Message:

merged revisions 8527-8530 from trunk to presentation branch:

  • 8527: build fix for mingw, d_ostream.open() is not defined for wchar
  • 8528: disable LOD for some of the debris meshes which cause a crash on old versions of Ogre
  • 8529: fixed lua error when pressing ESC ingame after closing the console
  • 8530: added config value to define the scroll speed in CEGUI listboxes. default 1 line.
Location:
code/branches/presentation
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation/data/gui/scripts/SheetManager.lua

    r8584 r8627  
    216216function keyESC()
    217217    -- HUGE, very HUGE hacks!
    218    
     218
    219219    -- If the InGameConsole is active, ignore the ESC command.
    220220    if bInGameConsoleClosed == true then
    221221        bInGameConsoleClosed = false
    222         if activeMenuSheets[i] and activeMenuSheets[1].sheet.name == "MainMenu" then
     222        if activeMenuSheets[1] and activeMenuSheets[1].sheet.name == "MainMenu" then
    223223            return
    224224        end
  • code/branches/presentation/data/levels/templates/lodInformation.oxt

    r8598 r8627  
    1515      <MeshLodInformation mesh=CuboidLandingZone.mesh enabled=false/>
    1616      <MeshLodInformation mesh=HydroHarvester.mesh enabled=false />
     17
     18      <!-- disable LOD for some debris meshes which caused a crash (fixed in Ogre 1.7.3) -->
     19      <MeshLodInformation mesh=BodyDebris1.mesh enabled=false/>
     20      <MeshLodInformation mesh=WingDebris2.mesh enabled=false/>
    1721    </lodinformation>
    1822  </Level>
  • code/branches/presentation/src/libraries/core/GUIManager.cc

    r8467 r8627  
    6565#endif
    6666
    67 #ifdef ORXONOX_PLATFORM_WINDOWS
     67#if defined(ORXONOX_PLATFORM_WINDOWS) && !defined(ORXONOX_COMPILER_MINGW)
    6868#  include <windows.h>
    6969#endif
     
    7373#include "util/Debug.h"
    7474#include "util/Exception.h"
     75#include "util/Math.h"
    7576#include "util/OrxAssert.h"
    7677#include "ConfigValueIncludes.h"
     
    121122                d_ostream.close();
    122123
    123 #ifdef ORXONOX_PLATFORM_WINDOWS
     124#if defined(ORXONOX_PLATFORM_WINDOWS) && !defined(ORXONOX_COMPILER_MINGW)
    124125            // filename.c_str() is UTF-8 encoded, but Windows expects characters
    125126            // according to the current codepage or UTF-16 (wchar)
     
    156157        }
    157158
    158 #ifdef ORXONOX_PLATFORM_WINDOWS
     159#if defined(ORXONOX_PLATFORM_WINDOWS) && !defined(ORXONOX_COMPILER_MINGW)
    159160        /// Converts a UTF-8 character sequence to Windows UTF-16
    160161        static std::wstring utf8ToUtf16(const std::string& utf8text)
     
    355356    {
    356357        SetConfigValue(guiScheme_, GUIManager::defaultScheme_) .description("Changes the current GUI scheme.") .callback(this, &GUIManager::changedGUIScheme);
     358        SetConfigValue(numScrollLines_, 1).description("How many lines to scroll in a list if the scroll wheel is used");
    357359    }
    358360
     
    593595    void GUIManager::mouseScrolled(int abs, int rel)
    594596    {
    595         this->protectedCall(boost::bind(&CEGUI::System::injectMouseWheelChange, _1, (float)rel));
     597        this->protectedCall(boost::bind(&CEGUI::System::injectMouseWheelChange, _1, (float)sgn(rel) * this->numScrollLines_));
    596598    }
    597599
  • code/branches/presentation/src/libraries/core/GUIManager.h

    r8423 r8627  
    186186        std::string guiScheme_;
    187187
     188        int numScrollLines_; ///< How many lines to scroll in a list if the scroll wheel is used
     189
    188190    }; // tolua_export
    189191} // tolua_export
Note: See TracChangeset for help on using the changeset viewer.