aboutsummaryrefslogtreecommitdiff
path: root/advtrains/textures/advtrains_dtrack_shared_unload.png
diff options
context:
space:
mode:
authororwell96 <orwell@bleipb.de>2020-07-26 18:53:16 +0200
committerorwell96 <orwell@bleipb.de>2020-07-26 18:53:16 +0200
commit00031064a5ef66306fe49eb7ee5fa6dfe1454238 (patch)
tree540532e59a88d61a9f5464186ddae39c5ce24a48 /advtrains/textures/advtrains_dtrack_shared_unload.png
parentd65ba80df77432849b3cf852619706632a4e4408 (diff)
downloadadvtrains-00031064a5ef66306fe49eb7ee5fa6dfe1454238.tar.gz
advtrains-00031064a5ef66306fe49eb7ee5fa6dfe1454238.tar.bz2
advtrains-00031064a5ef66306fe49eb7ee5fa6dfe1454238.zip
Do not unload wagons when a player that is logged in sits in itrelease-2.1.3
Diffstat (limited to 'advtrains/textures/advtrains_dtrack_shared_unload.png')
0 files changed, 0 insertions, 0 deletions
l be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser 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. */ #pragma once #include "inventorymanager.h" #include "irrlichttypes_extrabloated.h" #include "util/string.h" class GUIFormSpecMenu; class GUIInventoryList : public gui::IGUIElement { public: struct ItemSpec { ItemSpec() = default; ItemSpec(const InventoryLocation &a_inventoryloc, const std::string &a_listname, s32 a_i) : inventoryloc(a_inventoryloc), listname(a_listname), i(a_i) { } bool isValid() const { return i != -1; } InventoryLocation inventoryloc; std::string listname; s32 i = -1; }; // options for inventorylists that are setable with the lua api struct Options { // whether a one-pixel border for the slots should be drawn and its color bool slotborder = false; video::SColor slotbordercolor = video::SColor(200, 0, 0, 0); // colors for normal and highlighted slot background video::SColor slotbg_n = video::SColor(255, 128, 128, 128); video::SColor slotbg_h = video::SColor(255, 192, 192, 192); }; GUIInventoryList(gui::IGUIEnvironment *env, gui::IGUIElement *parent, s32 id, const core::rect<s32> &rectangle, InventoryManager *invmgr, const InventoryLocation &inventoryloc, const std::string &listname, const v2s32 &geom, const s32 start_item_i, const v2s32 &slot_size, const v2f32 &slot_spacing, GUIFormSpecMenu *fs_menu, const Options &options, gui::IGUIFont *font); virtual void draw() override; virtual bool OnEvent(const SEvent &event) override; const InventoryLocation &getInventoryloc() const { return m_inventoryloc; } const std::string &getListname() const