mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-29 08:15:18 -04:00
dgui: Add "versionadded" to docstrings of newly added methods
This commit is contained in:
parent
2b0a6b995a
commit
e7a6d735e3
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user