summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2009-02-05Rather than to settle for a broken default (if it's left at space,Ira Rice2-44/+56
then you won't be able to type spaces in the NPC integer or string dialogs. And no, assigning focus to the ok button doesn't resolve anything, but makes things worse, as then the user has to click on the input field to input text, then must click the ok button, as the chat window already overrode it's confirmation action), this commit allows for both the chat input and the NPC dialog confirming to share the same key, but allows for people to change one or the other if they want to. This will still allow for the player to use the keyboard fully for NPC dialogs, but allow for people who don't like not being able to use chat with an NPC dialog open to assign confirmation to another key and get their way as well. This is a rather ugly way of resolving both sides of the issue, but it's the only way to appease both sides. The Aethyra players want things the way they were, while Bjorn wanted things a different way. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-02-05Refreshed translation files to contain the keyboard configurationIra Rice25-8719/+15193
strings. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-02-05Three things: Split chat and NPC dialog functionality based on the TMWIra Rice4-112/+120
complaint commit d2876ad85935c5d0b181d050bd4c19a4682123b1 (btw, if you're concerned about that, return is also a bad choice for the chat window in general, which overrides the GuiChan default for use widget. Tab would also be a bad choice, as it cycles through the widgets), next, I made the text displayed by the keyboard configuration setup dialog translatable, and lastly, I exposed the rest of the previously unconfigurable keys to be configurable through the keyboard setup tab. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-02-04Fixed a few table events. One prevented wrapping for tables when you areIra Rice1-10/+10
scrolling through the table upward, while the other didn't check upper bounds for rows and columns to see if the event is in the table, but rather just the lower bounds. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-02-04Cleaned up some login includes that I missed earlier.Ira Rice2-9/+6
Signed-off-by: Ira Rice <irarice@gmail.com>
2009-02-04Modified the NPC string and integer classes to automatically take focusIra Rice5-8/+36
to the input fields. Now the only NPC dialog which isn't completely navigatable by the keyboard alone is the NPC list dialog (seems to have regressed slightly recently). Signed-off-by: Ira Rice <irarice@gmail.com>
2009-02-04Added key and mouse events to the table class.Ira Rice3-12/+143
Signed-off-by: Ira Rice <irarice@gmail.com>
2009-02-04Changed NPC list dialog to selection wrap.Ira Rice1-0/+1
Signed-off-by: Ira Rice <irarice@gmail.com>
2009-02-04Simplified equipment window initialization, since only the local playerIra Rice3-6/+6
has an inventory or an equipment. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-02-04Moved mEquipment to the LocalPlayer class, since it's the only placeIra Rice4-5/+4
that uses it anyways. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-02-04Added destructors to some classes originally obtained from Legends ofIra Rice4-0/+20
Mazzeroth. At the moment, I think this is the last of the missing pointer deletes, but if more are found, then I'll add them to the proper classes and delete them. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-02-04A few more pointers which weren't getting deleted.Ira Rice4-0/+19
Signed-off-by: Ira Rice <irarice@gmail.com>
2009-02-04Got rid of a few dangling pointers.Ira Rice1-0/+2
Signed-off-by: Ira Rice <irarice@gmail.com>
2009-02-04Forgot to check left clicking, as I assumed that it wouldn't break usingIra Rice1-4/+10
the same lookup code. This fixes left clicking on the last commit. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-02-04Added a right click popup menu, and item popups to the equipment window.Ira Rice2-9/+79
Signed-off-by: Ira Rice <irarice@gmail.com>
2009-02-04On the offchance that a player's name is longer than 130 pixels, set theIra Rice1-2/+2
mininum width for the text wrapping code to be the length of the player's name instead. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-02-04Since they're now doing the same thing, having a branch is a little bitIra Rice1-16/+6
silly. Condensed the sizing code for speech bubbles to do the same for speech bubbles of all sizes. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-02-04Fix for the last commit, where I forgot to modify the set dimension andIra Rice1-4/+2
set content size functions to use the width variable. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-02-04Not sure how this happened in the first place, but this should ensureIra Rice1-1/+3
that speech bubbles are always at least as long as the name is. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-02-04Fixed a bug in windows setup script which caused translations to be ↵Philipp Sehmisch1-2/+1
extracted to the wrong directory.
2009-02-04Few more unneeded headers that weren't noticed originally in the lastIra Rice8-11/+3
commit. Also, while the overall performance improved a little, it doesn't appear to be as drastic as the last commit was suggesting. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-02-04Went through the gui folder and revised the include statements to notIra Rice123-438/+177
include anything not needed by that specific widget or window. This appears to have cleaned up system performance a bit on my current setup, where it went from idling on 45% in game with opengl down to 30% now. Also moved iptostring to the tostring header, as importing all of network.h is a little overkill to use that function, and it goes along with the basic functions that are in that header file anyways. TODO: find out a way to get rid of warnings when a class doesn't use this function. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-02-03Applied a minimum height and width to the help window.Ira Rice1-0/+2
Signed-off-by: Ira Rice <irarice@gmail.com>
2009-02-03Show the scroll area again for the skill dialog. While this commit isn'tIra Rice1-1/+0
needed so much, I think that now that opacity actually works in tables now, it looks a bit bettwe with the scroll area visible. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-02-03Modified video mode selection to not test the resolution clicked on, andIra Rice1-17/+0
to trust that the resolutions presented are legal resolutions to try. This shouldn't be an issue, as the resolutions listed are pulled straight from SDL, and it avoids showing the user a visual artifact. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-02-03Disable alpha values affecting two widgets which would otherwise takeIra Rice3-7/+26
alpha values under SDL. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-02-03Modified the dropdown class to handle opacity.Ira Rice4-19/+81
Signed-off-by: Ira Rice <irarice@gmail.com>
2009-02-03Fixed up table class to allow for different background colors, as wellIra Rice7-115/+128
as defining whether the given table is opaque or not. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-02-03Changed the listbox in the color setup pane to use the customizedIra Rice1-1/+2
listbox. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-02-03Made highlights configurable through the color dialog.Ira Rice4-5/+27
Signed-off-by: Ira Rice <irarice@gmail.com>
2009-01-30Made the shoplist box alpha blend.Ira Rice2-3/+13
Signed-off-by: Ira Rice <irarice@gmail.com>
2009-01-30Added highlighting ability to tabs.David Athay2-8/+29
2009-01-30Made the recorder class messages translatable, as well as moved theIra Rice2-8/+24
recorder over to the layout code (not that it helps much at the moment). Signed-off-by: Ira Rice <irarice@gmail.com>
2009-01-30Swapped the default settings for two labels, which had been mixed up.Ira Rice1-2/+2
Signed-off-by: Ira Rice <irarice@gmail.com>
2009-01-30Reflowed status window using the layout class.Ira Rice2-160/+62
Signed-off-by: Ira Rice <irarice@gmail.com>
2009-01-30Fixed the item container so that it displays all item captions with theIra Rice1-0/+1
default font. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-01-30Moved weight and slots back to the top of the inventory window.Ira Rice1-6/+6
Signed-off-by: Ira Rice <irarice@gmail.com>
2009-01-30Some style cleanups to the image class. TODO: Find a way to fix theIra Rice1-21/+22
subimage class so that when OpenGL isn't enabled, GUI opacities can still be applied. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-01-30Found a few more gui elements that didn't get exposed to transparencyIra Rice4-19/+42
updating. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-01-30Applied alphas to the progress bar fill and text overlays as well.Ira Rice1-3/+8
Signed-off-by: Ira Rice <irarice@gmail.com>
2009-01-30Exposed most gui elements to take alpha values. There are still a fewIra Rice24-28/+160
spots that could also be fixed up as well, but require other methods to fix them (the filled color rectangles on the progress bars, as well as the text on them as well, as an example). Signed-off-by: Ira Rice <irarice@gmail.com>
2009-01-30Changed the minimap to remember whether the minimap was toggled or notIra Rice1-2/+3
when the client was last exited. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-01-30Re-enabled real time gui opacity updating.Ira Rice1-3/+8
Signed-off-by: Ira Rice <irarice@gmail.com>
2009-01-30Fixed color saving on Windows.Ira Rice1-3/+2
Signed-off-by: Ira Rice <irarice@gmail.com>
2009-01-30Fixed the last freestanding minimap bug. Now minimaps behave perfectlyIra Rice1-1/+2
even when there's already a saved window configuration. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-01-29Trimmed out a few help functions from some subclasses, and moved themIra Rice5-40/+13
back to the chat class, where they really belong. Since the party class parses its own suboptions, I left the suboptions within that class. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-01-29Fixed up minimap resizing code so that the minimum width is always longIra Rice1-6/+12
enough to contain the map's name. Also fixed an unnoticed logic flip that was done unintentionally. This class now manages to work perfectly when the config file has no previous dimensional influences, but still won't resize properly without removing the ability to resize or getting rid of those stored configs. TODO: Find out why loading window configuration for the default minimum width or height overrides the Minimap's supplied dimensions it wants. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-01-29Converted CRLF newlines to LFBjørn Lindeijer1-0/+42
2009-01-29Update Swedish translation. Two (or rather three) msgstrs require the use of ↵Kess Vargavind1-232/+219
"no-c-format".
2009-01-29Don't send empty chats (long lines of empty spaces).Ira Rice1-0/+5
Signed-off-by: Ira Rice <irarice@gmail.com>