summaryrefslogtreecommitdiff
path: root/src/gui/widgets/browserbox.cpp
AgeCommit message (Collapse)AuthorFilesLines
2024-01-29Apply C++11 fixitsThorbjørn Lindeijer1-8/+3
modernize-loop-convert modernize-deprecated-headers
2024-01-26Apply C++11 fixitsThorbjørn Lindeijer1-7/+7
modernize-use-auto modernize-use-nullptr modernize-use-override modernize-use-using
2012-02-07Made BrowserBox use the recommended line skip for its fontThorbjørn Lindeijer1-45/+58
SDL_ttf provides a separate function for getting the recommended line skip, or the spacing between two lines of text. When rendering multiple lines of text this should be used rather than the visual height of the font. Since the information is only available for TrueTypeFont, a dynamic_cast was used with a fallback on gcn::Font::getHeight. Also made some small tweaks but nothing that really affects performance. Reviewed-by: Yohann Ferreira
2012-01-26Updated copyrights to 2012Thorbjørn Lindeijer1-1/+1
2012-01-09Made the chat text much more readable in every opacity case.Yohann Ferreira1-3/+36
I added text shadow and outline support to the browserbox, and made it adapt the text for the chattabs depending on the GUI opacity. Reviewed-by: Ablu.
2011-01-03Merge branch '0.5'Thorbjørn Lindeijer1-3/+3
Conflicts: po/es.po po/fr.po src/net/tmwa/adminhandler.cpp update-creator.sh
2011-01-02Fixing compiler warningsStefan Dombrowski1-2/+2
The compiler gave two times the warning: comparison between signed and unsigned integer expressions. Reviewed-by: thorbjorn
2010-12-26Fix crash with corrupted links in chat.Andrei Karas1-2/+2
Reviewed-by: Kage
2010-11-01Merge branch '0.5' of gitorious.org:mana/manaYohann Ferreira1-183/+74
Conflicts: src/being.cpp src/client.cpp src/commandhandler.cpp src/gui/setup_video.cpp src/gui/socialwindow.cpp src/gui/viewport.cpp src/gui/widgets/browserbox.cpp src/gui/widgets/itemcontainer.cpp src/imageparticle.cpp src/localplayer.cpp src/localplayer.h src/map.cpp src/net/tmwa/beinghandler.cpp src/particle.cpp src/particle.h src/player.cpp src/player.h
2010-10-01Fix possible invisible chat.Andrei Karas1-5/+2
Reviewed-by: Thorbjorn
2010-09-29Improve chat speed.Andrei Karas1-183/+77
Parse chat lines in BrowserBox once after changes. Reviewed-by: Thorbjorn
2010-08-03Move Theme and UserPalette to the resources folderJared Adams1-2/+2
Reviewed-by: Yohann Ferreira
2010-03-12Split Palette into Theme and UserPaletteJared Adams1-7/+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-02-22Modify copyright headersFreeyorp1-1/+2
2010-02-20License header update for The Mana ClientThorbjørn Lindeijer1-4/+3
2010-02-14Fixed browser links not properly resizing once the font size is changed.Tametomo1-1/+1
They'd be in the correct position, just that the link length would always stay at the length of the original font. 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-26Fixed dealing with @@id|caption@@ causing ## to form line breaksDaniel Bradshaw1-0/+2
Add a couple of missing wrapped = false; lines, so that it doesn't treat every further ## as a line wrap
2010-01-12Improve chat speed.Andrei Karas1-29/+221
For improve chat speed this patch add some hacks to BrowserBox class, split big words in ChatTab. Also fix DoS in chat.
2010-01-11Cleanup GUI classesJared Adams1-1/+2
Moved remaining widgets into widgets folder, standardized include order, moved TextRenderer out.
2010-01-10Change code styleAndrei Karas1-2/+1
2009-05-26Fixed the line under links to not extend below the textBjørn Lindeijer1-1/+1
Caused the underline for links at the bottom of the BrowserBox to draw outside of the clip area.
2009-05-26Guard against an issue where forced wrapping would never succeedBjørn Lindeijer1-5/+5
In some situations, like when wrapping the "]." part after an item link, the attempt at forced-wrapping the text never succeeded. The additional guard "end > start" protects against these cases. Also made some small optimizations. Removed redundant c_str() calls, noticed by Octalot, and changed " " to ' ' for finding a space.
2009-05-23Fix resetting height of browserbox on /clear.Dennis Friis1-0/+1
Patch by QOAL (cherry picked from commit cc2cd67e1c3c3f95485ae4477b6a2f0d255e9163)
2009-05-13BrowserBox doesn't need to know about the TrueTypeFont classBjørn Lindeijer1-6/+6
2009-05-04Fix link colors and item links for pickup messagesJared Adams1-1/+1
2009-04-18Restored support for build-in colors to BrowserBoxBjørn Lindeijer1-20/+38
Now the BrowserBox can again display 9 build-in (non configurable) colors, used for example in the client news and the help window.
2009-04-13Fixed broken linksDavid Athay1-4/+7
2009-04-07Moved basic widgets into the gui/widgets directoryBjørn Lindeijer1-0/+418
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.