Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 20, 2009, 9:01:17 PM (16 years ago)
Author:
danielh
Message:
  • Added helper method to HumanController to get it's ControllableEntity as a Pawn
  • Removed tooltip, added default (empty) values for text and image from BaseItem
  • Fixed tolua in BaseItem.h
  • Added object to PickupCollection for the current UsableItem
  • Moved most inventory logic from Lua to PickupInventory (still slow)

TODO

  • Re-use of CEGUI item windows, destroying and creating them on each update is slow, very slow
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/pickups2/src/orxonox/objects/pickup/BaseItem.cc

    r2972 r3001  
    5252        this->setOwner(0);
    5353        this->setPickupIdentifier(this->getName());
     54        this->setGUIImage("");
     55        this->setGUIText("");
    5456    }
    5557    //! Deconstructor.
     
    6870
    6971        XMLPortParam(BaseItem, "guiText", setGUIText, getGUIText, xmlelement, mode);
    70         XMLPortParam(BaseItem, "guiTooltip", setGUITooltip, getGUITooltip, xmlelement, mode);
    7172        XMLPortParam(BaseItem, "guiImage", setGUIImage, getGUIImage, xmlelement, mode);
    7273    }
     
    103104        return true;
    104105    }
     106
     107    const std::string& BaseItem::getGUIText() const { return this->guiText_; }
    105108}
Note: See TracChangeset for help on using the changeset viewer.