Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 5, 2010, 11:11:22 PM (14 years ago)
Author:
dafrick
Message:

NotificationQueue can now be moved in edit mode.

Location:
code/branches/notifications
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/notifications/data/gui/scripts/NotificationLayer.lua

    r7354 r7362  
    133133        if v ~= nil then
    134134            root:removeChildWindow(v)
    135             local frame = winMgr:createWindow("MenuWidgets/FrameWindow", "orxonox/NotificationLayer/Root/EditMode/" .. P.nameList(k))
     135            local frame = winMgr:createWindow("MenuWidgets/FrameWindow", "orxonox/NotificationLayer/Root/EditMode/" .. P.nameList[k])
    136136            frame:setArea(v:getArea())
     137            root:addChildWindow(frame)
    137138            P.editList[k] = frame
    138139        end
     
    153154        end
    154155    end
     156
     157    showMenuSheet(P.name, false, true)
    155158end
    156159
  • code/branches/notifications/src/modules/notifications/NotificationManager.cc

    r7360 r7362  
    6464        this->highestIndex_ = 0;
    6565
     66        ModifyConsoleCommand("enterEditMode").setObject(this);
     67
    6668        if(GameMode::showsGraphics())
    6769        {
     
    7981    NotificationManager::~NotificationManager()
    8082    {
    81        
     83        ModifyConsoleCommand("enterEditMode").setObject(NULL);
    8284    }
    8385
     
    310312    void NotificationManager::enterEditMode(void)
    311313    {
     314        GUIManager::getInstance().hideGUI("NotificationLayer");
     315        GUIManager::getInstance().showGUI("NotificationLayer", false, false);
    312316        GUIManager::getInstance().getLuaState()->doString("NotificationLayer.enterEditMode()");
    313317    }
Note: See TracChangeset for help on using the changeset viewer.