Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 25, 2011, 5:02:13 AM (14 years ago)
Author:
rgrieder
Message:

Restored compatibility of our Lua code with CEGUI:
Some functions were renamed. I've done so too and added an alias at initialisation for older versions.
Caution: Credits and Quest menu don't yet work because CEGUI 0.7 has less Font functionality.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/kicklib/src/libraries/core/GUIManager.cc

    r7960 r7961  
    173173#if CEGUI_VERSION_MAJOR < 1 && CEGUI_VERSION_MINOR < 7
    174174        guiSystem_ = new System(guiRenderer_, resourceProvider_, 0, scriptModule_);
     175        // Add functions that have been renamed in newer versions
     176        luaState_->doString("CEGUI.SchemeManager.create = CEGUI.SchemeManager.loadScheme");
     177        luaState_->doString("CEGUI.Window.getUnclippedOuterRect = CEGUI.Window.getUnclippedPixelRect");
    175178#else
    176179        guiSystem_ = &System::create(*guiRenderer_, resourceProvider_, 0, imageCodec_, scriptModule_);
Note: See TracChangeset for help on using the changeset viewer.