summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2009-03-14Fix a spelling error in paletteJared Adams1-1/+1
2009-03-14Fix cancel button in color config dialogMajin Sniper1-4/+5
Also save the committed gradient, not the one currently used.
2009-03-14Fix a spelling error in paletteJared Adams1-1/+1
2009-03-14Fix cancel button in color config dialogMajin Sniper1-4/+5
Also save the committed gradient, not the one currently used.
2009-03-13Added item types to the palette class.Ira Rice4-19/+64
Signed-off-by: Ira Rice <irarice@gmail.com>
2009-03-13Made the TextPreview widget respect alpha values.Ira Rice3-8/+20
Signed-off-by: Ira Rice <irarice@gmail.com>
2009-03-12Fixed an incorrect palette reference, as well as a break that wasIra Rice2-1/+6
introduced from the palette code. TODO: Cancel is effectively broken, and broken badly in the Colors setup pane. Fix this. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-03-12Added in option for opacity for the text preview widget, which all ofIra Rice3-8/+26
the other widgets have as well. Also set the preview widget to have opacity off, like all of the other widgets (if it is on, then opacity can't be applied to it. Also looks rather tacky with it) Signed-off-by: Ira Rice <irarice@gmail.com>
2009-03-12Make use of the new available colorsMajin Sniper19-99/+105
This patch lets all being derivatives use the palette to set their name's colors. Text Particle Effects all respect the new settings. Some widgets were updated to use the colors.
2009-03-12Fix a bug in the units systemJared Adams1-2/+2
2009-03-12Extend color config gui to support the new colorsMajin Sniper8-45/+361
The new color palette supports many more colors that the browserbox can display. So a change to the color config gui was needed.
2009-03-12Extending the internal handling of colorssniper13-104/+711
The internal storage for colors was in the file color.h/color.cpp. It mainly managed the colors in the chat. The Color class was extended to be more generic now and it stores gcn::Color objects instead of integers now. A lot of new colortypes are now available, though not many of them are used for now, that will come in the next patches. The Color class was renamed to Palette and color.{h,cpp} to palette.{h,cpp} to better describe its purpose. The color config gui now lists the new colors, even changes them, but the result is not displayed properly for now.
2009-03-12Added a class for rendering of floating textsniper4-41/+95
This is a header only-class that merges the textrendering of the TextParticle and Text classes. It is done to reduce code duplication and to prepare some color configuration gui.
2009-03-12Make use of the new available colorsMajin Sniper22-101/+102
This patch lets all being derivatives use the palette to set their name's colors. Text Particle Effects all respect the new settings. Some widgets were updated to use the colors.
2009-03-12Extend color config gui to support the new colorsMajin Sniper7-25/+369
The new color palette supports many more colors that the browserbox can display. So a change to the color config gui was needed.
2009-03-12Added a class for rendering of floating textsniper3-53/+94
This is a header only-class that merges the textrendering of the TextParticle and Text classes. It is done to reduce code duplication and to prepare some color configuration gui.
2009-03-12Extending the internal handling of colorssniper13-381/+700
The internal storage for colors was in the file color.h/color.cpp. It mainly managed the colors in the chat. The Color class was extended to be more generic now and it stores gcn::Color objects instead of integers now. A lot of new colortypes are now available, though not many of them are used for now, that will come in the next patches. The Color class was renamed to Palette and color.{h,cpp} to palette.{h,cpp} to better describe its purpose. The color config gui now lists the new colors, even changes them, but the result is not displayed properly for now.
2009-03-12Removed some unneeded stub code.Ira Rice1-22/+3
Signed-off-by: Ira Rice <irarice@gmail.com>
2009-03-12Made hair load again (commit e2d60401eaf55abe9e2251854f3174ffe0f4ad9eIra Rice3-4/+17
from TMW broke this, as it deleted the Being::load() method, which also loaded the hair styles). Also removed some unused variables in the being class. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-03-12Move emote sprite loading into EmoteDBJared Adams9-57/+29
2009-03-12Fix leaks in status effectsJared Adams3-14/+23
2009-03-12Move emote sprite loading into EmoteDBJared Adams9-49/+31
2009-03-11Enforce minimum widths and heights to be at least as big as the minumumIra Rice4-8/+9
width and height for the skin used. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-03-11Modified Skin class to use proper encapsulation, instead of leaving itsIra Rice4-30/+81
skin variables public. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-03-11Centered buy/sell dialog.Ira Rice1-0/+2
Signed-off-by: Ira Rice <irarice@gmail.com>
2009-03-11Removed widget listeners from the popup class. Tests have shown that atIra Rice2-5/+1
least for popup type functionality, this isn't needed. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-03-11Fixed up speech bubbles slightly so that it respects different paddingIra Rice1-3/+3
values. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-03-11Only check for name and descriptions in items with positive ID's in theIra Rice1-2/+5
ItemDB. This helps reduce the junk logging for the player and hair sprites. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-03-11Added a new Popup class, which overall is functionally similar to theIra Rice19-86/+477
Window class, but stripped down to the bare essential functionality to just draw and position them. This means no resizing, no close buttons, no ability to move them, etc. This should help reduce the overhead in drawing speech bubbles, as well as other popup type dialogs, but is also not a drop in replacement for the Window class as well. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-03-11Fix a memory leak in dropdownJared Adams1-0/+3
2009-03-11Don't move stuff from inventory when not visibleJared Adams3-3/+7
2009-03-11Fix segfault when being count reaches 0 too oftenJared Adams3-30/+34
2009-03-11Moved the Skin class outside of the Window class, in order to allowIra Rice9-204/+286
other widget containers to use skins as well, and to make it easier to extend later. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-03-11Remove some duplication in hair loading codeJared Adams2-54/+29
2009-03-11Fix a memory leak in dropdownJared Adams1-0/+3
2009-03-11Fix order of function calls when loading dataJared Adams1-3/+3
2009-03-11Fix segfault when being count reaches 0 too oftenJared Adams3-30/+34
2009-03-11Don't move stuff from inventory when not visibleJared Adams3-3/+7
2009-03-10Delete local player earlier and fix a rare crashJared Adams2-1/+3
Rare crash is in KeyboardConfig, where the active keys array is accessed before it's initialized. Also remove some debug prints that made it into a previous commit.
2009-03-10Introduced in a Skin holder class, to reduce the amount of needed XMLIra Rice2-41/+91
skin loads. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-03-10Delete local player earlier and fix a rare crashJared Adams3-4/+2
Rare crash is in KeyboardConfig, where the active keys array is accessed before it's initialized. Also remove some debug prints that made it into a previous commit.
2009-03-10Set minimum bounds for speech bubbles, based on the skin's minimumIra Rice1-0/+3
dimensions. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-03-10Remove some SetupWindow weirdnessJared Adams4-8/+18
2009-03-10Fix some mem leaksJared Adams13-48/+20
2009-03-10Remove some SetupWindow weirdnessJared Adams4-7/+10
2009-03-10Fix some mem leaksJared Adams13-20/+48
2009-03-10Fix some mem leaksJared Adams13-20/+48
2009-03-10Allow for offsets for the enumerated position version ofIra Rice2-17/+17
setLocationRelativeTo as well. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-03-10Allow null link handlers for browser boxJared Adams1-0/+1
2009-03-10Extended window layout to take relative positions, as well as offsets toIra Rice23-75/+194
that position. This makes it so that when resolutions are changed, the default locations stay relative to the window's position, and not the 800x600 screen resolution. Signed-off-by: Ira Rice <irarice@gmail.com>