Scene UI
The Scene UI is used in conjunction with the UI, which can be placed on a scene or unit pendant for display.
Functions
get_lua_scene_ui_from_py
Get the UI instance of the lua layer from the UI instance of the py layer.
Parameters
Variable | Type | Description |
---|---|---|
py_scene_ui | string |
Return
Type | Description |
---|---|
table | Return the lua layer skill instance after initialization in the lua layer. |
scene_ui.get_lua_scene_ui_from_py(player, py_scene_ui)
create_scene_ui_at_player_unit_socket
Create a scene interface to a player unit mount point.
Parameters
Variable | Type | Description |
---|---|---|
scene_ui_type | number | Scene UI type. |
player | player | Player. |
unit | unit | Unit. |
socket_name | string | Name of the hookup point. |
distance | number | Visible distance. |
Return
Type | Description |
---|---|
scene_ui | Scene UI. |
scene_ui.create_scene_ui_at_player_unit_socket(scene_ui_type, player, unit, socket_name, distance)
remove_scene_ui
Remove the scene interface.
scene_ui:remove_scene_ui()
get_widget_in_scene_ui
Get the controls in the scene UI
Return
Type | Description |
---|---|
ui |
scene_ui:get_widget_in_scene_ui(str)
set_scene_ui_visible_distance
Set the visible distance of the scene interface to the player.
Parameters
Variable | Type | Description |
---|---|---|
player | player | Player. |
dis | number | Visible distance. |
scene_ui:set_scene_ui_visible_distance(player, dis)