--[[ 千碎Shatter RLGG整合脚本 保留你原版所有功能 + 悬浮拖拽UI ]] cs = "这里可以改成你的QQ" XGCK = -1 -- ====================== UI全局变量 ====================== local ui = { ballX = 520, ballY = 750, ballSize = 56, panelX = 120, panelY = 150, panelW = 360, panelH = 360, showPanel = false, dragBall = false, dragPanel = false, offX = 0, offY = 0, curPage = 0, -- 绑定你的功能函数 funcList = { -- 稳定区 { {name = "超级防闪", enable = false, func = b}, {name = "防检测", enable = false, func = c}, {name = "3倍移速", enable = false, func = e}, {name = "全图暗透", enable = false, func = j} }, -- 半稳区 { {name = "救赎金币", enable = false, func = f}, {name = "道具皮肤", enable = false, func = g}, {name = "人物装扮", enable = false, func = h}, {name = "解锁模式", enable = false, func = i} }, -- 火力区 { {name = "火力一套", enable = false, func = d} }, -- 设置页 { {name = "选择进程", enable = false, func = a}, {name = "退出脚本", enable = false, func = Exit} } } } local color = { main = 0xFF00C8FF, bg1 = 0xFF0F0F15, bg2 = 0xCC1C1C23, dark = 0xFF202028, white = 0xFFFFFFFF, gray = 0xFF888888 } -- ====================== 你原版所有功能函数 完整保留 ====================== function Main() SN =gg.multiChoice({ "选择进程", "超级防闪", "防检测", "火力一套", "3倍移速", "救赎金币", "道具皮肤", "人物装扮", "解锁模式", "全图暗透", "退出脚本" }, nil, "稳定") if SN == nil then else if SN[1] == true then a() end if SN[2] == true then b() end if SN[3] == true then c() end if SN[4] == true then d() end if SN[5] == true then e() end if SN[6] == true then f() end if SN[7] == true then g() end if SN[8] == true then h() end if SN[9] == true then i() end if SN[10] == true then j() end if SN[11] == true then Exit() end end XGCK = -1 end function a() gg.toast("选择进程 开启成功") end function b() gg.toast("超级防闪 开启成功") end function c() gg.toast("防检测 开启成功") end function d() gg.toast("火力一套 开启成功") end function e() gg.toast("3倍移速 开启成功") end function f() gg.toast("救赎金币 开启成功") end function g() gg.toast("道具皮肤 开启成功") end function h() gg.toast("人物装扮 开启成功") end function i() gg.toast("解锁模式 开启成功") end function j() gg.toast("全图暗透 开启成功") end function Exit() print("这里是退出脚本后的提示文字") os.exit() end -- ====================== RLGG触摸监听(悬浮UI拖拽/点击) ====================== gg.setTouchListener(function(touch) local x, y = touch.x, touch.y -- 悬浮球拖拽/点击 local bx1, by1 = ui.ballX, ui.ballY local bx2, by2 = bx1 + ui.ballSize, by1 + ui.ballSize if touch.action == touch.ACTION_DOWN then if x >= bx1 and x <= bx2 and y >= by1 and y <= by2 then ui.dragBall = true ui.offX = x - ui.ballX ui.offY = y - ui.ballY end -- 面板顶部拖拽栏 if ui.showPanel then local px1, py1 = ui.panelX, ui.panelY local px2 = px1 + ui.panelW local py2 = py1 + 42 if x >= px1 and x <= px2 and y >= py1 and y <= py2 then ui.dragPanel = true ui.offX = x - ui.panelX ui.offY = y - ui.panelY end end elseif touch.action == touch.ACTION_MOVE then if ui.dragBall then ui.ballX = x - ui.offX ui.ballY = y - ui.offY end if ui.dragPanel then ui.panelX = x - ui.offX ui.panelY = y - ui.offY end elseif touch.action == touch.ACTION_UP then -- 悬浮球点击开关面板 if ui.dragBall then ui.dragBall = false if x >= bx1 and x <= bx2 and y >= by1 and y <= by2 then ui.showPanel = not ui.showPanel end end ui.dragPanel = false if ui.showPanel then local pLeft = ui.panelX + 72 local pTop = ui.panelY + 46 local list = ui.funcList[ui.curPage+1] -- 点击开关执行对应功能 for i, v in ipairs(list) do local rY = pTop + (i-1)*36 if x > pLeft and x < ui.panelX+ui.panelW-12 and y > rY and y < rY+32 then v.enable = not v.enable if v.enable then v.func() end end end -- 侧边标签切换分页 local tabX = ui.panelX + 10 for i=0,3 do local tabY = ui.panelY + 110 + i*60 if x > tabX and x < tabX+52 and y > tabY and y < tabY+52 then ui.curPage = i end end end end end) -- ====================== RLGG绘制监听(悬浮UI渲染) ====================== gg.setDrawListener(function() -- 绘制悬浮小球 if not ui.showPanel then draw.setColor(0xFF222222) draw.setRoundRect(ui.ballX, ui.ballY, ui.ballX+ui.ballSize, ui.ballY+ui.ballSize, 28) draw.fillRoundRect() draw.setColor(color.white) draw.setTextSize(13) draw.text(ui.ballX+12, ui.ballY+18, "千碎") end -- 绘制主面板 if ui.showPanel then local pX, pY, pW, pH = ui.panelX, ui.panelY, ui.panelW, ui.panelH draw.setColor(color.bg2) draw.setRoundRect(pX, pY, pX+pW, pY+pH, 18) draw.fillRoundRect() -- 顶部拖拽栏 draw.setColor(color.dark) draw.setRoundRect(pX, pY, pX+pW, pY+42, 18, 0) draw.fillRoundRect() -- 左侧侧边栏 draw.setColor(color.bg1) draw.setRoundRect(pX, pY+42, pX+72, pY+pH, 0, 12) draw.fillRoundRect() -- Logo draw.setColor(color.main) draw.setRoundRect(pX+12, pY+52, pX+60, pY+100, 10) draw.fillRoundRect() draw.setColor(color.white) draw.setTextSize(14) draw.text(pX+20, pY+68, "千碎") -- 分页标签 local tabName = {"稳定","半稳","火力","设置"} for i=0,3 do local tY = pY + 110 + i*60 if ui.curPage == i then draw.setColor(color.main) draw.setStrokeWidth(2) draw.setRoundRect(pX+10, tY, pX+62, tY+52, 10) draw.strokeRoundRect() end draw.setColor(ui.curPage==i and color.main or color.gray) draw.setTextSize(13) draw.text(pX+18, tY+16, tabName[i+1]) end -- 右侧功能列表 local contentX = pX + 80 local contentY = pY + 46 draw.setColor(color.main) draw.setTextSize(14) draw.text(contentX, contentY, tabName[ui.curPage+1].."区") local list = ui.funcList[ui.curPage+1] for i, v in ipairs(list) do local rowY = contentY + 24 + (i-1)*36 draw.setColor(color.dark) draw.setRoundRect(contentX, rowY, pX+pW-12, rowY+32, 8) draw.fillRoundRect() draw.setColor(color.white) draw.setTextSize(13) draw.text(contentX+10, rowY+8, v.name) -- 开关圆点 local swX = pX+pW-64 draw.setColor(v.enable and color.main or 0xFF333333) draw.setRoundRect(swX, rowY+4, swX+50, rowY+28, 13) draw.fillRoundRect() draw.setColor(color.white) local dotX = v.enable and swX+28 or swX+2 draw.setRoundRect(dotX, rowY+6, dotX+20, rowY+26, 10) draw.fillRoundRect() end end end) -- ====================== 主循环(你原版检测逻辑不动) ====================== gg.toast("千碎UI脚本加载完成 | 悬浮球已生成") while true do if gg.isVisible(true) then XGCK = 1 gg.setVisible(false) end gg.clearResults() if XGCK == 1 then Main() end end --[[Welcome to Dluae]]