summaryrefslogtreecommitdiff
path: root/src/gui/widgets
AgeCommit message (Collapse)AuthorFilesLines
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-10-22Turned the OpenGL and disable transparency options as static members.Yohann Ferreira1-2/+2
- Now OpenGL and the transparency disabling are set at startup and not read again for displaying graphics, preventing graphic errors before startup. - We also agreed long time ago that SDL specific functions should have a SDL prefix. The header has been rearranged a bit to do so. - Also fixed a possible discrepancy in the hasAlphaChannel() function. Reviewed-by: CodyMartin. Resolves: Mana-Mantis: #260.
2010-10-01Fix possible invisible chat.Andrei Karas1-5/+2
Reviewed-by: Thorbjorn
2010-09-30Setting alpha for items in ItemShortcutContainerStefan Dombrowski1-0/+1
Reviewed-by: Thorbjorn
2010-09-29Improve chat speed.Andrei Karas3-193/+128
Parse chat lines in BrowserBox once after changes. Reviewed-by: Thorbjorn
2010-09-28Removing click-countStefan Dombrowski2-45/+4
Click-count is not double-click, because it does neither check if the clicks happen on the same object nor if the clicks happen in rapid succession. * In the server dialog it can happen that you can get connected by just selecting a server. * In the social window it can happen that you open a chat by just clicking once on a name. * In the inventory window you better only select useable items if you want to use them, because they might get used by just selecting them. * And in case you actually want to use double-click, it often does not work, because click-count is already larger than 2. This reverts the commits: 8b4d9f9b5eaf175baf0c4209c312133bb457742c b1aef06ac85b1ed7db7725e50b2dbfcdfd1a0925 4c27bfbf6ca84546e5b914b7909df14dd2966081 Reviewed-by: Thorbjorn
2010-09-02Avoiding empty lines in historyStefan Dombrowski1-1/+2
2010-08-31Fixing auto complete and chat historyStefan Dombrowski2-14/+8
Reviewed-by: Jaxad0127
2010-08-29Move handling of autocomplete and input history into TextFieldJared Adams4-21/+197
Reviewed-by: Freeyorp
2010-08-25Adding autoComplete for inviteStefan Dombrowski3-2/+27
Signed-off-by: Jared Adams <jaxad0127@gmail.com>
2010-08-22Fixing segmentation fault when tab gets removedStefan Dombrowski1-17/+3
How to reproduce the bug: Leave a party, while the party tab in the chat window is not selected. Then click with the mouse on the chat window. Signed-off-by: Thorbjørn Lindeijer <thorbjorn@lindeijer.nl>
2010-08-19Fixing some bugs in NPC-shop guiStefan Dombrowski2-0/+24
* 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-03Added double click to equip unequip and use itemsdweems1-4/+36
-Double-click items in invetory to equip/unequip -Double-click items in inventory to use Signed-off-by: Jared Adams <jaxad0127@gmail.com>
2010-07-16Fix memory corruption in chat on exit.Andrei Karas1-1/+2
Signed-off-by: Jared Adams <jaxad0127@gmail.com>
2010-05-13Draw item image in item popups.Andrei Karas2-7/+8
Now draw image only in chat item popup. Reviewed-by: Bertram
2010-05-06Fix reading arrays at index -1.Andrei Karas2-3/+12
Signed-off-by: Jared Adams <jaxad0127@gmail.com>
2010-05-06Fixed some copy/pasted documentationThorbjørn Lindeijer1-3/+3
2010-04-16Fix canceling game connectionJared Adams1-0/+2
Reviewed-by: Bertram
2010-03-31Removed the ability to assign custom skins to windows/popupsThorbjørn Lindeijer4-58/+2
Old settings are causing it to fall back on the wrong combination of files if old data is in the search path. Reviewed-by: Jared Adams
2010-03-29Fix ListBox::draw to work more correctlyJared Adams1-4/+4
Reviewed-by: Thorbjørn Lindeijer
2010-03-26Replace most dynamic_casts with static_castsJared Adams1-10/+7
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-12Split Palette into Theme and UserPaletteJared Adams24-70/+87
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 Adams19-75/+71
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-0/+8
Reviewed-by: Jared Adams Reviewed-by: Bertram
2010-03-02Revert "Merge WindowContainer into Viewport and remove extra members"Jared Adams6-12/+144
This reverts commit 67e678094b9fddd21fb3c690130e772937ab2746. Conflicts: src/gui/gui.cpp src/gui/viewport.cpp
2010-03-01Merge WindowContainer into Viewport and remove extra membersJared Adams6-144/+12
Reviewed-by: Chuck Miller
2010-03-01Hide BeingPopup when mouseover WindowsJared Adams3-1/+16
Reviewed-by: Thorbjørn Lindeijer Reviewed-by: Chuck Miller
2010-02-28Forgot to change popup to window.xmlJared Adams1-1/+1
2010-02-28Rename gui.xml to window.xmlJared Adams1-1/+1
2010-02-28Make the gui more themeable and distribute two themesJared Adams19-81/+61
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-27Report more info on client in cURL useragent and DesktopJared Adams1-1/+11
Reviewed-by: Thorbjørn Lindeijer Reviewed-by: Chuck Miller
2010-02-25Handle Ctrl+v for pasting in text fieldsThorbjørn Lindeijer2-0/+18
Reviewed-by: Jared Adams
2010-02-24Move StorageWindow to instancing intead of globalJared Adams1-1/+1
Also make storage under eAthena more flexible. Reviewed-by: Dennis Friis
2010-02-22Change chat autocompletion to be more flexibleJared Adams4-25/+2
Reviewed-by: Chuck Miller
2010-02-22Fixed crash on exit when you're part of a guildThorbjørn Lindeijer2-4/+3
When the ChannelTab gets deleted by the Channel, the ChatWindow may have already been removed. So before telling it that the tab got deleted, check whether it's still there. Reviewed-by: Jared Adams
2010-02-22Fix more copyright headersJared Adams2-2/+2
2010-02-22Cleanup some popup-related code and make sure BeingPopup is includedJared Adams6-4/+28
2010-02-21Made tick counter and framerate limiter work during login sequenceThorbjørn Lindeijer1-0/+2
Much code was moved from main() to the new Client::exec(). This new event loop now integrates with the Game class, so that the tick counter and framerate limiter apply universally. The Client class is also responsible for some things that used to be global variables. Mantis-issue: ...
2010-02-21Do some more copyright header cleanupsJared Adams15-15/+11
Fix "(C) 2009-2009" to just "(C) 2009" Fix "(C) 2010 TMW" to "(C) 2010 Mana" Remove TMW compyright on (hopefully all) files added after 0.0.29.1
2010-02-22Modify copyright headersFreeyorp79-79/+158
2010-02-20License header update for The Mana ClientThorbjørn Lindeijer89-352/+263
2010-02-20Don't check a pointer for 0 before deleting itThorbjørn Lindeijer1-2/+2
This check is built in already.
2010-02-19Prevent issues when channels are cleared after the ChatWindowJared Adams1-0/+3
2010-02-19Fixed a crash when trying to switch serversThorbjørn Lindeijer1-1/+1
Ownership of the charInfo global variable wasn't well defined. It was being locked, unlocked and generally modified from a lot of places, and somewhere in this mess it ended up crashing when switching servers. Now the CharHandler instances, for eAthena and manaserv respectively, own this list of characters. A new class, Net::Character wraps up the slot index in combination with the player dummy. The list is passed on to the CharSelectDialog each time it changes. Both related and unrelated cleanups were made as well. Reviewed-by: Jared Adams
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-14Remove focus from a window's internal widgets on hiding.Tametomo2-1/+10
Signed-off-by: Tametomo <irarice@gmail.com>
2010-02-14Don't allow tabs to be focusable. Our tab implementations are heavilyTametomo1-0/+1
dependent on a tabbed area, and because of that, shouldn't get double focus. Signed-off-by: Tametomo <irarice@gmail.com>
2010-02-14Fixed DropDowns not collapsing when an item was clicked on, or enter orTametomo2-21/+28
space was pressed. Signed-off-by: Tametomo <irarice@gmail.com>
2010-02-14Release modal mouse focus in DropDowns when focus is lost. If notTametomo2-0/+10
released, this can cause the user to think that the client has frozen up when dialogs such as the quit dialog take modal focus. Signed-off-by: Tametomo <irarice@gmail.com>