summaryrefslogtreecommitdiff
path: root/src/gui/trade.cpp
AgeCommit message (Collapse)AuthorFilesLines
2009-03-11Don't move stuff from inventory when not visibleJared Adams1-0/+2
2009-03-10Extended window layout to take relative positions, as well as offsets toIra Rice1-1/+1
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-09Add an interface for eAthena's storage systemJared Adams1-2/+2
2009-03-05Made some optimizations based on some profiling done by Octalot, as wellIra Rice1-1/+0
as some other optimizations that I could see that cut down on some unneeded redraws, which in turn improved frame rates slightly. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-02-18Introduced a toLower method and grouped string utilsBjørn Lindeijer1-1/+1
The string utility methods are now grouped together in the stringutils.h header. Also, a toLower method was added for convenience.
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-02-09Mostly whitespace fixesBjørn Lindeijer1-2/+2
Removed tab characters and trailing spaces and added spaces between "if(", "for(", "while(" and "switch(".
2009-02-04Went through the gui folder and revised the include statements to notIra Rice1-2/+0
include anything not needed by that specific widget or window. This appears to have cleaned up system performance a bit on my current setup, where it went from idling on 45% in game with opengl down to 30% now. Also moved iptostring to the tostring header, as importing all of network.h is a little overkill to use that function, and it goes along with the basic functions that are in that header file anyways. TODO: find out a way to get rid of warnings when a class doesn't use this function. 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-16Revised trade window to use the window layout code. Loosely based on theIra Rice1-94/+67
trade window in TMW's mainline client. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-01-08Made remaining dialogs translatableBjørn Lindeijer1-2/+2
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>
2009-01-06Added support for internationalizationIra Rice1-25/+18
Merged from the mainline client. Originally implemented by Guillaume Melquiond, starting with commit 1828eee6a6d91fd385ad1e69d93044516493aa91. Conflicts: INSTALL configure.ac src/Makefile.am src/gui/buy.cpp src/gui/confirm_dialog.cpp src/gui/inventorywindow.cpp src/gui/login.cpp src/gui/menuwindow.cpp src/gui/minimap.cpp src/gui/ok_dialog.cpp src/gui/popupmenu.cpp src/gui/register.cpp src/gui/sell.cpp src/gui/setup.cpp src/gui/setup_video.cpp Signed-off-by: Ira Rice <irarice@gmail.com>
2009-01-05Made trade window resizableBjørn Lindeijer1-24/+40
Also fixed overlap between description label and the buttons and added the SDL_ttf library to the Code::Blocks project file.
2008-12-07Fixed inconsistency in default window sizesBjørn Lindeijer1-1/+1
The default window sizes were all too small, since they were specified in content size. On pressing "Reset Windows", the sizes would be interpreted as such and apply alright. The inconsistency is now removed, and the default window sizes are always the size of the whole widget now, not just the contents. 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-09-12Fixed /where, added /cast for heal and gather, some changes to inventory to ↵Lloyd Bryant1-4/+5
support storage
2008-06-12Merged revisions 3738 via svnmerge from Bjørn Lindeijer1-8/+4
https://themanaworld.svn.sourceforge.net/svnroot/themanaworld/tmw/trunk ........ r3738 | b_lindeijer | 2007-11-16 00:44:01 +0100 (Fri, 16 Nov 2007) | 3 lines Moved item icon from ItemInfo class to the Item class, so that it can be loaded on demand. Results in faster startup time and reduced memory usage. ........
2008-04-26Text fix: zeny to GP.Dennis Friis1-3/+3
2008-04-07Upgraded to Guichan 0.8.0 (merge from guichan-0.8 branch, except forBjørn Lindeijer1-1/+1
gcn::TabbedArea usage)
2007-11-20Merged revisions 3642,3662-3664,3667 via svnmerge from Bjørn Lindeijer1-0/+2
https://themanaworld.svn.sourceforge.net/svnroot/themanaworld/tmw/trunk ........ r3642 | gmelquio | 2007-10-19 19:46:46 +0200 (Fri, 19 Oct 2007) | 1 line Factored code between resource handlers. Implemented failure-friendly sprite loader. ........ r3662 | gmelquio | 2007-10-21 21:01:16 +0200 (Sun, 21 Oct 2007) | 1 line Added persistent positioning. ........ r3663 | gmelquio | 2007-10-21 21:03:43 +0200 (Sun, 21 Oct 2007) | 1 line Fixed missing pixels at bottom and right. ........ r3664 | gmelquio | 2007-10-21 21:05:56 +0200 (Sun, 21 Oct 2007) | 1 line Changed to use default values when restoring missing settings. ........ r3667 | gmelquio | 2007-10-21 22:09:08 +0200 (Sun, 21 Oct 2007) | 1 line Fixed invisible text in dropboxes and shopboxes. ........
2007-01-14Upgraded to Guichan 0.6.0 (merge from guichan-0.6.0 branch).Bjørn Lindeijer1-5/+5
2006-11-05Fixed money field to no longer hide below the bottom of the window.Bjørn Lindeijer1-18/+18
2006-10-03Removed empty frames from headgears.Bjørn Lindeijer1-1/+1
2006-10-01Accepted patches by GDO and VictorSan that fix problems with hiding windowsBjørn Lindeijer1-5/+5
using h and problems with trade window positioning.
2006-09-03Fixed updating of labels in trade window.Bjørn Lindeijer1-30/+33
2006-09-03Introduced SelectionListener to fix updating problem in inventory windowBjørn Lindeijer1-2/+2
(should also be used to fix similar problem in trade, buy and sell dialogs). Made the ItemInfo be passed around as a reference instead of a pointer, since it is never NULL.
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-19Unreverted latest change by Doener due to my lack of proper communication ↵Eugenio Favalli1-9/+7
abilities.
2006-03-19Reverted changeset r2269 (toString) as requested by ElvenProgrammer.Björn Steinbrink1-7/+9
2006-03-18Added a toString conversion function.Björn Steinbrink1-9/+7
2006-03-09Made all class members named like mClassMember.Björn Steinbrink1-107/+107
2006-03-09Made the Button ctor accept eventId and action listener.Björn Steinbrink1-14/+4
2006-03-09Use std::auto_ptr in some places.Björn Steinbrink1-8/+5
2006-01-22Merged NETWORK branch (includes BEING_OVERHAUL).Björn Steinbrink1-9/+10
2006-01-04Reverted r0nny changes, enabled 3 slots to create players, smoothed player ↵Eugenio Favalli1-8/+15
deletion.
2006-01-03moved network logic out of gui/trade.cpp to net/protocol_trade.{h,cpp}Ronny Pfannschmidt1-15/+8
2006-01-03Really disabled /commands and added proper message when logging in and banned.Eugenio Favalli1-1/+1
2005-10-20Added garbage collection to the ScrollArea class. Fixed slider not being ↵Björn Steinbrink1-3/+0
updated in the item amount box when the buttons are used.
2005-10-18Added automatic widget cleanup to the window class.Björn Steinbrink1-13/+2
2005-10-16Rename {read,write}{Byte,Short,Long} to {read,write}Int{8,16,32}.Björn Steinbrink1-9/+9
2005-09-19Got rid of writeSet() calls.Eugenio Favalli1-6/+0
2005-09-19Removed useless flush() calls.Eugenio Favalli1-5/+0
2005-09-17Completed transition to use MessageOut.Eugenio Favalli1-10/+17
2005-09-13Merged with SDL_NET_TEST branch.Björn Steinbrink1-21/+20
2005-08-21It should be enough of "How can i give you money?????����" while ↵Matthias Hartmann1-6/+10
trading now.
2005-08-19Made the item amount box work with a provided item.Björn Steinbrink1-1/+1
2005-08-13Huge header cleanup to reduce dependencies and compile time.Björn Steinbrink1-19/+35
2005-07-18Created Inventory class. (Really) Small code simplifications and cleanups.Björn Steinbrink1-30/+30
2005-07-17Added Item and Equipment class and made the appropriate places make use of ↵Björn Steinbrink1-55/+45
them. Plus some cleanups.
2005-07-11Committed header dependencies reducing patch by DoenerBjørn Lindeijer1-6/+5