Skip to content

Commit

Permalink
Prepare 15.0.0 release.
Browse files Browse the repository at this point in the history
  • Loading branch information
HexDecimal committed Jan 4, 2023
1 parent d1d85a9 commit 65ec5b9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,16 @@ Changes relevant to the users of python-tcod are documented here.
This project adheres to [Semantic Versioning](https://semver.org/) since version `2.0.0`.

## [Unreleased]

## [15.0.0] - 2023-01-04
### Changed
- Updated the case of window event types to match their type annotations.
- Modified the letter case of window event types to match their type annotations.
This may cause regressions. Run Mypy to check for ``[comparison-overlap]`` errors.
- Mouse event attributes have been changed ``.pixel -> .position`` and ``.pixel_motion -> .motion``.
- `Context.convert_event` now returns copies of events with mouse coordinates converted into tile positions.

### Deprecated
- Mouse event pixel and tile attributes have been deprecated.

## [14.0.0] - 2022-12-09
### Added
Expand Down
2 changes: 1 addition & 1 deletion tcod/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ def convert_event(self, event: _Event) -> _Event:
# Tile coordinates are used in the returned event.
print(f"Tiles: {event_tile.position=}, {event_tile.motion=}")
.. versionchanged:: Unreleased
.. versionchanged:: 15.0
Now returns a new event with the coordinates converted into tiles.
"""
event_copy = copy.copy(event)
Expand Down
4 changes: 2 additions & 2 deletions tcod/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ class MouseState(Event):
.. versionadded:: 9.3
.. versionchanged:: Unreleased
.. versionchanged:: 15.0
Renamed `pixel` attribute to `position`.
"""

Expand Down Expand Up @@ -484,7 +484,7 @@ class MouseMotion(MouseState):
* tcod.event.BUTTON_X1MASK
* tcod.event.BUTTON_X2MASK
.. versionchanged:: Unreleased
.. versionchanged:: 15.0
Renamed `pixel` attribute to `position`.
Renamed `pixel_motion` attribute to `motion`.
"""
Expand Down

0 comments on commit 65ec5b9

Please sign in to comment.