You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,9 +13,12 @@ This project adheres to [Semantic Versioning](https://semver.org/) since version
13
13
14
14
### Deprecated
15
15
16
-
- Using `Console.print` without keywords for only the `x`, `y`, and `text` parameters has been deprecated.
16
+
- In general the `fg`, `bg`, and `bg_blend` keywords are too hard to keep track of as positional arguments so they must be replaced with keyword arguments instead.
17
+
-`Console.print`: deprecated `string`, `fg`, `bg`, and `bg_blend` being given as positional arguments.
17
18
The `string` parameter has been renamed to `text`.
18
19
-`Console.print_box` has been replaced by `Console.print`.
20
+
-`Console.draw_frame`: deprecated `clear`, `fg`, `bg`, and `bg_blend` being given as positional arguments.
21
+
-`Console.draw_rect`: deprecated `fg`, `bg`, and `bg_blend` being given as positional arguments.
"Switch all parameters to keywords such as 'console.print(x=..., y=..., text=..., width=..., height=..., fg=..., bg=..., bg_blend=..., alignment=...)'"
981
-
"\n'string' keyword should be renamed to `text`"
982
-
)
983
980
defprint(
984
981
self,
985
982
x: int,
986
983
y: int,
987
984
text: str,
985
+
*,
986
+
width: int|None=None,
987
+
height: int|None=None,
988
988
fg: tuple[int, int, int] |None=None,
989
989
bg: tuple[int, int, int] |None=None,
990
990
bg_blend: int=tcod.constants.BKGND_SET,
991
991
alignment: int=tcod.constants.LEFT,
992
-
*,
993
-
string: str="",
994
992
) ->int: ...
995
993
996
994
@overload
995
+
@deprecated(
996
+
"Replace text, fg, bg, bg_blend, and alignment with keyword arguments."
0 commit comments