class_editorspinslider.rst 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. :github_url: hide
  2. .. DO NOT EDIT THIS FILE!!!
  3. .. Generated automatically from Godot engine sources.
  4. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/master/doc/classes/EditorSpinSlider.xml.
  6. .. _class_EditorSpinSlider:
  7. EditorSpinSlider
  8. ================
  9. **Inherits:** :ref:`Range<class_Range>` **<** :ref:`Control<class_Control>` **<** :ref:`CanvasItem<class_CanvasItem>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
  10. Godot editor's control for editing numeric values.
  11. Description
  12. -----------
  13. This :ref:`Control<class_Control>` node is used in the editor's Inspector dock to allow editing of numeric values. Can be used with :ref:`EditorInspectorPlugin<class_EditorInspectorPlugin>` to recreate the same behavior.
  14. Properties
  15. ----------
  16. +-----------------------------+-----------------------------------------------------------------+-----------+
  17. | :ref:`bool<class_bool>` | :ref:`flat<class_EditorSpinSlider_property_flat>` | ``false`` |
  18. +-----------------------------+-----------------------------------------------------------------+-----------+
  19. | :ref:`bool<class_bool>` | :ref:`hide_slider<class_EditorSpinSlider_property_hide_slider>` | ``false`` |
  20. +-----------------------------+-----------------------------------------------------------------+-----------+
  21. | :ref:`String<class_String>` | :ref:`label<class_EditorSpinSlider_property_label>` | ``""`` |
  22. +-----------------------------+-----------------------------------------------------------------+-----------+
  23. | :ref:`bool<class_bool>` | :ref:`read_only<class_EditorSpinSlider_property_read_only>` | ``false`` |
  24. +-----------------------------+-----------------------------------------------------------------+-----------+
  25. | :ref:`String<class_String>` | :ref:`suffix<class_EditorSpinSlider_property_suffix>` | ``""`` |
  26. +-----------------------------+-----------------------------------------------------------------+-----------+
  27. Property Descriptions
  28. ---------------------
  29. .. _class_EditorSpinSlider_property_flat:
  30. - :ref:`bool<class_bool>` **flat**
  31. +-----------+-----------------+
  32. | *Default* | ``false`` |
  33. +-----------+-----------------+
  34. | *Setter* | set_flat(value) |
  35. +-----------+-----------------+
  36. | *Getter* | is_flat() |
  37. +-----------+-----------------+
  38. ----
  39. .. _class_EditorSpinSlider_property_hide_slider:
  40. - :ref:`bool<class_bool>` **hide_slider**
  41. +-----------+------------------------+
  42. | *Default* | ``false`` |
  43. +-----------+------------------------+
  44. | *Setter* | set_hide_slider(value) |
  45. +-----------+------------------------+
  46. | *Getter* | is_hiding_slider() |
  47. +-----------+------------------------+
  48. If ``true``, the slider is hidden.
  49. ----
  50. .. _class_EditorSpinSlider_property_label:
  51. - :ref:`String<class_String>` **label**
  52. +-----------+------------------+
  53. | *Default* | ``""`` |
  54. +-----------+------------------+
  55. | *Setter* | set_label(value) |
  56. +-----------+------------------+
  57. | *Getter* | get_label() |
  58. +-----------+------------------+
  59. ----
  60. .. _class_EditorSpinSlider_property_read_only:
  61. - :ref:`bool<class_bool>` **read_only**
  62. +-----------+----------------------+
  63. | *Default* | ``false`` |
  64. +-----------+----------------------+
  65. | *Setter* | set_read_only(value) |
  66. +-----------+----------------------+
  67. | *Getter* | is_read_only() |
  68. +-----------+----------------------+
  69. ----
  70. .. _class_EditorSpinSlider_property_suffix:
  71. - :ref:`String<class_String>` **suffix**
  72. +-----------+-------------------+
  73. | *Default* | ``""`` |
  74. +-----------+-------------------+
  75. | *Setter* | set_suffix(value) |
  76. +-----------+-------------------+
  77. | *Getter* | get_suffix() |
  78. +-----------+-------------------+
  79. The suffix to display after the value (in a faded color). This should generally be a plural word. You may have to use an abbreviation if the suffix is too long to be displayed.
  80. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  81. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  82. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  83. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  84. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  85. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`