From 6dcdac64a25b2ee7e1519de1fb15af9d45f623aa Mon Sep 17 00:00:00 2001 From: Dan Lawrence Date: Mon, 8 Apr 2024 17:30:32 +0100 Subject: [PATCH] Add starting_height to UIImage fixes #491 --- pygame_gui/elements/ui_image.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pygame_gui/elements/ui_image.py b/pygame_gui/elements/ui_image.py index f6759df3..980f8d38 100644 --- a/pygame_gui/elements/ui_image.py +++ b/pygame_gui/elements/ui_image.py @@ -35,10 +35,12 @@ def __init__(self, parent_element: Optional[UIElement] = None, object_id: Optional[Union[ObjectID, str]] = None, anchors: Optional[Dict[str, Union[str, UIElement]]] = None, - visible: int = 1): + visible: int = 1, + *, + starting_height: int = 1,): super().__init__(relative_rect, manager, container, - starting_height=1, + starting_height=starting_height, layer_thickness=1, anchors=anchors, visible=visible,