summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
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-29Don't send empty chats (long lines of empty spaces).Ira Rice1-0/+5
Signed-off-by: Ira Rice <irarice@gmail.com>
2009-01-29Make sure that strings aren't chopped off when a | isn't found.Ira Rice1-1/+3
Signed-off-by: Ira Rice <irarice@gmail.com>
2009-01-29If an item link isn't found, don't treat it as a link.Ira Rice2-13/+10
Signed-off-by: Ira Rice <irarice@gmail.com>
2009-01-29Removed useless check from the last commit.Ira Rice1-5/+3
Signed-off-by: Ira Rice <irarice@gmail.com>
2009-01-29Fixed a crash caused by getting the wrong string substring. In doing so,Ira Rice1-22/+15
the algorithm was optimized further, so that only one correction needs to be done if the last line is the longest. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-01-28Adjusted a few color defaults to make them easier to see.Ira Rice1-4/+4
Signed-off-by: Ira Rice <irarice@gmail.com>
2009-01-28Added coloring of item names by type. TODO: Allow this to beIra Rice4-9/+45
customizable through the color interface so that if someone is colorblind to a certain color and it doesn't show up well, they can change it (or even people who just don't like the default color). Signed-off-by: Ira Rice <irarice@gmail.com>
2009-01-28Fixed a slight error in item name widths.Ira Rice1-3/+2
Signed-off-by: Ira Rice <irarice@gmail.com>
2009-01-28Fix for a mistake in one of the logicc statements in the last commit.Ira Rice1-1/+1
Signed-off-by: Ira Rice <irarice@gmail.com>
2009-01-28Finally put in the last missing wrapping case that has been missing fromIra Rice1-6/+25
the textbox class. Should now always choose the most ideal text wrap possible. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-01-28Consolidated setMinWidth into textWrap, since all lines are dependantIra Rice7-49/+33
upon knowing what dimension they have to wrap to or beat in order for text wrapping to work. By adding this to be initiated at the same time as the text wrapping is done, this should decrease visual artifacts caused by not initializing it properly to begin with. Also made the item popups compact to the minimum dimension. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-01-28Moved NPC text back to using the textbox. Rationale is that the textboxIra Rice2-15/+38
code is in much better shape than the browserbox code at the moment, and that the move to using the browserbox was a bit silly, as textbox already wraps. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-01-28Fix handling of packet 0x81Jared Adams4-33/+79
2009-01-28Removed manual trimmings in exchange for using trim.h instead.Ira Rice2-17/+5
Signed-off-by: Ira Rice <irarice@gmail.com>
2009-01-28Added missing files to CMakeLists.Ira Rice2-9/+35
Signed-off-by: Ira Rice <irarice@gmail.com>
2009-01-27Removed the fairly useless buttonbox class, as well as removing theIra Rice7-212/+140
recorder's dependence upon it. This class should get a bit more work done to it to simplify it further, but right now, it preserves all of the same functionality. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-01-27Restore punching animation after weapon removalJared Adams1-0/+5
2009-01-27Added font size config for the bold font as well.Ira Rice1-1/+2
Signed-off-by: Ira Rice <irarice@gmail.com>
2009-01-27Made font size configurable in config fileBjørn Lindeijer1-1/+2
Just change the value of 'fontSize'. This should be made configurable in the GUI though, and the GUI should then automatically adapt to the new font size.
2009-01-26Bolded item names in the item popup. TODO: Modify this later to alsoIra Rice1-0/+1
color the item name based on general function, like speech bubbles do for being names. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-01-26Fixed the number of arrows from drawing in red when the shirt isIra Rice1-0/+1
selected in the equipment window. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-01-26Removed the description option from right click menus on items. WithIra Rice1-7/+0
item popups, this is no longer useful, as well as it never doing anything to begin with. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-01-26Fixed a few default window sizes so that they look better for first timeIra Rice3-2/+4
client loaders. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-01-26Adjusted selection colors so that it blends better with the AethyraIra Rice2-2/+2
theme. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-01-26Cleaned up inventory includes, as well as adding right click popup menusIra Rice3-8/+30
to the item shortcut container. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-01-26Little bit of include cleanups.Ira Rice10-19/+17
Signed-off-by: Ira Rice <irarice@gmail.com>
2009-01-26Slight bit of code cleanup, as well as minor fixes to logic. For someIra Rice3-34/+33
reason, the windows will gladly shrink when resizeable, but not grow. This will need to get resolved some time later. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-01-26Merged new and delete buttons, since either one or the other is alwaysIra Rice2-22/+22
enabled, and having both doesn't look as good. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-01-26Created a new equipment screen, which is loosely related to theIra Rice4-39/+173
equipment screen on TMW's mainline client. Also fixed up the player box so that it can be used in game as well, which could potentially be useful in the future for making future equipment dialog changes. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-01-26Made minimaps resizeable.Ira Rice2-4/+33
Signed-off-by: Ira Rice <irarice@gmail.com>
2009-01-26Modified item popups to show the weight of the item as well. TODO:Ira Rice3-17/+62
modify itemdb to pull the item weight information from the server instead of the client, so as to always have the server and client in sync. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-01-26Modified the inventory window so that weight and slots used are shown asIra Rice2-20/+41
progress bars. Suggestion made by Forge. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-01-26Bit of code cleanup for the last commit (moved default width and heightIra Rice3-12/+12
out of being.h, so that they aren't included in any classes that don't need them and cut the number of divisions in half in the being manager) Signed-off-by: Ira Rice <irarice@gmail.com>
2009-01-26Fixed offset of right-click hitboxes and made NPCs without spritesIra Rice3-7/+20
clickable. Also set a minimum clickable area so that small mobs like maggots aren't too difficult to click. Been wanting this patched for a while, but didn't know where to look until Crush's patch for mainline click zones on TMW. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-01-25Changed it so that " :" messages are properly recognized as being fromIra Rice1-1/+7
the server in the chat log. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-01-25Fixed use button so that it starts out at the maximum width it willIra Rice1-1/+11
need. TODO: Modify layout rendering to be able to detect resizes. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-01-25Repaired item weight and slot reporting.Ira Rice2-14/+17
Signed-off-by: Ira Rice <irarice@gmail.com>
2009-01-25Goofed up the default inventory size that shows with inventory windows.Ira Rice1-1/+1
Signed-off-by: Ira Rice <irarice@gmail.com>
2009-01-25Fixed a few translatable strings.Ira Rice2-8/+8
Signed-off-by: Ira Rice <irarice@gmail.com>
2009-01-25Tweaked the green color to be more readableBjørn Lindeijer1-1/+1
2009-01-25Modified the inventory window to be more TMW translation friendly.Ira Rice2-11/+19
Signed-off-by: Ira Rice <irarice@gmail.com>
2009-01-25Removed the TMW branding from header guardsBjørn Lindeijer157-337/+341
2009-01-25Made the labels on the progress bars more readableBjørn Lindeijer6-58/+67