summaryrefslogtreecommitdiff
path: root/src/gui/buysell.cpp
AgeCommit message (Collapse)AuthorFilesLines
2012-01-16Renamed some file names for consistency with the class namesThorbjørn Lindeijer1-119/+0
This was already done by ManaPlus. It's a good idea anyway and it makes comparing the code a little easier. Reviewed-by: Yohann Ferreira
2010-08-01Remove isActive methods from buy/sell windowsJared Adams1-0/+7
Uses a state variable in PlayerInfo instead. Moves isTalking from Being to PlayerInfo. Also some small cleanups. Reviewed-by: Chuck Miller
2010-05-17Remove Monster, Player, and NPC classesJared Adams1-2/+0
Instead of having these three subclasses with minor differences, this commit merges them back into Being. In the future, we can make Beings that are talkable to some, attackable by others, etc. This also puts back support for monster equipment. Also changes remaining references to Being::Type and the constants to refer to ActorSprite::Type. Reviewed-by: Freeyorp
2010-02-22Modify copyright headersFreeyorp1-1/+2
2010-02-20License header update for The Mana ClientThorbjørn Lindeijer1-4/+3
2010-02-13Make NPC dialogs instance instead of globalJared Adams1-14/+30
This change allows players to talk to multiple NPCs at a time (if the server agrees). Manaserv's netcode allows multiple commerce instances too. eAthena's is limited to one commerce instance, due to protocol limitations.
2010-02-07Updated Copyright year to 2010!Bertram1-1/+1
Also added the update copyright tool from the Wormux Team. ( And not forgetting credit's due. :P )
2010-01-11Cleanup GUI classesJared Adams1-1/+2
Moved remaining widgets into widgets folder, standardized include order, moved TextRenderer out.
2010-01-10Fix handling of NPC talking statusJared Adams1-2/+0
2009-07-23Clear some more support ifdefsJared Adams1-0/+2
2009-04-29Fixed the name of the buy button member of BuySellDialogBjørn Lindeijer1-7/+8
Missed the m prefix.
2009-04-29Set default focuses on the BuySell dialog, the Buy dialog, and the SellTametomo1-2/+2
dialog to reduce the amount of needed tabbing by the user when using the keyboard to use these dialogs. Signed-off-by: Tametomo <irarice@gmail.com> Signed-off-by: Bjørn Lindeijer <bjorn@lindeijer.nl>
2009-04-07Moved basic widgets into the gui/widgets directoryBjørn Lindeijer1-1/+1
In an attempt to make the GUI code a little more structured, basic widgets are now put in gui/widgets. Many includes were also cleaned up.
2009-04-06Fix the Sell button in BuySellDialogJared Adams1-1/+1
Also make the dialog build for all servers
2009-04-05Implement TMWServ's NpcHandlerJared Adams1-5/+4
2009-03-31Add first draft of net handlersJared Adams1-9/+5
eAthena NPC handler has been implemented and is being used for NPC interraction.
2009-03-28Make the BuySellWindow eAthena onlyJared Adams1-9/+6
2009-03-27Clean up of most of the Network pointersBjørn Lindeijer1-2/+2
Now that messages can be sent without requiring a pointer to the Network instance, a lot of cleanup was possible.
2009-03-27Made eAthena's Network class statically accessibleBjørn Lindeijer1-2/+1
Now the instance doesn't need to be passed into the MessageOut class anymore. Expect a lot of cleanup in the next commit.
2009-03-27Moved choosing of random death message to a functionBjørn Lindeijer1-1/+2
Also dynamically calculated the size of the array, so that you don't have to count the messages manually. :P
2009-03-25Merge branch 'eathena/master'Bjørn Lindeijer1-11/+51
Conflicts: A lot of files.
2009-03-23Merge branch 'aethyra/master'Bjørn Lindeijer1-3/+3
Conflicts: Many files.
2009-03-19Make sure positionable dialogs start out centeredJared Adams1-2/+4
2009-03-18Fix up the NPC interraction widnows a bitJared Adams1-1/+15
2009-03-18Fix up the NPC interraction widnows a bitJared Adams1-3/+13
2009-03-15Fixed BuySell dialog to remember its position. For proper configurationIra Rice1-0/+1
saving, this needed a window name set. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-03-15Overrode the reset window function in the chat window to also reset theIra Rice1-2/+3
position of the recorder, as well as fixed resetting the help window, and exposing the buy/sell window to being resettable, as well as remembering its previous position. All windows should now be covered by the reset button on the setup pane. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-03-11Centered buy/sell dialog.Ira Rice1-0/+2
Signed-off-by: Ira Rice <irarice@gmail.com>
2009-03-10Extended window layout to take relative positions, as well as offsets toIra Rice1-1/+0
that position. This makes it so that when resolutions are changed, the default locations stay relative to the window's position, and not the 800x600 screen resolution. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-03-10Don't center the NPC interraction dialogsJared Adams1-1/+0
Use the last location the user gave instead. Also, do the same for the inventory dialog.
2009-02-26Merge branch 'aethyra/master'Bjørn Lindeijer1-4/+12
Conflicts: data/graphics/images/login_wallpaper.png src/being.cpp src/beingmanager.cpp src/engine.cpp src/game.cpp src/gui/buysell.cpp src/gui/buysell.h src/gui/gui.h src/gui/npc_text.cpp src/gui/npc_text.h src/gui/npcintegerdialog.cpp src/gui/npclistdialog.cpp src/gui/npclistdialog.h src/gui/npcstringdialog.cpp src/gui/sell.cpp src/gui/shop.cpp src/gui/table.cpp src/net/beinghandler.cpp src/net/npchandler.cpp src/net/playerhandler.cpp src/npc.cpp src/npc.h src/shopitem.cpp src/shopitem.h src/utils/stringutils.cpp src/utils/stringutils.h src/utils/trim.h
2009-02-25Fix NPC handling to not need a handle on the NPCIra Rice1-8/+26
Loosely based on TMW commit f04a8713ffc83db8b3dc4a472b28aad25a2b2bd1 Signed-off-by: Ira Rice <irarice@gmail.com>
2009-02-25Fix NPC handling to not need a handle on the NPCJared Adams1-6/+16
The Being ID is used instead, as that is all that was ever really needed.
2009-02-23Hide the buy/sell dialogs when there is no NPCJared Adams1-0/+7
2009-02-18Centralize current_npc cleanupJared Adams1-1/+1
2009-02-10Fixed header files, as well as removed the unused buddy list class (notIra Rice1-2/+3
useful since buddy lists are tracked through the player relation interface instead) Signed-off-by: Ira Rice <irarice@gmail.com>
2009-01-23Removed unnecessary references to The Mana World in code headersBjørn Lindeijer1-4/+4
This dates back to the old days of TMW, but the usage instructions of GPLv2 don't mention this being necessary. Since it doesn't add anything, avoid the branding in these sections.
2009-01-08Made remaining dialogs translatableBjørn Lindeijer1-4/+6
Most strings are now translatable. Please do report any missing ones. Strings excluded from translation are anything that gets written to the log file or is otherwise not shown in the GUI. Signed-off-by: Bjørn Lindeijer <bjorn@lindeijer.nl>
2008-11-18Pedantic fixes to the client, where I alphabetized all of the include Ira Rice1-4/+1
statements, as well as removing the new skill dialog, which we do not, nor will we use (if we do, it'd be a new one that we'd make). WARNING!!! This, and all other previous builds have a linker error for the Gnome libraries version 4.3.2 on my setup. It's assumed that this is also the case for other users of this library as well. I'm currently assuming that there's a bug in the compiler itself, and will look into reporting this, but in the mean time, it doesn't build for these users, unfortunately. Sorry about this.
2008-07-18Import of client treeLloyd Bryant1-1/+1
2007-01-14Upgraded to Guichan 0.6.0 (merge from guichan-0.6.0 branch).Bjørn Lindeijer1-4/+4
2006-10-09little tweaks to buy and buy/sell dialogs.Yohann Ferreira1-0/+2
2006-08-13Merged Guichan 0.5.0 support from guichan-0.5.0 branch, plus several updatesBjørn Lindeijer1-1/+1
from the 0.1.0 branch.
2006-03-09Made the Button ctor accept eventId and action listener.Björn Steinbrink1-3/+1
2006-03-08Some fixes for compiling with pedantic compiler settings and const char* checks.Bjørn Lindeijer1-2/+2
2006-02-01Made the OkDialog and ConfirmDialog classes proxies for their buttons' ↵Björn Steinbrink1-1/+1
events. Removed the RequestTradeWindow class, replaced with a plain ConfirmDialog. Fixed a memory leak along the way.
2006-02-01Simplified button creation code in some windows. Fixed a bug where the game ↵Björn Steinbrink1-27/+20
crashes if there's a message dialog from a npc that no longer exists. Reverted properties to private.
2006-01-22Merged NETWORK branch (includes BEING_OVERHAUL).Björn Steinbrink1-18/+6
2005-10-18Added automatic widget cleanup to the window class.Björn Steinbrink1-7/+0
2005-10-16Rename {read,write}{Byte,Short,Long} to {read,write}Int{8,16,32}.Björn Steinbrink1-3/+3