From 8d6a1945630daffc2a1f949b0caa1fd71d9d071d Mon Sep 17 00:00:00 2001 From: Pavel 'LEdoian' Turinsky Date: Sat, 30 Mar 2024 01:34:48 +0100 Subject: [PATCH] README: interface clarifications --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ba33aae..57b7153 100644 --- a/README.md +++ b/README.md @@ -17,8 +17,8 @@ The default renderer only displays the item as the text. The API for custom rend ```python3 class Whatever(triditko.Renderer): - def render(itemname: str) -> pygame.Surface: ... + def render(itemname: str, w: int, h: int) -> pygame.Surface: ... ``` The renderer is passed as the fully qualified class name (i.e. if that code is -in file `renderers.py`, pass `renderers.Whatever`) +in file `renderers.py`, pass `renderers:Whatever`)