Christian Walther
e26f479bb5
Make font flags available to Python in PlasmaConstants.
11 years ago
Anne Marije v/d Meer
04647a1c98
Fix comment Hoikas
11 years ago
Christian Walther
bee6001b78
Fix ptGUIControl.setFontFlags().
11 years ago
Anne Marije v/d Meer
664339a4bd
Move methods to pyGUIControl to pyGUIControlTextBox.
11 years ago
Anne Marije v/d Meer
4e613d1899
add python api to set flags
...
Clean up unwanted changes caused by IDE extension -.-
Reworked implementation
11 years ago
Christian Walther
0c8fc6d559
Undo the kRenderJustXForceLeft bugfix of 4 commits back.
...
The fix (adding adjustment of fRenderInfo.fDestPtr) made kRenderJustXForceLeft behave as intended (left-aligning the edge of the bitmap rather than the side bearing of the first character) but cuts off shadows in some places (e.g. at the left edges of "BUDDIES" and "NEIGHBORS" in the mini KI). To ensure enough space for the shadow, and considering that all content was developed and visually optimized with the bug in place, it seems better to preserve the buggy behavior and make kRenderJustXForceLeft work exactly like kRenderJustXLeft.
11 years ago
Adam Johnson
1967178e37
Link shadowed text rendering to the plDynamicTextMap::kFontShadowed flag.
...
Conveniently enough, this existing but unimplemented flag is already set mostly the way we want it in the current PRPs.
11 years ago
Christian Walther
6b4739aec9
Implement shadowed text rendering.
...
Intended to make KI text (player list and chat) better readable on light and patterned backgrounds. In this WIP, all text on GUI controls is rendered shadowed.
11 years ago
Christian Walther
8c5286400a
Use premultiplied alpha for plDynamicTextMaps on GUI controls.
...
This fixes the irregular dark fringes around light text when not exactly pixel-aligned that are caused by independent interpolation of color and alpha. It also makes calculations simpler for things to come.
11 years ago
Christian Walther
b34577103e
Pixel-accurately clip characters to the available space instead of omitting whole characters that stick out.
...
In addition to being a prerequisite for shadowed text, this also fixes an issue sometimes seen at the bottom of the mini KI player list where characters with a descender were missing.
11 years ago
Adam Johnson
4cd2b2f7dd
Fix #303
11 years ago
Darryl Pogue
d615f47dc4
Improve clarity of stat/_wstat64 return value.
11 years ago
Darryl Pogue
87e2150948
Remove unneeded register keyword.
...
In modern compilers, the register keyword has no effect. On clang, it
generates warnings.
11 years ago
Darryl Pogue
b66a2ba9e3
Fix an uninitialized value in hsBounds.
11 years ago
Darryl Pogue
5e8d75169c
Use pointers instead of array syntax.
11 years ago
Branan Purvine-Riley
9724b8e17b
Fix uninitalized pointer assumed to be null in Listener.XMode console command
11 years ago
Branan Purvine-Riley
ff13a26e8a
Add better error handling to app.event console command
11 years ago
Michael Hansen
7c0c1635ab
Use the UTF-8 version of Expat
11 years ago
Darryl Pogue
a58fe4653f
Fix a clang warning in plPythonPack.
11 years ago
Darryl Pogue
c8d77714b9
Remove plFileSystem::GetTempFileName.
...
It was unused and on *nix used the deprecated mktemp function.
11 years ago
Darryl Pogue
f5e99ba9a3
Fixes for semaphores on *nix.
11 years ago
Michael Hansen
a58e9c643c
Clean up some warnings, and make the CRT ones more relevant
11 years ago
Darryl Pogue
a1e3fa6faf
Various MinGW compile fixes.
11 years ago
Florian Meißner
7a59dbae41
I did it wrooong
11 years ago
Florian Meißner
cedc2482e3
Fixes for plAvatar
11 years ago
Michael Hansen
3d1bcf1988
Whoops-a-birdy
11 years ago
Adam Johnson
5d919f6d28
Fix leak in GetLinkToCity
11 years ago
Adam Johnson
9e6200507b
Fix potential leak in OfferLinkToPlayer
11 years ago
Adam Johnson
571bdbab01
Fix leak in GetLinkToMyNeighborhood
...
pyAgeLinkStruct copies the plAgeLinkStruct, so we can create our initial
ALS on the stack and avoid crazy memory logic.
11 years ago
Adam Johnson
febc871e52
Fix HGLOBAL leak in plClipboard
11 years ago
Michael Hansen
05567a2881
Help Coverity figure out how auto string sizes work, and fix 64-bit
...
portability at the same time
11 years ago
Adam Johnson
acb980332f
Fix plMouseDevice crash
...
plMouseDevice::HideCursor can crash if it is called before the cursor is
created. This happens if the client pops up a disconnected dialog before
initialization is complete. I've seen it happen!
11 years ago
Michael Hansen
387e23061a
Minor changes to hash and hash_i to avoid making a copy of the string data
11 years ago
Adam Johnson
9e0330feea
Plate resource plString
11 years ago
Adam Johnson
b10795b9cb
Convert plClientResMgr to plString
...
DIE std::string DIE!!!
11 years ago
Adam Johnson
249f26c53f
plString Hash for unordered containers
11 years ago
Michael Hansen
d7fdf10455
Convert ReadSafe(W)String* to the plString variants, and remove the now
...
unneeded _TEMP variants. All safe strings read from hsStreams are
now plStringified :)
11 years ago
Michael Hansen
dceb911f25
Clean up some crazy in plClientResMgr
11 years ago
Michael Hansen
f1131bbb25
Fix winmain use and a couple of remaining SafeStrings => plString
11 years ago
Michael Hansen
ae1bbdc1d6
Animation SDL variable names => plString
11 years ago
Michael Hansen
ef04cfcf84
Age Link info names => plString
11 years ago
Adam Johnson
f9a72e1a8f
Repeatable emote animations...
...
... It's multistage majick!
11 years ago
Florian Meißner
69e6381736
Implement Co-op animations via Python
11 years ago
Florian Meißner
14392883a7
Add customizable finish message to avatar seeking
11 years ago
Florian Meißner
b6a371f49f
Add animation loop functions to Python
11 years ago
Adam Johnson
625319f99d
NT6-proof PhysX_Setup.exe launch
...
CreateProcessW on PhysX_Setup.exe will probably cause
ERROR_ELEVATION_REQUIRED. That is NOT my idea of a successful install.
11 years ago
Adam Johnson
5021438dd7
SkipLoginDialog -- forgot to implement this one
11 years ago
Adam Johnson
d7aa9ac17c
Handle smart pointers...
...
This fixes a few HANDLE leaks. They aren't a big deal in the grand scheme
of things, but it's good to be correct.
11 years ago
Adam Johnson
7c6cb34cd1
Don't eat calls in hsAssert.
...
ShellExecuteW != NOOP. Let's get it right.
11 years ago
Florian Meißner
b0bffa0b5d
Allow setting the G values for the servers in the server.ini
...
Setting these values is optional. If they are not set in the ini file, default values will be used. This way, we don't have to change all our ini files.
11 years ago