@@ -112,10 +112,10 @@ button:is_enabled()
112112```
113113
114114Get button enabled state.
115- By default all Buttons is enabled on creating.
115+ By default all Buttons are enabled on creating.
116116
117117- ** Returns:**
118- - `is_enabled` *(boolean)*: True, if button is enabled now, False overwise
118+ - `is_enabled` *(boolean)*: True, if button is enabled now, False otherwise
119119
120120### set_click_zone
121121
@@ -125,7 +125,7 @@ button:set_click_zone([zone])
125125```
126126
127127Set additional button click area.
128- Useful to restrict click outside out stencil node or scrollable content.
128+ Useful to restrict click outside of stencil node or scrollable content.
129129If button node placed inside stencil node, it will be automatically set to this stencil node.
130130
131131- ** Parameters:**
@@ -168,11 +168,11 @@ Get current key name to trigger this button.
168168button :set_check_function ([check_function ], [failure_callback ])
169169```
170170
171- Set function for additional check for button click availability
171+ Set function for additional check for button click availability.
172172
173173- ** Parameters:**
174174 - `[check_function]` *(function|nil)*: Should return true or false. If true - button can be pressed.
175- - `[failure_callback]` *(function|nil)*: Function will be called on button click, if check function return false
175+ - `[failure_callback]` *(function|nil)*: Function will be called on button click, if check function returns false
176176
177177- ** Returns:**
178178 - `self` *(druid.button)*: The current button instance
@@ -186,7 +186,7 @@ button:set_web_user_interaction([is_web_mode])
186186
187187Set Button mode to work inside user HTML5 interaction event.
188188It's required to make protected things like copy & paste text, show mobile keyboard, etc
189- The HTML5 button's doesn't call any events except on_click event.
189+ The HTML5 button doesn't call any events except on_click event.
190190If the game is not HTML, html mode will be not enabled
191191
192192- ** Parameters:**
@@ -198,25 +198,25 @@ If the game is not HTML, html mode will be not enabled
198198
199199## Fields
200200<a name =" on_click " ></a >
201- - ** on_click** (_ event_ ): function (self, custom_args, button_instance)
201+ - ** on_click** (_ event_ ): fun (self, custom_args, button_instance)
202202
203203<a name =" on_pressed " ></a >
204- - ** on_pressed** (_ event_ ): function (self, custom_args, button_instance)
204+ - ** on_pressed** (_ event_ ): fun (self, custom_args, button_instance)
205205
206206<a name =" on_repeated_click " ></a >
207- - ** on_repeated_click** (_ event_ ): function (self, custom_args, button_instance, click_count) Repeated click callback, while holding the button
207+ - ** on_repeated_click** (_ event_ ): fun (self, custom_args, button_instance, click_count) Repeated click callback, while holding the button
208208
209209<a name =" on_long_click " ></a >
210- - ** on_long_click** (_ event_ ): function (self, custom_args, button_instance, hold_time) Callback on long button tap
210+ - ** on_long_click** (_ event_ ): fun (self, custom_args, button_instance, hold_time) Callback on long button tap
211211
212212<a name =" on_double_click " ></a >
213- - ** on_double_click** (_ event_ ): function (self, custom_args, button_instance, click_amount) Different callback, if tap button 2+ in row
213+ - ** on_double_click** (_ event_ ): fun (self, custom_args, button_instance, click_amount) Different callback, if tap button 2+ in row
214214
215215<a name =" on_hold_callback " ></a >
216- - ** on_hold_callback** (_ event_ ): function (self, custom_args, button_instance, press_time) Hold callback, before long_click trigger
216+ - ** on_hold_callback** (_ event_ ): fun (self, custom_args, button_instance, press_time) Hold callback, before long_click trigger
217217
218218<a name =" on_click_outside " ></a >
219- - ** on_click_outside** (_ event_ ): function (self, custom_args, button_instance)
219+ - ** on_click_outside** (_ event_ ): fun (self, custom_args, button_instance)
220220
221221<a name =" node " ></a >
222222- ** node** (_ node_ ): Clickable node
0 commit comments