gg["Sx界面"]=true gg.toast("点击屏幕'Sx'打开列表") while true do if gg["Sx界面"]==true then gg.showUiButton() if gg.isClickedUiButton() then --click gg.toast('点击了') end end if not gg["Sx界面"] then if gg.isVisible(true) then gg.PD = nil gg.setVisible(false) end if not gg.PD then gg.toast('pd') end end end