summaryrefslogtreecommitdiffstats
path: root/src/UI (follow)
Commit message (Collapse)AuthorAgeFilesLines
* A player's inventory is always opened by its owner. (#4176)peterbell102018-01-281-4/+6
| | | | | Fixes #4093 Window updates are only broadcast to players in the m_OpenedBy list. Normally players are added after sending a window open packet but no packet is sent for a player's inventory. This meant broadcasts were never sent for the inventory window.
* cWindow: Fix slot area priority when double click stacking. (#4086)peterbell102018-01-152-34/+6
| | | Fixes #4084
* Add the fmt library (#4065)peterbell102018-01-032-1/+2
| | | | | | | * Replaces AppendVPrintf with fmt::sprintf * fmt::ArgList now used as a type safe alternative to varargs. * Removed SIZE_T_FMT compatibility macros. fmt::sprintf is fully portable and supports %zu. * Adds FLOG functions to log with fmt's native formatting style.
* Implement horse inventory (#4053)peterbell102017-10-215-0/+241
| | | | | | | | | | * Implement horse inventory * Fix sign conversions * Add API doc for ItemCategory::IsHorseArmor * Improve HandleOpenHorseInventory comment and style fixes.
* Changed BroadcastSoundEffect, SendSoundEffect, and CastThunderbolt parameters to vectors (#3959)Lane Kolbly2017-09-195-27/+17
| | | | | | | | | | | | | | | | | | * Made BroadcastSoundEffect take vector parameters. * Added docs for new vectored methods * Removed old code * Fixed lua warnings * Made old BroadcastSoundEffect not an override. * m_Block to m_BlockPos, used Vector3d constructor where prettier. * a_Block to a_BlockPos * Changed thunderbolt a_Block to a_BlockPos
* Fix switch warnings (#4013)peterbell102017-09-142-7/+5
| | | | | | | | | | | | | | | * Fix switch warnings * Fix a variety of -Wswitch and -Wswitch-enum warnings * Remove unneeded -Wno-error flags * Reorganise some eMonsterType switches * Alpha sort eMonsterType cases in WriteMobMetadata and in cNBTChunkSerializer::AddMonsterEntity * List all mob types in protocol 1.12 and NBTChunkSerializer * cStructGenTrees::GetNumTrees: remove switch default * cWSSAnvil::LoadOldMinecartFromNBT: Log unhandled minecart type
* Replace ItemCallbacks with lambdas (#3993)peterbell102017-09-112-9/+11
|
* Revert "Replace ItemCallbacks with lambdas (#3948)"LogicParrot2017-09-022-13/+11
| | | | This reverts commit 496c337cdfa593654018c171f6a74c28272265b5.
* Replace ItemCallbacks with lambdas (#3948)peterbell102017-09-012-11/+13
|
* Add cLuaWindow OnClicked Callback (#3901)Lane Kolbly2017-08-171-1/+1
|
* Changed int parameters to vector parameters in cCuboid and simulators (#3874)Lane Kolbly2017-08-171-4/+4
|
* Replaced includes with forward declarationsLukas Pioch2017-08-131-1/+2
|
* Removed double includes (#3885)Lukas Pioch2017-08-022-2/+0
|
* Added anvil enchantment handling. (#3857)Lane Kolbly2017-07-281-4/+5
| | | + Added anvil enchantment handling.
* Handle middle mouse drag (#3847)peterbell102017-07-132-10/+41
|
* FastRandom rewrite (#3754)peterbell102017-06-131-4/+3
|
* Off-hand/shield slot functional, save and load slot, bow + arrow functional (#3725)Pablo Beltrán2017-05-242-0/+18
| | | Fixes #3714.
* Clang 5.0 fixesLukas Pioch2017-05-214-7/+7
| | | | | - Added override keyword - Removed inherited member variables
* Corrected brewingstand and added support for fuelLukas Pioch2017-05-083-77/+80
|
* Updated sounds and effect IDs (#3422)mathiascode2017-02-153-7/+7
|
* Fixed bindings for cBlockArea:Read and Write. (#3568)Mattes D2017-02-052-3/+3
| | | The original bindings accepted nil as the World param, causing a crash.
* Removed ClientHandle.h dependencies from common headers.Mattes D2016-11-185-0/+5
|
* Spectators added (#2852)bibo382016-10-121-0/+8
|
* Fixed type-casting-related warnings.Mattes D2016-08-241-2/+2
|
* CMake: Remove needless minimum version specifications.Mattes D2016-07-181-2/+0
|
* Updated API documentation.Mattes D2016-07-181-2/+6
|
* Changed cLuaWindow callbacks to use cLuaState::cCallback.Mattes D2016-06-271-1/+1
|
* Revert "Lua callback"Mattes D2016-03-211-1/+1
|
* Changed cLuaWindow callbacks to use cLuaState::cCallback.Mattes D2016-03-171-1/+1
|
* Bulk clearing of whitespaceLogicParrot2016-02-057-123/+123
|
* Updated old forum linksMathias2016-01-311-1/+1
|
* Renamed leftover strings to Cuberite / Server, as needed.Mattes D2016-01-011-1/+1
| | | | Also upgraded the user setting file for MSVC to 2013.
* Reorganised the redstone simulatorTiger Wang2015-12-181-12/+4
| | | | | | -> Many thanks to @worktycho for the idea, and @Haxi52 for the implementation plan! * Uses classes and inheritance now * Speed should be improved
* Moved variables into scope, removed unused variables and fixed variablesLukas Pioch2015-12-171-2/+1
|
* Add enum for Sound and Particle EffectsDave Tucker2015-11-241-3/+4
| | | | | | Fixes #2603 Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
* Implemented brewingLukas Pioch2015-11-036-0/+372
|
* Unified the doxy-comment format.Mattes D2015-07-313-66/+54
|
* Silenced and fixed many warning messages across multiple files.Samuel Barney2015-07-295-43/+42
|
* Fixed custom recipes result clientside bug.Mattes D2015-07-261-0/+8
| | | | Fixes #2345.
* Fix commentstycho2015-05-281-6/+9
|
* Merge branch 'master' into PreventNewWarningstycho2015-05-282-12/+10
|\ | | | | | | | | Conflicts: src/Inventory.cpp
| * Merge pull request #2061 from mc-server/fixesAlexander Harkness2015-05-272-12/+10
| |\ | | | | | | Fixes
| | * Fixes #2041Tiger Wang2015-05-241-3/+3
| | |
| | * Fixes #2003Tiger Wang2015-05-182-9/+7
| | |
* | | Made -Weverything an error.tycho2015-05-243-7/+18
| | |
* | | Merge branch 'master' into PreventNewWarningstycho2015-05-231-1/+1
|\| |
| * | Fixed missing overrides and added a ignore flag for reserved macro for clang version 3.6 and higher.Lukas Pioch2015-05-231-1/+1
| |/
* / Make -Werror disabling file onlytycho2015-05-191-0/+5
|/ | | | Ad fix a load of warnings
* CheckBasicStyle: checks spaces around * and &.Mattes D2015-05-091-1/+1
|
* More style checking.Mattes D2015-05-094-4/+4
| | | | Spaces around some operators are checked.
* Narrowed WindowID to use only 7 bits.Mattes D2015-04-212-3/+7
| | | | Ref.: http://forum.mc-server.org/showthread.php?tid=1876
* Changed cEntity::m_UniqueID to UInt32.Mattes D2015-03-211-7/+10
|
* Moved window code into cpp filesHowaner2015-03-1021-516/+836
|
* Readded old commentHowaner2015-02-061-0/+2
|
* Readded old DistributeStackToAreas() comment.Howaner2015-01-251-2/+5
|
* C++11 and function rename.Howaner2014-12-1713-48/+51
|
* Implemented vanilla-like shift click.Howaner2014-12-1315-105/+380
| | | This fixes many visual bugs.
* Own classes for all windows.Howaner2014-12-1316-591/+633
|
* Merge remote-tracking branch 'origin/master' into c++11Tiger Wang2014-12-061-1/+1
|\ | | | | | | | | Conflicts: src/OSSupport/Thread.cpp
| * Fixed reported parentheses around comparisons.Mattes D2014-12-051-1/+1
| |
* | Merged branch 'master' into c++11.Mattes D2014-10-231-1/+1
|\|
| * En masse NULL -> nullptr replaceTiger Wang2014-10-234-44/+44
| |
* | Replace &*[0] accesses with .data()Tiger Wang2014-10-211-2/+2
| |
* | En masse NULL -> nullptr replaceTiger Wang2014-10-204-44/+44
|/
* Merge pull request #1502 from mc-server/furnacesTiger Wang2014-10-182-27/+11
|\ | | | | Improved furnaces
| * Improved furnacesTiger Wang2014-10-032-27/+11
| | | | | | | | | | | | | | | | * Fixed progress bar on 1.8 * Fixed bugs * Improved code * Fixes #1068 * Fixes #1070
* | Functions in cPluginManager get references instead of pointers.Mattes D2014-10-151-2/+2
|/
* SuggestionsTiger Wang2014-09-271-11/+57
|
* Merge remote-tracking branch 'origin/master' into chestcartsTiger Wang2014-09-272-1/+30
|\ | | | | | | | | Conflicts: src/Entities/Minecart.cpp
| * 1.8: Fixed inventory open packet.Howaner2014-09-112-1/+30
| |
* | e.t.c. -> etc.Tiger Wang2014-09-131-1/+1
| | | | | | etcetera, not egg tray conglomerate :P
* | Added newlinesTiger Wang2014-09-131-1/+5
| |
* | Implemented Chest MinecartsTiger Wang2014-09-135-68/+95
|/
* Added comments.Hownaer2014-08-281-1/+3
|
* Fixed crashes and use std::swap.Hownaer2014-08-281-6/+3
|
* Enchanting table improvements.Hownaer2014-08-284-134/+101
|
* Renamed functions and added beacon json saving.Howaner2014-07-311-2/+2
|
* Added beacon.Howaner2014-07-304-0/+276
|
* Merge branch 'master' into portalsTiger Wang2014-07-292-3/+16
|\ | | | | | | | | Conflicts: src/World.h
| * Change comment.Howaner2014-07-261-1/+1
| |
| * Merge branch 'master' into InventoryHowaner2014-07-263-9/+15
| |\
| * | Add armor items directly to the armor slots.Howaner2014-07-202-3/+3
| | |
| * | Moved comment.Howaner2014-07-181-1/+1
| | |
| * | Fixed the armor slot in creative mode. Also removed that armor get directly to the armor slot. It is extremely buggy and unnecessary.Howaner2014-07-181-0/+13
| | |
* | | Merge remote-tracking branch 'origin/master' into portalsTiger Wang2014-07-223-9/+15
|\ \ \ | | |/ | |/| | | | | | | | | | | | | | | | Conflicts: src/Chunk.cpp src/Entities/Player.cpp src/Root.cpp src/World.cpp
| * | Style: Normalized to no spaces before closing parenthesis.madmaxoft2014-07-212-4/+4
| | |
| * | Subdirs: Only add_library if not using MSVCarchshift2014-07-191-1/+3
| | |
| * | UI/CMakeLists.txt: Replaced glob with list of filesarchshift2014-07-191-5/+9
| |/
* | Merge branch 'master' into portalsTiger Wang2014-07-185-97/+365
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/Blocks/WorldInterface.h src/ClientHandle.cpp src/ClientHandle.h src/Entities/Player.cpp src/Entities/Player.h src/Generating/FinishGen.cpp src/Protocol/Protocol.h src/Protocol/Protocol125.cpp src/Protocol/Protocol125.h src/Protocol/Protocol16x.cpp src/Protocol/Protocol16x.h src/Protocol/Protocol17x.cpp src/Protocol/Protocol17x.h src/Protocol/ProtocolRecognizer.cpp src/Protocol/ProtocolRecognizer.h src/Root.h src/World.cpp
| * Fixed tabs used for alignment.madmaxoft2014-07-171-2/+2
| |
| * More trailing whitespace fixes.madmaxoft2014-07-171-1/+1
| |
| * Basic style fixes.madmaxoft2014-07-174-8/+8
| |
| * Normalized comments.madmaxoft2014-07-172-25/+25
| | | | | | | | | | This was mostly done automatically and then visually inspected for obvious errors. All //-style comments should have a 2-space separation from the code, and 1 space after the comment sign.
| * Changed BroadcastSoundEffect function to take floating pos.Howaner2014-07-131-5/+5
| |
| * Merge pull request #1154 from mc-server/trappedchestsTiger Wang2014-07-132-9/+63
| |\ | | | | | | Implemented trapped chests & others
| | * Suggestions and bug fixTiger Wang2014-07-121-1/+1
| | | | | | | | | | | | | | | | | | * Fixed hoppers pushing/pulling to/from (trapped)chests that do not form a double-chest with the chest type directly connected to said hopper; thank you, @madmaxoft
| | * Implemented trapped chests & othersTiger Wang2014-07-072-9/+63
| | | | | | | | | | | | | | | | | | | | | + Added trapped chests * Fixed a bunch of bugs in the redstone simulator concerning wires and repeaters * Other potential bugfixes
| * | Merge pull request #1157 from Howaner/WindowMattes D2014-07-093-41/+237
| |\ \ | | |/ | |/| Add more inventory actions.
| | * Removed unused include line.Howaner2014-07-091-1/+0
| | |
| | * Added inventory number click.Howaner2014-07-092-1/+43
| | |
| | * Added drop window action.Howaner2014-07-063-25/+113
| | |
| | * Add middle click.Howaner2014-07-052-21/+88
| | |
| * | Fixed crafting grid updating.Mattes D2014-07-062-2/+21
| |/ | | | | | | Fixes #1152.
| * Merge pull request #1138 from mc-server/enderchestMattes D2014-07-022-5/+4
| |\ | | | | | | Properly implemented enderchests
| | * Removed bad commentTiger Wang2014-06-291-1/+0
| | |
| | * Properly implemented enderchestsTiger Wang2014-06-292-4/+4
| | |
| * | Only fixes the server crash.Howaner2014-07-011-6/+0
| | |
| * | Fix server-crash with non-existing items.Howaner2014-07-011-1/+7
| |/
* | Merge branch 'master' into portalsTiger Wang2014-06-101-0/+1
|\| | | | | | | | | | | | | | | | | Conflicts: src/ClientHandle.cpp src/Entities/Player.cpp src/Entities/Player.h src/Protocol/Protocol125.cpp src/Protocol/Protocol17x.cpp
| * Merge pull request #1011 from SphinxC0re/SomeWarningFixesMattes D2014-06-041-0/+1
| |\ | | | | | | Fixed some warnings
| | * Changed the m_slotarea positionJulian Laubstein2014-05-191-2/+2
| | |
| | * Fixed some warnings in Server.cpp, and in UI/Julian Laubstein2014-05-192-2/+4
| | |
* | | SuggestionsTiger Wang2014-06-041-1/+1
|/ /
* | derpworktycho2014-06-041-1/+1
| |
* | Make sure m_StackSizeToBeUsedInRepair Always has a valid valueworktycho2014-06-041-1/+3
| |
* | Players can't set items in the result slot, when they shift a item.Howaner2014-06-012-0/+39
| |
* | Add HandleSmeltItem() call for achievements.Howaner2014-06-011-7/+11
| |
* | Missing return;Howaner2014-06-011-0/+1
| |
* | Set DraggingItem to Slot directly.Howaner2014-05-311-1/+1
| |
* | Fix DBL bug.Howaner2014-05-311-5/+4
| |
* | Change "Slot.IsEmpty()" to "Slot.m_ItemCount <= 0"Howaner2014-05-311-1/+1
| |
* | Fix the furnace result slot.Howaner2014-05-301-2/+90
| |
* | Merge pull request #998 from mc-server/StatManagerMattes D2014-05-182-1/+47
|\ \ | |/ |/| Statistic Manager
| * cEntity::Killed(cEntity *) Handler; Achievement triggers; cPlayer::AwardAchievement()andrew2014-05-122-1/+47
| |
* | Fixed anvil exp removingtonibm192014-05-161-1/+1
|/
* Fixed MSVC 64-bit build warnings.Mattes D2014-05-092-2/+2
|
* Change m_RepairCost to int.Howaner2014-05-071-9/+3
|
* Add repair cost to cItem, add custom name to NBTChunkSerializer and fix anvil bugs.Howaner2014-05-071-24/+36
|
* Rename CanRepairWithItem to CanRepairWithRawMaterial and rename Size() to Count()Howaner2014-05-061-6/+5
|
* Fix SetRepairedItemName() in SlotArea.cppHowaner2014-05-051-1/+1
|
* Add comments to CanTakeResultItem()Howaner2014-05-051-5/+5
|
* Add doxycomments to cSlotAreaAnvil functions.Howaner2014-05-051-0/+2
|
* Add anvil shift click.Howaner2014-05-052-5/+86
|
* This isn't a enchantment table :DHowaner2014-05-051-1/+1
|
* Add clicks, exp subtraction, item check, ...Howaner2014-05-054-16/+204
|
* Add MC|ItemName plugin message.Howaner2014-05-054-8/+16
|
* Add anvil window and slot area.Howaner2014-05-054-0/+229
|
* Cmake generated projects for IDEs include headers in project files.archshift2014-04-251-0/+1
|
* Add armor to switch() in ItemHandler.cppHowaner2014-04-241-1/+1
|
* Fix armor in survival mode.Howaner2014-04-242-1/+80
|
* Merge pull request #909 from jfhumann/fixesMattes D2014-04-221-5/+6
|\ | | | | | | | | Bug fixes and optimizations. We need to visit the API functions and check that they return only those values expected. `cWorld::CreateProjectile()` seems affected, too, by the same issue of ToLua returning extra values. In the cleanest form, these functions will need moving to ManualBindings.cpp
| * Did some static analysis, fixed some bugs and optimized a lot of codejfhumann2014-04-181-5/+6
| |
* | Fixed MSVC compilation.madmaxoft2014-04-201-1/+1
| |
* | Fixed Codedaniel09162014-04-192-8/+5
| |
* | Modified many thingsdaniel09162014-04-173-55/+54
| |
* | Fixed double enchanting itemsdaniel09162014-04-161-2/+2
| |
* | Added Book Enchantingdaniel09162014-04-151-1/+1
| |
* | Add more checks to cSlotAreaEnchantingHowaner2014-04-153-99/+212
| |
* | Added ItemPlaceCount in SlotAreadaniel09162014-04-142-0/+35
| | | | | | | | Thanks to Howaner for helping
* | Blocked enchanting a item twicedaniel09162014-04-142-8/+10
| |
* | Fixed Bookshelf Checkingdaniel09162014-04-141-8/+10
| | | | | | | | Code by LO1ZB
* | Bug fixesdaniel09162014-04-142-21/+19
| |
* | Fixed invisibility enchantmentsdaniel09162014-04-132-0/+4
| |
* | Some Fixesdaniel09162014-04-131-1/+1
| |
* | Fixed Bookshelves Checking (not completly)daniel09162014-04-121-7/+10
| |
* | Added complete Enchanting Systemdaniel09162014-04-123-20/+135
| | | | | | | | http://minecraft.gamepedia.com/Enchantment_mechanics
* | Merge remote-tracking branch 'upstream/master' into Enchantingdaniel09162014-04-074-8/+65
|\|
| * Fixed non-virtual destructors warnings.madmaxoft2014-03-281-0/+4
| |
| * Added additional macros to support the MSVC size_t format and changed all formats to use the macrosTycho2014-03-121-1/+1
| |
| * Fixed a load of format string errorsTycho2014-03-111-1/+1
| |
| * Fixed multiple gcc warnings about unused params.madmaxoft2014-02-282-3/+33
| |
| * Fixed indentation once and for all.Mike Hunsinger2014-01-241-15/+15
| |
| * Fixed indentation and doxygen comments... For real this time.Mike Hunsinger2014-01-241-12/+12
| |
| * Fixed spacing and doxycomments.Mike Hunsinger2014-01-241-12/+10
| |
| * Removed extra lineMike Hunsinger2014-01-231-2/+0
| |
| * Split TossItem into three Toss functions (Held, Equipped and Pickup)Mike Hunsinger2014-01-231-5/+32
| |
* | Added Enchantment-Slot-Level generatingdaniel09162014-04-071-9/+19
| |
* | Some updates for enchantingdaniel09162014-01-242-13/+13
| |
* | first changes for enchanting (not finished)daniel09162014-01-204-0/+141
|/ | | | | | | | - added enchanting table block handler and added it to the blockhandler - added enchanting window - drop item in the slot 0 when the player close the window - added enchanting packet (1.7 only) - some more...
* Removed internal cEntity::GetRot() usage.madmaxoft2014-01-171-1/+1
|
* Really did what xoft wantedTiger Wang2014-01-161-5/+8
|
* Removed obsoleted functionsTiger Wang2014-01-162-4/+4
|
* Possibly did what xoft wantedTiger Wang2014-01-161-10/+3
|
* Implemented custom names and loreTiger Wang2014-01-151-0/+7
| | | | | | + Added custom names and lore + Added saving and loading + Added writing and parsing of NBT
* More MSVC warning fixes.madmaxoft2014-01-071-2/+2
|
* added zlib and UITycho Bickerstaff2013-12-181-0/+11
|
* added default fallthrough clause to switch at line 178 of src/UI/Window.cppTycho Bickerstaff2013-12-081-0/+4
|
* Reordered Listed Initalisation order in src/UI/Window.cppTycho Bickerstaff2013-12-081-2/+2
| | | | | | | Reordered the Listed Initalisation order for CWindow to the executed initalisation order. The compiler initalises values in the order the fields are declared not the initalisations listed
* Removed unused variable ResultSlotTycho Bickerstaff2013-12-081-1/+0
|
* Fixed Warning Unhandeled enum values in switch as src/UI/SlotArea.cpp line 54worktycho2013-12-091-1/+4
|
* Added basic ender chestsTiger Wang2013-12-074-0/+106
| | | | Note that they just mirror chests now, so no per player inventory.
* Moved source to srcAlexander Harkness2013-11-245-0/+2521