GithubHelp home page GithubHelp logo

Comments (2)

Basssiiie avatar Basssiiie commented on July 3, 2024

Thank you for your feature request! What bindings would you need for the custom widget? The custom widget should be possible with widget(), which basically works as a pass-through to OpenRCT2's API, though I was planning to add the custom widget (and any other missing widgets) at some point yes. Maybe naming it graphics() or something similar would be more representative of what it's actually for.

As for exposing the Control class, maybe some day I may expose it. Though, as I've still got a few features in mind I wanna build, I don't want to risk breaking a lot of code dependant on the exposed class. Generally I try to limit breakage of public api's while optimizing internal api's like I see fit. Exposing the control class will prevent me from doing that on this core component, so I think it's better to expose it after all the major features I would want to have are in.

Also yes I should update openrct2.d.ts, I didn't realise it was that outdated. 😅 Though the user should really bring their own openrct2.d.ts and not rely on the one FlexUI uses (is it even in the FlexUI package?).

from openrct2-flexui.

ltsSmitty avatar ltsSmitty commented on July 3, 2024

My specific issue with the graphics context is that the onDraw requires a this as this first argument, and I wasn't sure how to access it via the widget. Is there a way to do that? Just trying to use this gave me a bunch of complaints and I wasn't sure what to try next, hence me trying to make a new native graphics widget.

from openrct2-flexui.

Related Issues (8)

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.