Coder Social home page Coder Social logo

渴望增加自定义api的功能 about luaide HOT 3 CLOSED

k0204 avatar k0204 commented on June 6, 2024
渴望增加自定义api的功能

from luaide.

Comments (3)

ice1989 avatar ice1989 commented on June 6, 2024

之前使用过一个lua IDE 提供的额外api配置如下:

-- UserDefined: ["YourFunctionName"] = "descryption", 不要忘记最后有个逗号

Lua_UserDefinedFunctions =
{
["LuaSvr"]="类名:LuaSvr",
["LuaSvr.luaState"]= "变量:LuaState luaState",
["LuaSvr.inited"]= "变量:bool inited",
["LuaSvr:waitForDebugConnection"]= "方法:waitForDebugConnection(Action complete)",
["LuaSvr:waitForBind"]= "方法:waitForBind(Action tick, Action complete)",
["LuaSvr:init"]= "方法:init(Action tick,Action complete,LuaSvrFlag flag=LuaSvrFlag.LSF_BASIC)",
["LuaSvr:start"]= "方法:start(string main)",["DownQueuest"]="类名:DownQueuest",
["DownQueuest.MAX"]= "变量:int MAX",
["DownQueuest:OnStartDownAssets"]= "方法:OnStartDownAssets(string ip,Dictionary<string,ResVO> list,DownRequest.DownCompleteDelegate completeFunc, DownRequest.ProcessDelegate processFunc = null,DownRequest.ErrorDelegate errorFunc = null)",
["DownQueuest:Update"]= "方法:Update()",["SceneCommand"]="类名:SceneCommand",
["SceneCommand.SEND"]= "变量:string SEND",
["SceneCommand.RECEIVE"]= "变量:string RECEIVE",["UIProgressBar"]="类名:UIProgressBar",
["UIProgressBar.current"]= "变量:UIProgressBar current",
["UIProgressBar.onDragFinished"]= "变量:OnDragFinished onDragFinished",
["UIProgressBar.void"]= "变量:delegate void",
["UIProgressBar.thumb"]= "变量:Transform thumb",
["UIProgressBar.numberOfSteps"]= "变量:int numberOfSteps",
["UIProgressBar.onChange"]= "变量:List onChange",
["UIProgressBar.cachedTransform"]= "变量:Transform cachedTransform",
["UIProgressBar.cachedCamera"]= "变量:Camera cachedCamera"

---上面的文件结构是用户根据项目的情况 自己生成出来的配置

from luaide.

ice1989 avatar ice1989 commented on June 6, 2024

另外 点击跳转的时候 有一种情况是如下
我有一个lua的文件 叫LuaArray自定义了 Add 这个方法
我在另外一个lua文件里面使用的时候是这样的
local a = LuaArray:new();
a:Add(xxx);
输入Add的时候 不能自动匹配到LuaArray 这个lua文件里面的Add方法 直接无提示
建议这里这块需要考虑下 当匹配不到当前文件的方法 可以考虑匹配全局所有的方法
为什么会基于这个考虑是因为ide无法知道 这个a 是什么东西,只能通过一个较为简单的全部方法查找的方式

from luaide.

k0204 avatar k0204 commented on June 6, 2024

0.4.5 已经更新

from luaide.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.