方法介绍

方法名称:隐藏并销毁HUD

语法:hideHUD(id)

参数说明:

id:整:数型,用于标示HUD

返回值:无

注意:调用此方法后不能再用当前id句柄继续showHUD,如果需要调用showHUD需要重新createHUD

方法例子

local id = createHUD()

showHUD(id,"HelloWorld!",12,"0xffff0000","0xffffffff",0,100,0,228,32) --显示HUD内容

sleep(2000)

showHUD(id,"HelloWorld!",12,"0xffff0000","msgbox_click.png",0,100,0,228,32) --变更显示的HUD内容

sleep(5000)

hideHUD(id) --隐藏HUD

sleep(3000)

id = createHUD() --创建一个HUD

showHUD(id,"hello",12,"0xffff0000","test.bmp",0,100,0,200,200)

sleep(5000)

hideHUD(id) --隐藏HUD

sleep(3000)

Copyright © 湖南合鑫网络科技有限公司 2020 all right reserved,powered by Gitbook该文件修订时间: 2020-11-12 16:53:02

results matching ""

    No results matching ""