Browse Source

dgui: Add "versionadded" to docstrings of newly added methods

rdb 5 years ago
parent
commit
e7a6d735e3
1 changed files with 18 additions and 0 deletions
  1. 18 0
      direct/src/gui/OnscreenText.py

+ 18 - 0
direct/src/gui/OnscreenText.py

@@ -314,6 +314,9 @@ class OnscreenText(NodePath):
     text = property(getText, setText)
     text = property(getText, setText)
 
 
     def setTextX(self, x):
     def setTextX(self, x):
+        """
+        .. versionadded:: 1.10.8
+        """
         self.setTextPos(x, self.__pos[1])
         self.setTextPos(x, self.__pos[1])
 
 
     def setX(self, x):
     def setX(self, x):
@@ -324,6 +327,9 @@ class OnscreenText(NodePath):
         self.setTextPos(x, self.__pos[1])
         self.setTextPos(x, self.__pos[1])
 
 
     def setTextY(self, y):
     def setTextY(self, y):
+        """
+        .. versionadded:: 1.10.8
+        """
         self.setTextPos(self.__pos[0], y)
         self.setTextPos(self.__pos[0], y)
 
 
     def setY(self, y):
     def setY(self, y):
@@ -336,6 +342,8 @@ class OnscreenText(NodePath):
     def setTextPos(self, x, y=None):
     def setTextPos(self, x, y=None):
         """
         """
         Position the onscreen text in 2d screen space
         Position the onscreen text in 2d screen space
+
+        .. versionadded:: 1.10.8
         """
         """
         if y is None:
         if y is None:
             self.__pos = tuple(x)
             self.__pos = tuple(x)
@@ -344,6 +352,9 @@ class OnscreenText(NodePath):
         self.updateTransformMat()
         self.updateTransformMat()
 
 
     def getTextPos(self):
     def getTextPos(self):
+        """
+        .. versionadded:: 1.10.8
+        """
         return self.__pos
         return self.__pos
 
 
     text_pos = property(getTextPos, setTextPos)
     text_pos = property(getTextPos, setTextPos)
@@ -370,6 +381,8 @@ class OnscreenText(NodePath):
     def setTextR(self, r):
     def setTextR(self, r):
         """setTextR(self, float)
         """setTextR(self, float)
         Rotates the text around the screen's normal.
         Rotates the text around the screen's normal.
+
+        .. versionadded:: 1.10.8
         """
         """
         self.__roll = -r
         self.__roll = -r
         self.updateTransformMat()
         self.updateTransformMat()
@@ -402,6 +415,8 @@ class OnscreenText(NodePath):
         """setTextScale(self, float, float)
         """setTextScale(self, float, float)
         Scale the text in 2d space.  You may specify either a single
         Scale the text in 2d space.  You may specify either a single
         uniform scale, or two scales, or a tuple of two scales.
         uniform scale, or two scales, or a tuple of two scales.
+
+        .. versionadded:: 1.10.8
         """
         """
 
 
         if sy is None:
         if sy is None:
@@ -414,6 +429,9 @@ class OnscreenText(NodePath):
         self.updateTransformMat()
         self.updateTransformMat()
 
 
     def getTextScale(self):
     def getTextScale(self):
+        """
+        .. versionadded:: 1.10.8
+        """
         return self.__scale
         return self.__scale
 
 
     text_scale = property(getTextScale, setTextScale)
     text_scale = property(getTextScale, setTextScale)