summaryrefslogtreecommitdiff
path: root/src/gui/gui.h
AgeCommit message (Collapse)AuthorFilesLines
2024-03-02Updated mouse cursors to latest versionThorbjørn Lindeijer1-23/+26
The new cursor types are not used yet for now.
2024-02-27Added VSync and windowed fullscreen optionsThorbjørn Lindeijer1-1/+1
The configuration and setup UI were adjusted to the new options. This also fixes issues in applying new video settings. Default resolution was changed from 800x600 to 1280x720. VSync is enabled by default while FPS limit was disabled. Display aspect ratio for the resolution options. I had to work around some macOS issues: * Don't change window size when it appears to be "maximized", since it just changes the rendering area while leaving the window maximized. * Unset fullscreen display mode temporarily to allow changing resolutions, otherwise the rendering area no longer matches the screen and mouse input is also off. * Removed SDL_WINDOW_ALLOW_HIGHDPI for now because it causes issues on macOS, since we're not actually handling the scaling factor. A Video class and an SDLGraphics subclass were split off from Graphics. This setup has Less duplication and leaves the OpenGLGraphics and SDLGraphics better separated. Fixes #57 Fixes #58
2024-01-26Apply C++11 fixitsThorbjørn Lindeijer1-4/+4
modernize-use-auto modernize-use-nullptr modernize-use-override modernize-use-using
2024-01-25Ported to SDL2Thorbjørn Lindeijer1-0/+2
2012-01-26Updated copyrights to 2012Thorbjørn Lindeijer1-1/+1
2012-01-22Allow resizing of the game in windowed modeThorbjørn Lindeijer1-0/+5
Window positions are semi-smartly corrected as a result of the resize. Not supported when using OpenGL on Windows for now. Reviewed-by: Yohann Ferreira
2011-05-13Made the setup keyboard tab prettier.Angelo Castellani1-0/+5
Incidentally I added support for a monospaced font (which may come in handy).
2011-04-09Removed a lot of useless "documentation"Thorbjørn Lindeijer1-6/+0
I have to admit I contributed a large part of these. Sorry for that. Less empty space, more attention to the code. Acked-by: Jared Adams
2010-02-28Add some new mousers and simplify related codeidiomatic1-0/+3
Signed-off-by: Jared Adams <jaxad0127@gmail.com>
2010-02-22Modify copyright headersFreeyorp1-1/+2
2010-02-20License header update for The Mana ClientThorbjørn Lindeijer1-4/+3
2010-02-14Don't create the viewport until it's really needed.Tametomo1-1/+0
Signed-off-by: Tametomo <irarice@gmail.com>
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-12Standardize header orderJared Adams1-2/+2
Also remove some extra new lines and fix eAthena's PartyTab define guards.
2009-05-10Don't show the chat input when a modal widget has focusBjørn Lindeijer1-0/+3
For example, the chat input would become visible when using Enter to confirm the exit dialog.
2009-05-03Moved strprintf into stringutils.{h,cpp}Bjørn Lindeijer1-4/+4
2009-04-15Also hardcode the bold font, we ship it after allBjørn Lindeijer1-7/+2
Plus some tweaks and cleanups.
2009-03-23Merge branch 'aethyra/master'Bjørn Lindeijer1-0/+5
Conflicts: Many files.
2009-03-19Reformatted the item amount window and the buy/sell windows so thatIra Rice1-0/+5
their guis are similarly laid out. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-02-26Merge branch 'aethyra/master'Bjørn Lindeijer1-8/+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-22Fixed another Particle/Paricle mismatch in a commentPhilipp Sehmisch1-1/+1
2009-02-22Fixed another Particle/Paricle mismatch in a commentPhilipp Sehmisch1-1/+1
2009-02-22Renamed InfoParicleFont to InfoParticleFont (typo?)Philipp Sehmisch1-2/+2
2009-02-20Removed the last of the image particle guichan fonts.Ira Rice1-9/+2
Signed-off-by: Ira Rice <irarice@gmail.com>
2009-02-20Added a pickup notification as particle effect. Also make a ui option to ↵Majin Sniper1-0/+8
enable/disable this effect (default is off) and another option to disable the pickup notification in the chat log (default is on).
2009-02-19Added a pickup notification as particle effect. Also make a ui option to ↵Majin Sniper1-0/+8
enable/disable this effect (default is off) and another option to disable the pickup notification in the chat log (default is on).
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-07Some more include cleanups.Ira Rice1-1/+0
Signed-off-by: Ira Rice <irarice@gmail.com>
2009-01-25Removed the TMW branding from header guardsBjørn Lindeijer1-2/+2
2009-01-24Updated DejaVuSans ttf file, as well as adding the bolded version, whichIra Rice1-0/+4
is used in a few spots. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-01-24Use standard GUI font also for speech and namesBjørn Lindeijer1-11/+0
The speech bitmap font can't handle unicode, so it has now been replaced by the standard GUI font, drawn with a shadow for chat and with a full outline for names.
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-06Added support for unicode charset in textfields and chat.Guillaume Melquiond1-1/+2
Conflicts: src/Makefile.am src/game.cpp src/gui/browserbox.cpp src/gui/gui.cpp src/gui/textfield.cpp src/main.cpp (cherry picked from mainline commit 7b67e852086ad3ccd98a622f890b245ab6a0a321)
2008-12-05Fade out mouse cursor when not used for some timeBjørn Lindeijer1-0/+11
The mouse cursor will now disappear when not used for 15 seconds. When using OpenGL it will even fade. Requested by doorsman.
2008-11-18Pedantic fixes to the client, where I alphabetized all of the include Ira Rice1-3/+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-08-13Added support for different colored fonts for different being typesLloyd Bryant1-0/+8
2008-07-18Import of client treeLloyd Bryant1-1/+1
2007-10-18Merged removal of dependency on Guichan OpenGL from trunk to 0.0 branch, Bjørn Lindeijer1-2/+0
including optimization of OpenGL memory usage on modern OpenGL drivers. Patches by Guillaume Melquiond.
2007-08-24Removed unnecessary Gui::isCustomCursor method.Bjørn Lindeijer1-19/+8
2007-08-24Removed useless logic method and reverted mouse cursor to non-static sinceBjørn Lindeijer1-8/+1
there can be only one Gui instance so there is no point in supporting a shared resource.
2007-08-20Added close button functionality, resize cursor cues.Joshua Langley1-2/+33
2006-12-04Introduced a new class Viewport which combines the drawing code from EngineBjørn Lindeijer1-48/+4
with the (rather misplaced) input handling from the Gui class. Also, it's a Container itself which should allow for extending it to show Guichan widgets on map coordinates.
2006-11-17Added mouse following support.Björn Steinbrink1-0/+14
2006-01-05Remove some useless code.Björn Steinbrink1-1/+0
2005-12-29Added popup support to the Gui class. Moved all mouse input handling into ↵Björn Steinbrink1-3/+22
the Gui class.
2005-10-13Use gcn::Font instead of gcn::ImageFont as pointer type.Björn Steinbrink1-6/+6
2005-09-30Updated NEWS file for next release.Bjørn Lindeijer1-1/+1
2005-08-28Prepare our source so that it'll survive a guichan header cleanup, should it ↵Björn Steinbrink1-0/+1
ever happen...
2005-08-28Create a GuiConfigListener class.Björn Steinbrink1-2/+3
2005-08-15Removed guiTop global variable.Björn Steinbrink1-1/+0