class_visualscriptcomment.rst 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. :github_url: hide
  2. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  3. .. DO NOT EDIT THIS FILE, but the VisualScriptComment.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_VisualScriptComment:
  6. VisualScriptComment
  7. ===================
  8. **Inherits:** :ref:`VisualScriptNode<class_VisualScriptNode>` **<** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
  9. **Category:** Core
  10. Brief Description
  11. -----------------
  12. A Visual Script node used to annotate the script.
  13. Properties
  14. ----------
  15. +-------------------------------+--------------------------------------------------------------------+---------------------+
  16. | :ref:`String<class_String>` | :ref:`description<class_VisualScriptComment_property_description>` | "" |
  17. +-------------------------------+--------------------------------------------------------------------+---------------------+
  18. | :ref:`Vector2<class_Vector2>` | :ref:`size<class_VisualScriptComment_property_size>` | Vector2( 150, 150 ) |
  19. +-------------------------------+--------------------------------------------------------------------+---------------------+
  20. | :ref:`String<class_String>` | :ref:`title<class_VisualScriptComment_property_title>` | "Comment" |
  21. +-------------------------------+--------------------------------------------------------------------+---------------------+
  22. Description
  23. -----------
  24. A Visual Script node used to display annotations in the script, so that code may be documented.
  25. Comment nodes can be resized so they encompass a group of nodes.
  26. Property Descriptions
  27. ---------------------
  28. .. _class_VisualScriptComment_property_description:
  29. - :ref:`String<class_String>` **description**
  30. +-----------+------------------------+
  31. | *Default* | "" |
  32. +-----------+------------------------+
  33. | *Setter* | set_description(value) |
  34. +-----------+------------------------+
  35. | *Getter* | get_description() |
  36. +-----------+------------------------+
  37. The text inside the comment node.
  38. .. _class_VisualScriptComment_property_size:
  39. - :ref:`Vector2<class_Vector2>` **size**
  40. +-----------+---------------------+
  41. | *Default* | Vector2( 150, 150 ) |
  42. +-----------+---------------------+
  43. | *Setter* | set_size(value) |
  44. +-----------+---------------------+
  45. | *Getter* | get_size() |
  46. +-----------+---------------------+
  47. The comment node's size (in pixels).
  48. .. _class_VisualScriptComment_property_title:
  49. - :ref:`String<class_String>` **title**
  50. +-----------+------------------+
  51. | *Default* | "Comment" |
  52. +-----------+------------------+
  53. | *Setter* | set_title(value) |
  54. +-----------+------------------+
  55. | *Getter* | get_title() |
  56. +-----------+------------------+
  57. The comment node's title.