iworld2d模块——2D画布管理. More...
Public Member Functions | |
def | create_canvas_ui |
创建一个canvas_ui对象. | |
def | get_canvas_ui |
根据canvas_ui的标识得到canvas_ui对象. | |
def | destroy_canvas_ui |
根据canvas_ui的标识销毁canvas_ui对象. |
iworld2d模块——2D画布管理.
提示: 不需自己创建。通过iworld2d.canvases来使用.
def create_canvas_ui | ( | self, | |
layer, | |||
depth = 0 |
|||
) |
创建一个canvas_ui对象.
layer | : int 所创建的2D场景的层数. |
depth | : int 指定movie所在的层次,数字大的在上面. |
: | int canvas_ui的标识. |
def get_canvas_ui | ( | self, | |
ui_id | |||
) |
根据canvas_ui的标识得到canvas_ui对象.
ui_id | : int canvas_ui的标识. |
: | canvas_ui对象. |
def destroy_canvas_ui | ( | self, | |
ui_id | |||
) |
根据canvas_ui的标识销毁canvas_ui对象.
ui_id | : int canvas_ui的标识. |