From d89eb914e286a5e1c107846c023afc38bc566f15 Mon Sep 17 00:00:00 2001 From: Benjamin Kirkbride Date: Mon, 1 Jun 2020 20:54:21 -0400 Subject: [PATCH] rf(tiled_object.Text): better organize attributes --- pytiled_parser/tiled_object.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/pytiled_parser/tiled_object.py b/pytiled_parser/tiled_object.py index 324791d..6d7bb88 100644 --- a/pytiled_parser/tiled_object.py +++ b/pytiled_parser/tiled_object.py @@ -123,17 +123,20 @@ class Text(TiledObject): """ text: str - font_family: str = "sans-serif" - font_size: int = 16 - wrap: bool = False color: Color = "#000000" + + font_family: str = "sans-serif" + font_size: float = 16 + bold: bool = False italic: bool = False - underline: bool = False - strike_out: bool = False kerning: bool = True + strike_out: bool = False + underline: bool = False + horizontal_align: str = "left" vertical_align: str = "top" + wrap: bool = False @attr.s(auto_attribs=True, kw_only=True)