"use strict";(self.webpackChunkdocs_site=self.webpackChunkdocs_site||[]).push([[9309],{7250:(e,n,r)=>{r.r(n),r.d(n,{assets:()=>i,contentTitle:()=>o,default:()=>u,frontMatter:()=>c,metadata:()=>s,toc:()=>d});const s=JSON.parse('{"id":"XXTLanControl.lua/core/README","title":"\u6838\u5fc3","description":"\u5f15\u5165\u6a21\u5757","source":"@site/docs/XXTLanControl.lua/core/README.md","sourceDirName":"XXTLanControl.lua/core","slug":"/XXTLanControl.lua/core/","permalink":"/docs/XXTLanControl.lua/core/","draft":false,"unlisted":false,"tags":[],"version":"current","sidebarPosition":1,"frontMatter":{"sidebar_position":1},"sidebar":"tutorialSidebar","previous":{"title":"XXTLanControl \u6a21\u5757","permalink":"/docs/XXTLanControl.lua/"},"next":{"title":"\u8bbe\u7f6e\u4e2d\u63a7\u8bbf\u95ee\u5730\u5740 (LCC.set_api_url)","permalink":"/docs/XXTLanControl.lua/core/set_api_url"}}');var l=r(4848),t=r(8453);const c={sidebar_position:1},o="\u6838\u5fc3",i={},d=[{value:"\u5f15\u5165\u6a21\u5757",id:"\u5f15\u5165\u6a21\u5757",level:2},{value:"\u5f00\u59cb\u4e4b\u524d",id:"\u5f00\u59cb\u4e4b\u524d",level:2},{value:"\u8fd9\u4e00\u7ec4\u63a5\u53e3\u4e3b\u8981\u8d1f\u8d23",id:"\u8fd9\u4e00\u7ec4\u63a5\u53e3\u4e3b\u8981\u8d1f\u8d23",level:2}];function a(e){const n={a:"a",code:"code",h1:"h1",h2:"h2",header:"header",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,t.R)(),...e.components};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(n.header,{children:(0,l.jsx)(n.h1,{id:"\u6838\u5fc3",children:"\u6838\u5fc3"})}),"\n",(0,l.jsx)(n.h2,{id:"\u5f15\u5165\u6a21\u5757",children:"\u5f15\u5165\u6a21\u5757"}),"\n",(0,l.jsx)(n.pre,{children:(0,l.jsx)(n.code,{className:"language-lua",children:'local LCC = require("XXTLanControl")\n'})}),"\n",(0,l.jsx)(n.h2,{id:"\u5f00\u59cb\u4e4b\u524d",children:"\u5f00\u59cb\u4e4b\u524d"}),"\n",(0,l.jsxs)(n.ul,{children:["\n",(0,l.jsx)(n.li,{children:"\u8bf7\u5148\u786e\u8ba4\u8bbe\u5907\u4e0a\u7684 XXTouch \u7248\u672c\u8db3\u591f\u65b0\u3002"}),"\n",(0,l.jsxs)(n.li,{children:[(0,l.jsx)(n.code,{children:"LCC.capture_ui_state()"})," \u9700\u8981\u8bbe\u5907\u7aef ",(0,l.jsx)(n.code,{children:"ui_element"})," 0.6.0 \u6216\u66f4\u9ad8\u7248\u672c\uff1b\u6a21\u5757\u4e0d\u53ef\u7528\u6216\u7248\u672c\u8fc7\u4f4e\u65f6\uff0c\u8bf7\u66f4\u65b0 XXTouch \u540e\u518d\u4f7f\u7528 ",(0,l.jsx)(n.strong,{children:"capture_ui_state"}),"\u3002"]}),"\n",(0,l.jsxs)(n.li,{children:["\u5982\u679c\u811a\u672c\u4e0d\u662f\u4ece\u4e2d\u63a7\u542f\u52a8\uff0c\u5148\u8c03\u7528 ",(0,l.jsx)(n.code,{children:"LCC.set_api_url()"})," \u6307\u5b9a\u4e2d\u63a7\u5730\u5740\u3002"]}),"\n",(0,l.jsxs)(n.li,{children:["\u4f7f\u7528\u4efb\u4f55\u63a5\u53e3\u524d\uff0c\u90fd\u8981\u5148\u6267\u884c ",(0,l.jsx)(n.code,{children:"LCC.connect()"}),"\u3002"]}),"\n"]}),"\n",(0,l.jsxs)(n.p,{children:["\u5982\u679c\u6a21\u5757\u7248\u672c\u4e0d\u4e00\u81f4\uff0c",(0,l.jsx)(n.code,{children:"LCC.connect()"})," \u4f1a\u5148\u5c1d\u8bd5\u4ece\u4e2d\u63a7\u4e0b\u8f7d\u65b0\u7248\u6a21\u5757\uff0c\u518d\u81ea\u52a8\u91cd\u65b0\u8fde\u63a5\u3002"]}),"\n",(0,l.jsx)(n.h2,{id:"\u8fd9\u4e00\u7ec4\u63a5\u53e3\u4e3b\u8981\u8d1f\u8d23",children:"\u8fd9\u4e00\u7ec4\u63a5\u53e3\u4e3b\u8981\u8d1f\u8d23"}),"\n",(0,l.jsxs)(n.ul,{children:["\n",(0,l.jsxs)(n.li,{children:["\u8bbe\u7f6e\u8fde\u63a5\u91cd\u8bd5\u6b21\u6570 ",(0,l.jsx)(n.code,{children:"set_retry_count"})]}),"\n",(0,l.jsxs)(n.li,{children:["\u8bbe\u7f6e\u4e2d\u63a7\u5730\u5740 ",(0,l.jsx)(n.code,{children:"set_api_url"})]}),"\n",(0,l.jsxs)(n.li,{children:["\u8bbe\u7f6e 1-6 \u53f7\u65e5\u5fd7\u5217\u522b\u540d ",(0,l.jsx)(n.code,{children:"set_log_aliases"})]}),"\n",(0,l.jsxs)(n.li,{children:["\u5411\u4e2d\u63a7\u65e5\u5fd7\u5217\u5199\u65e5\u5fd7 ",(0,l.jsx)(n.code,{children:"log"})]}),"\n",(0,l.jsxs)(n.li,{children:["\u6293\u53d6\u5e76\u4fdd\u5b58\u754c\u9762\u72b6\u6001 ",(0,l.jsx)(n.a,{href:"/docs/XXTLanControl.lua/core/capture_ui_state",children:(0,l.jsx)(n.code,{children:"capture_ui_state"})})]}),"\n",(0,l.jsxs)(n.li,{children:["\u8bfb\u53d6\u811a\u672c\u914d\u7f6e\u754c\u9762\u53c2\u6570 ",(0,l.jsx)(n.code,{children:"get_ui_config"})]}),"\n"]})]})}function u(e={}){const{wrapper:n}={...(0,t.R)(),...e.components};return n?(0,l.jsx)(n,{...e,children:(0,l.jsx)(a,{...e})}):a(e)}},8453:(e,n,r)=>{r.d(n,{R:()=>c,x:()=>o});var s=r(6540);const l={},t=s.createContext(l);function c(e){const n=s.useContext(t);return s.useMemo(function(){return"function"==typeof e?e(n):{...n,...e}},[n,e])}function o(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(l):e.components||l:c(e.components),s.createElement(t.Provider,{value:n},e.children)}}}]);