Skip to content

Commit

Permalink
Fix arrow alignment + capitalization in NinePatchTexture's docstring (#…
Browse files Browse the repository at this point in the history
…1696)

* Touch up non-init methods on NinePatchTexture

* Initial rework of NinePatchTexture top docstring + diagram

* Fix flake8 errors in NinePatchTexture

* Rephrase top-level NinePatchTexture docstring for clarity & brevity

* Add warning about unchecked sizes in NinePatchTexture.draw_sized

* Further refinement of NinePatchTexture top-level docstring

* line length fix in warning for draw_sized

* Remove misleading comment from source + fix docstrings

* Fix capitalization + arrow alignment
  • Loading branch information
pushfoo committed Apr 12, 2023
1 parent 18fcf1f commit e76f345
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions arcade/gui/nine_patch.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class NinePatchTexture:
* Numbered regions with arrows (``<--->``) stretch along the
direction(s) of any arrows present
* bars (``|---|``) mark the distances specified by the border
* Bars (``|---|``) mark the distances specified by the border
parameters (``left``, etc)
.. code-block::
Expand All @@ -32,12 +32,12 @@ class NinePatchTexture:
| | <-------------> | | |
+------+-----------------+------+ ---
| (4) | (5) ^ | (6) |
| ^ | | | ^ |
| | | | | | |
| | | <------+------> | | |
| | | | | | |
| | | | | | |
| v | v | v |
| ^ | | | ^ |
| | | | | | |
| | | <------+------> | | |
| | | | | | |
| | | | | | |
| v | v | v |
+------+-----------------+------+ ---
| (7) | (8) | (9) | |
| | <-------------> | | |
Expand Down

0 comments on commit e76f345

Please sign in to comment.