Button

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.

Game Scenes:All
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.

Game Scenes:All
krpc_error_t krpc_UI_Button_Text(krpc_connection_t connection, krpc_UI_Text_t * result)

The text for the button.

Game Scenes:All
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.

Game Scenes:All

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.

Game Scenes:All