1
0
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-19 19:59:09 +00:00
Commit Graph

164 Commits

Author SHA1 Message Date
a9cb4723d0 Fix KI daylight saving time calculation.
The previous implementation had the following bugs:
- DST was truncated to end of October
- DST start was off by one week in years where March 1st is a Monday
- DST start was off by one second (1:59:59 -> 2:00:00 -> 3:00:01 instead of the correct 1:59:59 -> 3:00:00 -> 3:00:01)

Tested against tzdata 2009g.
2012-03-31 20:13:58 +02:00
59b04b546f Fix plUnifiedTime::SetGMTime
The default value of the "dst" argument must be 0, because -1 leads to incorrect results when the given time falls into local DST. However, a "dst" argument makes no sense on a method that deals with GMT anyway, so remove it entirely.
2012-03-31 20:06:55 +02:00
423e0c2142 Use George Bush style (2007) DST begin/end dates 2012-03-28 16:36:37 -04:00
fdc8e28c2f Allow clickables to function while sitting or AFK.
Less special casing FTW!
2012-03-09 23:30:31 -05:00
e4458717c9 Fix possible WinApi misuse 2012-03-05 11:06:05 +01:00
a99ed37f23 Missing null checks and small style fixes 2012-03-04 18:55:44 +01:00
9bd019fbf3 plClipboard 2012-03-04 11:57:45 +01:00
1cac4f85da Fix a potential crash in pyVaultImageNode.
Fixes a crash which can occur when attempting to fetch
an unsupported image type.
2012-02-09 23:47:22 -08:00
cbea546c61 Christian's fix inability to go to a higher page in a book than the next after what has already been displayed.
Fixes books on the Relto bookshelf not remembering their last open page beyond the second.
2012-02-07 17:14:08 -08:00
7c058fa898 Merged in cwalther/cwe (pull request #3) 2012-01-27 20:02:49 -07:00
c0b428b342 Fix avatar clothing bounds test.
The bounds type test was performed on stale bounding data from the previous
frame resulting in the avatar being drawn without textures for a frame after
switching from 1st to 3rd person camera.
2012-01-28 13:08:16 +11:00
b343e389ab 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.
2012-01-25 22:16:19 +01:00
487f63f60b Fix mouse recentering.
Existing fix didn't apply until after SecurePreloader completed.
This disables the mouse recentering earlier.
2012-01-20 05:18:04 -08:00
1c8c0f4e0e Christian Walther's Python SDL fixes - for real this time. 2012-01-19 09:20:38 -08:00
a35a942ab2 Added Donate button to the login screen
Added fixes from Christian Walther for the Python SDL tuples
Added plLocalizationEditor source and project
2012-01-18 13:46:47 -08:00
196657fa60 Added Donate button to the login screen
Added fixes from Christian Walther for the Python SDL tuples
Added plLocalizationEditor source and project
2012-01-18 13:46:47 -08:00
dd55856ea2 Fix inability to go to a higher page in a book than the next after what has already been displayed.
Fixes books on the Relto bookshelf not remembering their last open page beyond the second.
2012-01-15 15:54:16 +01:00
a7271982d5 Show notification when missing required resource data file. 2012-01-04 23:20:49 -08:00
1d23f50bf6 Merge open source re-licensing into added files
(from git 4f01583)
2012-04-09 23:35:26 +02:00
f67e52eeb2 Change indentation to tabs and line endings to CRLF on the added files, to match the rest of the code. 2012-04-09 23:21:13 +02:00
0b57fd1339 Include a pre-built resource.dat
since the prerequisites for building it can be a bit of a hassle to install, and it should rarely change.
2012-04-09 23:10:40 +02:00
e02141055a 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.
2011-12-30 15:10:47 +01:00
1f0277e3e0 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.
2014-04-03 22:17:45 +02:00
db5e451622 Fix #303 2013-07-04 18:14:58 -04:00
970b8e3af4 Fix a potential crash when resizing SDL tuples.
_PyTuple_Resize may destroy the original tuple and return a new one through the pointer argument. When it does that and we don?t put the new one back into the map, we end up with a stale pointer to a destroyed object in the map, which is likely to blow up one way or another next time it?s accessed.

Untested because, as far as I can see, this code isn?t actually used currently. All uses of this method deal with fixed-size SDL variables. Resizable variables are not used at all in age SDL, only in non-age SDL (animation, avatar, clothing etc.), and I?m not even sure if those are even accessible using this Python API.
2011-11-27 10:58:25 +01:00
38747f3f1b Don?t modify tuples that others may already have references to.
Fixes egg room private chat channels and entering Teledahn buckets with Python 2.7. These and other uses of ptSDL.setIndex() only worked by chance with Python 2.3 because the tuples happened to have reference counts of 1.
2011-11-27 10:56:49 +01:00
16a6b8a28e Open source re-licensing 2011-10-20 15:20:01 -07:00
f4b3a43026 Fix improperly calculated window size in initial Windowed mode. 2011-07-20 23:07:46 -07:00
1530af77f7 Improve detail rendition (in particular of thin lines) on the cursors
by rendering them at higher resolution and then running them through a
gamma-aware down-scaling algorithm.
2011-07-20 16:15:24 +02:00
487d7b4923 Higher-quality cursors with a shadow to make them visible on light backgrounds.
Same look as in 760606d except for the linking book, which got a slight
curvature on the pages (inspired by Deledrius' one, 99bda8c).

The SVG is hand-tweaked to work around some differences in rendering between
rsvg and Inkscape. I hope editing it in Inkscape again won't break the tweaks,
check the diff closely if you do!

Effects (blurred shadows) appear to be clipped to the SVG viewport by rsvg,
which is why drawing the whole SVG shifted for the book cursors no longer
works and we shift individual layers inside the SVG instead.
2011-07-20 13:48:08 +02:00
9553ecd05b Ignore empty resource items in plClientResMgr list on destruction. 2011-07-21 11:53:18 -07:00
3c552912fa Removed ClipCursor which prevented cursor from leaving client window.
Disabled cursor being re-centered during progress screen.
2011-07-10 19:10:51 -07:00
603bc51cfd Cope with unknown resource name extensions.
(E.g. a mistakenly included Thumbs.db)
2011-06-29 22:23:55 +02:00
ae5f410eee Changed font for UPDATING text image to match original. 2011-07-02 11:37:40 -07:00
f892871a33 Fix rotation to match original clockwise direction.
Cyan's resources were loaded into the array in reverse order,
requiring the images to appear count-clockwise.  This is no
longer the case, as the array is now built in frame order.
2011-06-29 15:17:28 -07:00
ff9aa4ac84 Add automatic creation of external plClient resources. 2011-06-24 18:04:47 -07:00
40611119c0 Normalize cursor resource names. 2011-06-16 23:51:24 -07:00
d0e842aec2 Cleanup of additional unnecessary resources and dependencies. 2011-06-16 23:31:20 -07:00
d751f371b5 Remove embedded-resource code. 2011-06-16 23:13:57 -07:00
5da91faed0 Add support for external resource Linking and Update text. 2011-06-16 23:04:16 -07:00
043adb2d7c Remove unnecessary resources. 2011-06-16 22:23:34 -07:00
508e431a99 Refactor plPlates CreateResource function names.
Add support for external resource Cursors.
Add support for external resource Progress Linking Book.
Add support for external resource Voice Chat indicators.
2011-06-16 22:16:50 -07:00
197e24a746 Add functions to load a specified resource from the plClientResMgr onto a plate. 2011-06-16 22:05:49 -07:00
f3344fc544 Add new plClientResMgr for graphic resources external to client executable. 2011-06-01 12:54:30 -07:00
6538d78d9f Fix for plPNG::IRead improperly handling 24-bit RGB and non-transparent paletted images. 2011-06-25 20:22:53 -07:00
7998b3bcc4 Fix for plPNG::IRead not reading final end block of image. 2011-05-30 16:44:46 -07:00
da4003b7fc Add Python function and glue for PNG saving. 2011-05-11 17:02:14 -07:00
7af3a02c66 AStyle formatting fixes. 2011-05-11 00:17:55 -07:00
7523f6fa1f Add PNG write support to plPNG. 2011-05-10 23:47:27 -07:00
c3657d20a4 Fix incorrect JPEG file IO. 2011-05-10 02:56:28 -07:00