summaryrefslogtreecommitdiff
path: root/src/gui/sell.cpp
AgeCommit message (Collapse)AuthorFilesLines
2012-01-16Renamed some file names for consistency with the class namesThorbjørn Lindeijer1-326/+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
2011-05-25Added more double clickable actionsAngelo Castellani1-0/+10
- double clicking a do_choice item submits it - double clicking the npc chat will hit 'next' - double click to buy/sell a single item - clicking on no item in the inventory now deselects - double click to use/activate items in inventory
2010-09-25Merge branch '1.0'Thorbjørn Lindeijer1-0/+2
Conflicts: src/actorspritemanager.h src/beingmanager.cpp src/game.cpp src/gui/beingpopup.cpp src/gui/chat.cpp src/gui/chat.h src/gui/inventorywindow.h src/gui/itempopup.cpp src/gui/socialwindow.cpp src/gui/statuswindow.cpp src/gui/widgets/chattab.cpp src/gui/widgets/chattab.h src/net/tmwa/inventoryhandler.cpp src/net/tmwa/partyhandler.cpp src/party.cpp src/sound.cpp src/utils/stringutils.cpp src/utils/stringutils.h
2010-08-19Fixing some bugs in NPC-shop guiStefan Dombrowski1-0/+2
* Price and total money is now shown from the beginning in sell dialog. * Item popup is set invisible when mouse has moved away from items. * Item popup gets deleted when shop closes. Signed-off-by: Jared Adams <jaxad0127@gmail.com>
2010-08-01Remove isActive methods from buy/sell windowsJared Adams1-0/+6
Uses a state variable in PlayerInfo instead. Moves isTalking from Being to PlayerInfo. Also some small cleanups. Reviewed-by: Chuck Miller
2010-06-29Fixed sell support on tmwAthena while keeping it working for Manaserv.Yohann Ferreira1-2/+6
2010-06-29Fixed the sell support under Manaserv.Yohann Ferreira1-1/+2
Made the sell dialog give the idem id, instead of an internal inventory id when a item is a duplicate. Reviewed-by: Freeyorp, Strikermdd Resolves: Manasource-Mantis #101
2010-05-17Remove Monster, Player, and NPC classesJared Adams1-1/+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/+25
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-7/+8
Moved remaining widgets into widgets folder, standardized include order, moved TextRenderer out.
2010-01-10Change Buy and Sell dialogs to use ItemPopupsJared Adams1-18/+5
2010-01-10Change code styleAndrei Karas1-1/+2
2009-12-04Don't process redudant visibility calls in WindowJared Adams1-1/+1
2009-12-04Reset the cursor when a window is hiddenJared Adams1-2/+1
2009-07-26Gettext fixesKess Vargavind1-4/+4
And a Swedish translation of the desktop file.
2009-07-23Clear some more support ifdefsJared Adams1-0/+2
2009-05-05Fix selling stacked itemsJared Adams1-2/+3
2009-05-03Moved strprintf into stringutils.{h,cpp}Bjørn Lindeijer1-1/+1
2009-04-29Set default focuses on the BuySell dialog, the Buy dialog, and the SellTametomo1-1/+1
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-15Assorted random cleanupsBjørn Lindeijer1-1/+2
2009-04-07Moved basic widgets into the gui/widgets directoryBjørn Lindeijer1-4/+4
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-05Implement TMWServ's NpcHandlerJared Adams1-24/+3
2009-03-31Add first draft of net handlersJared Adams1-6/+3
eAthena NPC handler has been implemented and is being used for NPC interraction.
2009-03-30Fix an offset bug when selling itemsJared Adams1-1/+1
2009-03-27Clean up of most of the Network pointersBjørn Lindeijer1-6/+0
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-3/+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-27Include statement cleanup for net/ea/ directory.Bjørn Lindeijer1-0/+1
2009-03-27Fixed include structure in resource/ directoryBjørn Lindeijer1-15/+18
There is also a new rule that trivial constructors and destructors should no longer be trivially "documented", since this just takes up space with no gain.
2009-03-25A host of code style fixesBjørn Lindeijer1-1/+1
Mostly putting & and * in the right place and making some getters const.
2009-03-25Merge branch 'eathena/master'Bjørn Lindeijer1-38/+85
Conflicts: A lot of files.
2009-03-23Merge branch 'aethyra/master'Bjørn Lindeijer1-27/+47
Conflicts: Many files.
2009-03-23Move all TMWServ-specific code to net/tmwservJared Adams1-1/+1
Also fix several instances where the same net handler was being used for both servers, and a few other related oddities.
2009-03-22Merged the tmwserv client with the eAthena clientBjørn Lindeijer1-1/+27
This merge involved major changes on both sides, and as such took several weeks. Lots of things are expected to be broken now, however, we now have a single code base to improve and extend, which can be compiled to support either eAthena or tmwserv. In the coming months, the plan is to work towards a client that supports both eAthena and tmwserv, without needing to be recompiled. Conflicts: Everywhere!
2009-03-19Forgot to remove some now unneeded includes.Ira Rice1-1/+0
Signed-off-by: Ira Rice <irarice@gmail.com>
2009-03-19Made the plus and minus buttons in the last commit look moreIra Rice1-2/+2
aesthetically pleasing. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-03-19Reformatted the item amount window and the buy/sell windows so thatIra Rice1-22/+44
their guis are similarly laid out. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-03-19Make sure positionable dialogs start out centeredJared Adams1-0/+1
2009-03-18Fix up the NPC interraction widnows a bitJared Adams1-0/+7
2009-03-18Fix up the NPC interraction widnows a bitJared Adams1-0/+7
2009-03-14Made a label class derived from the guichan label class which utilizesIra Rice1-6/+5
the palette colors. While technically, this can be accomplished through other means, it's rather clumsy overall, and is prone to introducing in programmer errors. This commit finally catches every case where text is used, and applies the text color from the color dialog to each of them appropriately. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-03-10Extended window layout to take relative positions, as well as offsets toIra Rice1-2/+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-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-1/+1
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-26Fixed an error in shoplistboxes as identified by Octalot.Ira Rice1-1/+1
Signed-off-by: Ira Rice <irarice@gmail.com>
2009-02-25Fix NPC handling to not need a handle on the NPCJared Adams1-1/+1
The Being ID is used instead, as that is all that was ever really needed.
2009-02-23Allow to sell non-stackable items like stackablesMajin Sniper1-10/+23
Make it possible to sell non-stackable items all at once by introducing "Duplicate Items" and a Shop that can handle them. Also fix a trivial bug to correctly preview you money while selling.
2009-02-23Allow to sell non-stackable items like stackablesMajin Sniper1-11/+24
Make it possible to sell non-stackable items all at once by introducing "Duplicate Items" and a Shop that can handle them. Also fix a trivial bug to correctly preview you money while selling.