Releases: libtcod/python-tcod
Releases · libtcod/python-tcod
18.0.0
Changed
Console.print
now acceptsheight
andwidth
keywords and has renamedstring
totext
.- Text printed with
Console.print
using right-alignment has been shifted to the left by 1-tile.
Deprecated
- In general the
fg
,bg
, andbg_blend
keywords are too hard to keep track of as positional arguments so they must be replaced with keyword arguments instead. Console.print
: deprecatedstring
,fg
,bg
, andbg_blend
being given as positional arguments.
Thestring
parameter has been renamed totext
.Console.print_box
has been replaced byConsole.print
.Console.draw_frame
: deprecatedclear
,fg
,bg
, andbg_blend
being given as positional arguments.Console.draw_rect
: deprecatedfg
,bg
, andbg_blend
being given as positional arguments.- The
EventDispatch
class is now deprecated.
This class was made before Python supported protocols and structural pattern matching,
now the class serves little purpose and its usage can create a minor technical burden.
17.1.0
Added
- SDL renderer primitive drawing methods now support sequences of tuples.
Fixed
tcod.sdl.Renderer.draw_lines
type hint was too narrow.- Fixed crash in
tcod.sdl.Renderer.geometry
.
17.0.0
Changed
EventDispatch
's on event methods are now defined as positional parameters, so renaming theevent
parameter is now valid in subclasses.
Deprecated
- Keyboard bitmask modifiers
tcod.event.KMOD_*
have been replaced bytcod.event.Modifier
.
Fixed
- Suppressed internal
mouse.tile_motion
deprecation warning. - Fixed SDL renderer primitive drawing methods. #159
16.2.3
Fixed
- Fixed access violation when events are polled before SDL is initialized.
- Fixed access violation when libtcod images fail to load.
- Verify input files exist when calling
libtcodpy.parser_run
,libtcodpy.namegen_parse
,tcod.image.load
.
16.2.2
Fixed
- Ignore the locale when encoding file paths outside of Windows.
- Fix performance when calling joystick functions.
16.2.1
Fixed
- Fixed errors loading files where their paths are non-ASCII and the C locale is not UTF-8.
16.2.0
Changed
- Renamed
gauss
methods to fix typos.
16.1.1
16.1.0
Added
- Added the enums
tcod.event.MouseButton
andtcod.event.MouseButtonMask
.
Changed
- Using
libtcod 1.24.0
.
Deprecated
- Mouse button and mask constants have been replaced by enums.
Fixed
WindowResized
literal annotations were in the wrong case.
16.0.3
Changed
- Enabled logging for libtcod and SDL.
Deprecated
- Deprecated using
tcod
as an implicit alias forlibtcodpy
.
You should usefrom tcod import libtcodpy
if you want to access this module. - Deprecated constants being held directly in
tcod
, get these fromtcod.libtcodpy
instead. - Deprecated
tcod.Console
which should be accessed fromtcod.console.Console
instead.