class_visualscriptcomment.rst 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. :github_url: hide
  2. .. Generated automatically by doc/tools/make_rst.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. A Visual Script node used to annotate the script.
  10. Description
  11. -----------
  12. A Visual Script node used to display annotations in the script, so that code may be documented.
  13. Comment nodes can be resized so they encompass a group of nodes.
  14. Properties
  15. ----------
  16. +-------------------------------+--------------------------------------------------------------------+-------------------------+
  17. | :ref:`String<class_String>` | :ref:`description<class_VisualScriptComment_property_description>` | ``""`` |
  18. +-------------------------------+--------------------------------------------------------------------+-------------------------+
  19. | :ref:`Vector2<class_Vector2>` | :ref:`size<class_VisualScriptComment_property_size>` | ``Vector2( 150, 150 )`` |
  20. +-------------------------------+--------------------------------------------------------------------+-------------------------+
  21. | :ref:`String<class_String>` | :ref:`title<class_VisualScriptComment_property_title>` | ``"Comment"`` |
  22. +-------------------------------+--------------------------------------------------------------------+-------------------------+
  23. Property Descriptions
  24. ---------------------
  25. .. _class_VisualScriptComment_property_description:
  26. - :ref:`String<class_String>` **description**
  27. +-----------+------------------------+
  28. | *Default* | ``""`` |
  29. +-----------+------------------------+
  30. | *Setter* | set_description(value) |
  31. +-----------+------------------------+
  32. | *Getter* | get_description() |
  33. +-----------+------------------------+
  34. The text inside the comment node.
  35. ----
  36. .. _class_VisualScriptComment_property_size:
  37. - :ref:`Vector2<class_Vector2>` **size**
  38. +-----------+-------------------------+
  39. | *Default* | ``Vector2( 150, 150 )`` |
  40. +-----------+-------------------------+
  41. | *Setter* | set_size(value) |
  42. +-----------+-------------------------+
  43. | *Getter* | get_size() |
  44. +-----------+-------------------------+
  45. The comment node's size (in pixels).
  46. ----
  47. .. _class_VisualScriptComment_property_title:
  48. - :ref:`String<class_String>` **title**
  49. +-----------+------------------+
  50. | *Default* | ``"Comment"`` |
  51. +-----------+------------------+
  52. | *Setter* | set_title(value) |
  53. +-----------+------------------+
  54. | *Getter* | get_title() |
  55. +-----------+------------------+
  56. The comment node's title.
  57. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  58. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  59. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`