Ingo Chou Posted June 30, 2016 Share Posted June 30, 2016 Hi, Would you please add *.d.ts files for CASTORGUI Library like BABYLONJS? I want to use CASTORGUI in TypeScript (VS2015) project. Thanks. Quote Link to comment Share on other sites More sharing options...
Dad72 Posted June 30, 2016 Share Posted June 30, 2016 I do not know coding tapuscript I therefore can not generate file. d.ts Sorry Quote Link to comment Share on other sites More sharing options...
Ingo Chou Posted July 1, 2016 Author Share Posted July 1, 2016 Not at all. You have contributed a lot. Quote Link to comment Share on other sites More sharing options...
Dad72 Posted July 1, 2016 Share Posted July 1, 2016 I could quickly learn I guess, but let's say I'm not motivated to learn a new programming language. Maybe someday, but not now. But if you are good with tapuscript, you can contribute to this library GUI. it is open source and you are welcome. Quote Link to comment Share on other sites More sharing options...
JCPalmer Posted July 1, 2016 Share Posted July 1, 2016 For small projects like this, building a d.ts by handle is feasible. Quote Link to comment Share on other sites More sharing options...
Ingo Chou Posted July 6, 2016 Author Share Posted July 6, 2016 I've only just started to learn TypeScript. Quote Link to comment Share on other sites More sharing options...
JCPalmer Posted July 6, 2016 Share Posted July 6, 2016 declare module CASTORGUI{ class GUIButton { constructor(id: string, options: {}, guimanager : GUIManager, callback : () => void, append?: boolean); public addElement(append, element) : void; public dispose() : boolean; // not sure what return type is public setVisible(bool : boolean, fade?: boolean) : void; public isVisible() : boolean; } class GUICheckbox{} class GUIColor{} class DataBase{} class GUIDialog{} class GUIFieldset{} class GUIGroup{} class GUILabel{} class GUIManager{} class GUIMeter{} class GUIPanel{} class GUIProgress{} class GUIRadio{} class GUISelect{} class GUISlider{} class GUISpinner{} class GUIText{} class GUITextarea{} class GUITextfield{} class GUITexture{} class GUIWindow{} // functions from draggableGUI.js export function addEventListener(element, eventName, handler) : void; } Just start filling this in. Dad72 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.