From e7a6d735e3fe9464ab2081cb89c1a8d2b059ce71 Mon Sep 17 00:00:00 2001 From: rdb Date: Sun, 27 Dec 2020 10:48:12 +0100 Subject: [PATCH] dgui: Add "versionadded" to docstrings of newly added methods --- direct/src/gui/OnscreenText.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/direct/src/gui/OnscreenText.py b/direct/src/gui/OnscreenText.py index 13a284622f..b6d3932943 100644 --- a/direct/src/gui/OnscreenText.py +++ b/direct/src/gui/OnscreenText.py @@ -314,6 +314,9 @@ class OnscreenText(NodePath): text = property(getText, setText) def setTextX(self, x): + """ + .. versionadded:: 1.10.8 + """ self.setTextPos(x, self.__pos[1]) def setX(self, x): @@ -324,6 +327,9 @@ class OnscreenText(NodePath): self.setTextPos(x, self.__pos[1]) def setTextY(self, y): + """ + .. versionadded:: 1.10.8 + """ self.setTextPos(self.__pos[0], y) def setY(self, y): @@ -336,6 +342,8 @@ class OnscreenText(NodePath): def setTextPos(self, x, y=None): """ Position the onscreen text in 2d screen space + + .. versionadded:: 1.10.8 """ if y is None: self.__pos = tuple(x) @@ -344,6 +352,9 @@ class OnscreenText(NodePath): self.updateTransformMat() def getTextPos(self): + """ + .. versionadded:: 1.10.8 + """ return self.__pos text_pos = property(getTextPos, setTextPos) @@ -370,6 +381,8 @@ class OnscreenText(NodePath): def setTextR(self, r): """setTextR(self, float) Rotates the text around the screen's normal. + + .. versionadded:: 1.10.8 """ self.__roll = -r self.updateTransformMat() @@ -402,6 +415,8 @@ class OnscreenText(NodePath): """setTextScale(self, float, float) Scale the text in 2d space. You may specify either a single uniform scale, or two scales, or a tuple of two scales. + + .. versionadded:: 1.10.8 """ if sy is None: @@ -414,6 +429,9 @@ class OnscreenText(NodePath): self.updateTransformMat() def getTextScale(self): + """ + .. versionadded:: 1.10.8 + """ return self.__scale text_scale = property(getTextScale, setTextScale)