Button¶
-
type krpc_UI_Button_t¶
A text label. See
krpc_UI_Panel_AddButton()
.-
krpc_error_t krpc_UI_Button_RectTransform(krpc_connection_t connection, krpc_UI_RectTransform_t *result)¶
The rect transform for the text.
-
krpc_error_t krpc_UI_Button_Visible(krpc_connection_t connection, bool *result)¶
-
void krpc_UI_Button_set_Visible(bool value)¶
Whether the UI object is visible.
-
krpc_error_t krpc_UI_Button_Text(krpc_connection_t connection, krpc_UI_Text_t *result)¶
The text for the button.
-
krpc_error_t krpc_UI_Button_Clicked(krpc_connection_t connection, bool *result)¶
-
void krpc_UI_Button_set_Clicked(bool value)¶
Whether the button has been clicked.
Note
This property is set to true when the user clicks the button. A client script should reset the property to false in order to detect subsequent button presses.
-
krpc_error_t krpc_UI_Button_Remove(krpc_connection_t connection)¶
Remove the UI object.
-
krpc_error_t krpc_UI_Button_RectTransform(krpc_connection_t connection, krpc_UI_RectTransform_t *result)¶