summaryrefslogtreecommitdiff
path: root/src/gui/skilldialog.cpp
AgeCommit message (Collapse)AuthorFilesLines
2024-03-12General code cleanupsThorbjørn Lindeijer1-4/+2
* Use default member initializers * Use range-based for loops * Avoid needless pointer references for ShopItem::mDuplicates * Removed type aliases that are only used once or twice * Removed more unused includes * Removed some unused functions * Removed superfluous .c_str() * Rely on default copy and assignment operators for Vector class * Use std::unique_ptr in some places * Removed duplicated mPlayerMoney updating in SellDialog * Removed duplicated Game::handleInput call * Removed unused SDLInput::mMouseInWindow * Removed remnant of manual widget positioning in HelpWindow * Removed superfluous initialization of static pointers
2024-03-02Changed server type to "enum class"Thorbjørn Lindeijer1-1/+1
2024-02-22General code cleanupsThorbjørn Lindeijer1-1/+1
* Use default member initializers * Use range-based loops * Don't use 'else' after 'return' * Removed some unused includes * Construct empty strings with std::string() instead of "" * Clear strings with .clear() instead of assigning "" * Check whether strings are empty with .empty() instead of comparing to "" * Removed redundant initializations
2024-02-13General code cleanupsThorbjørn Lindeijer1-3/+0
* Removing unused includes * Use member initialization * Use range-based for loops * Use nullptr * Removed no longer used aliases * Use override * Don't use else after return * Use '= delete' to remove implicit members * Use std::string::empty instead of comparing to ""
2024-02-09C++11: Use default member initializersThorbjørn Lindeijer1-6/+2
This patch is not exhaustive.
2024-01-29Apply C++11 fixitsThorbjørn Lindeijer1-5/+5
modernize-loop-convert modernize-deprecated-headers
2024-01-26Apply C++11 fixitsThorbjørn Lindeijer1-21/+21
modernize-use-auto modernize-use-nullptr modernize-use-override modernize-use-using
2013-04-29Single xml solution - compatibility with skill-set and special-setPrzemysław Grzywacz1-1/+2
Mana-mantis: #506.
2012-08-05Removed all the hardcoded sizes of the various setup tabsThorbjørn Lindeijer1-1/+0
Instead, support for dynamically adjusting layout was added to the Container class. Various other places were also adapted to use the new layout support in Container. Reviewed-by: Erik Schilling
2012-05-25Fixed skill display for manaservErik Schilling1-4/+9
- shows manaserv skills at all - shows the progress bar for manaserv skills again - shows the level for this skills (server side patch needed) TODO: URGENT: Fix attributes and skills getting stored in same list. Reviewed-by: Bertram.
2012-01-26Updated copyrights to 2012Thorbjørn Lindeijer1-1/+1
2012-01-15Center the CustomServerDialog on its parent windowThorbjørn Lindeijer1-1/+1
Also shortened the title of the Custom Server dialog to "Custom Server" since it is also used for editing an existing custom server and not just for adding a new one. And used Window::center() in a bunch of places just to reduce code size. Reviewed-by: Yohann Ferreira
2011-05-20Set minimum size for Status and Skills windowsAngelo Castellani1-0/+2
2011-04-30Merge branch '0.5'Yohann Ferreira1-7/+10
Conflicts: CMakeLists.txt po/fi.po po/fr.po src/gui/skilldialog.cpp src/localplayer.cpp src/net/manaserv/generalhandler.cpp src/net/tmwa/buysellhandler.cpp src/net/tmwa/generalhandler.cpp src/net/tmwa/playerhandler.cpp src/net/tmwa/specialhandler.cpp src/winver.h
2011-04-29Made the client load the skills.xml again.Yohann Ferreira1-7/+10
This, instead of the protocol specific filenames that are mana-skills.xml and ea-skills.xml. This is backward compatible as the old skills.xml file was once used before the 0.0.29.1 release which is the last alive from the 0.0.x serie. The skills.xml will have to added to world data to make this working, though. (Done in another patch.)
2011-04-09Renamed Listener to EventListenerThorbjørn Lindeijer1-1/+1
Makes it clear what kind of listener it is, since there are other listener classes as well. Acked-by: Jared Adams
2011-04-09Removed the Mana namespaceThorbjørn Lindeijer1-3/+3
It's just an annoyance when it's only applied to a few classes. Either we place everything in this namespace or nothing, and at the moment I don't see any rationale for placing everything in a Mana namespace. Acked-by: Jared Adams
2011-04-09Moved Channels to Mana::Event::ChannelThorbjørn Lindeijer1-2/+2
Acked-by: Jared Adams
2011-04-09Moved Events to Mana::Event::TypeThorbjørn Lindeijer1-1/+1
Acked-by: Jared Adams
2011-04-02Fix a bug with SkillDialog which doesn't listen to attributes changedBlue Sans Douze1-0/+14
2010-09-25Merge branch '1.0'Thorbjørn Lindeijer1-2/+8
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-09-04Fix crash with missing skill iconJared Adams1-2/+8
Reviewed-by: Bertram
2010-08-03Move Theme and UserPalette to the resources folderJared Adams1-1/+1
Reviewed-by: Yohann Ferreira
2010-07-30Fixed two more forgotten hard-coded references.Yohann Ferreira1-1/+3
2010-07-17Modify how attributes and stats are handledChuck Miller1-5/+5
Handling moved from LocalPlayer to PlayerInfo class Event system used to update windows Reviewed-by: Jared Adams
2010-06-13Merge remote branch '1.0/1.0'Jared Adams1-0/+6
Conflicts: data/graphics/CMakeLists.txt data/graphics/Makefile.am src/client.cpp
2010-06-13Fix memory leaks in different windows.Andrei Karas1-0/+6
Signed-off-by: Jared Adams <jaxad0127@gmail.com>
2010-05-21Remove some unneeded printfsJared Adams1-4/+0
2010-04-17Changed eAthena protocol name to TmwAthena and changed the config files ↵Bertram1-1/+1
accordingly. This makes room for the actual eAthena protocol future inclusion.
2010-03-26Replace most dynamic_casts with static_castsJared Adams1-10/+6
The remaining instances can't easily or safely be changed as the classes involved don't have type information like Being does. Reviewed-by: Freeyorp
2010-03-20Fix base skill in old servers.Andrei Karas1-6/+36
2010-03-12Split Palette into Theme and UserPaletteJared Adams1-5/+7
Themes can now control the colors they use. Colors in the Viewport (being names, particles, etc) can still be changed by the user. Also make ProgressBars more easily colored. DyePalette was made more flexible in the process. Also fixes comparing strings of different lengths insensitively. Reviewed-by: Thorbjørn Lindeijer
2010-03-05Rename SkinLoader to ThemeJared Adams1-2/+2
Also merge the guialpha ConfigListener into Theme. Reviewed-by: Thorbjørn Lindeijer
2010-03-02Fixed crash when trying to increase non-selected skillThorbjørn Lindeijer1-9/+20
Reviewed-by: Jared Adams Reviewed-by: Bertram
2010-03-02Revert "Merge WindowContainer into Viewport and remove extra members"Jared Adams1-2/+2
This reverts commit 67e678094b9fddd21fb3c690130e772937ab2746. Conflicts: src/gui/gui.cpp src/gui/viewport.cpp
2010-03-01Merge WindowContainer into Viewport and remove extra membersJared Adams1-2/+2
Reviewed-by: Chuck Miller
2010-02-28Make the gui more themeable and distribute two themesJared Adams1-1/+2
The older gray theme and the new wood theme are available as themes. The gray theme needs some new graphics for hilights. Add a theme option for branding and add path/to/branding/data to the PhysFS search path. Reviewed-by: Thorbjørn Lindeijer Reviewed-by: Chuck Miller
2010-02-22Modify copyright headersFreeyorp1-1/+2
2010-02-20License header update for The Mana ClientThorbjørn Lindeijer1-4/+3
2010-02-10Remove extra incRef callJared Adams1-2/+0
2010-02-10Improve look and utility of the SkillDialogJared Adams1-137/+229
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-4/+5
Moved remaining widgets into widgets folder, standardized include order, moved TextRenderer out.
2009-08-14Remove some uneeded codeJared Adams1-10/+0
This should've been removed earlier with the layout fixes.
2009-08-10Fix SkillDialog's layout for points to always showJared Adams1-1/+1
2009-08-10Fix TabbedArea and ScrollArea to resize contentsJared Adams1-22/+0
Also remove that code from SkillDialog. I tried to do the same with ChatWindow, but it kept segfaulting. Will try again later.
2009-08-10Merge branch 'master' of git@gitorious.org:tmw/mainlineJared Adams1-2/+11
2009-08-07Clear tab data from SkillDialogJared Adams1-2/+14
2009-08-07Gettext fixesKess Vargavind1-2/+11
Trying to use the same kind of capitalization and interpunctuation for various parts of the gui, melding a few split strings, updating POTFILES.in and adding translators' notes.
2009-07-26Gettext fixesKess Vargavind1-1/+1
And a Swedish translation of the desktop file.