aboutsummaryrefslogtreecommitdiff
path: root/assets/Weichenhebel-CooleLokAnimiert
diff options
context:
space:
mode:
authorGabriel Pérez-Cerezo <gabriel@gpcf.eu>2017-01-18 22:47:26 +0100
committerGabriel Pérez-Cerezo <gabriel@gpcf.eu>2017-01-18 22:47:26 +0100
commit0030409dd34f611b90861a528d6735a44dd663f2 (patch)
tree734fb3952b601b83e63f9c7a1c917e74b2cdd77e /assets/Weichenhebel-CooleLokAnimiert
parent176ee0627ebc397c60650fc5b059829788fe3cdc (diff)
downloadadvtrains-0030409dd34f611b90861a528d6735a44dd663f2.tar.gz
advtrains-0030409dd34f611b90861a528d6735a44dd663f2.tar.bz2
advtrains-0030409dd34f611b90861a528d6735a44dd663f2.zip
Revert "Added stop and reverse rail"
This reverts commit 633d514f5b63d28d80a5c0981ee3e99b61899c41. Conflicts: tracks.lua
Diffstat (limited to 'assets/Weichenhebel-CooleLokAnimiert')
0 files changed, 0 insertions, 0 deletions
ou should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #ifndef GUIINVENTORYMENU_HEADER #define GUIINVENTORYMENU_HEADER #include "common_irrlicht.h" #include "inventory.h" #include "utility.h" #include "modalMenu.h" void drawInventoryItem(gui::IGUIEnvironment* env, InventoryItem *item, core::rect<s32> rect, const core::rect<s32> *clip=0); class GUIInventoryMenu : public GUIModalMenu { struct ItemSpec { ItemSpec() { i = -1; } ItemSpec(const std::string &a_name, s32 a_i) { listname = a_name; i = a_i; } bool isValid() const { return i != -1; } std::string listname; s32 i; }; struct ListDrawSpec { ListDrawSpec() { } ListDrawSpec(const std::string &a_name, v2s32 a_pos, v2s32 a_geom) { listname = a_name; pos = a_pos; geom = a_geom; } std::string listname; v2s32 pos; v2s32 geom; }; public: GUIInventoryMenu(gui::IGUIEnvironment* env, gui::IGUIElement* parent, s32 id, Inventory *inventory, Queue<InventoryAction*> *actions, IMenuManager *menumgr); ~GUIInventoryMenu(); void removeChildren(); /* Remove and re-add (or reposition) stuff */ void regenerateGui(v2u32 screensize); ItemSpec getItemAtPos(v2s32 p) const; void drawList(const ListDrawSpec &s); void drawMenu(); bool OnEvent(const SEvent& event); private: v2s32 getBasePos() const { return padding + AbsoluteRect.UpperLeftCorner; } v2s32 padding; v2s32 spacing; v2s32 imgsize;