Git Product home page Git Product logo

dv-comms-radio-api's People

Contributors

fauxnik avatar lassombra avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

lassombra

dv-comms-radio-api's Issues

Comm Radio state doesn't refresh on open

So it took a bit for me to figure this one out and it's still entirely possible I'm doing something wrong.

When the comm radio gets put away and then pulled back out while on the mode registered through this api - the mode appears to reset it's internal state, but doesn't appear to update the screen.

I resolved this experimentally in my own local environment by changing the Enable function here:

to

public void Enable() { activeState = startingState; if (null != activeState) { ApplyState(); activeState.OnEnter(proxy, null); } }

Doing so caused the screen to update as expected. I'm not sure if this is the preferred way to solve this, but it does resolve the issue of the screen and state being out of sync until the next state is triggered (in my case by a raycast)

Utility signal source transform is not correct in some instances

I'm not sure which instances this is, but it seems under certain circumstances the transform might get set incorrectly the first time a mode is loaded, and it doesn't get updated.

https://github.com/fauxnik/dv-comms-radio-api/blob/main/CommsRadioAPI/CommsRadioMode.cs#L91 only updates if the current signalSource is null, but doesn't account for if it's different

I can try to provide a pull request later, but for now this is preventing me from using this api as I had hoped.

Suggestion - More utility funcitons

Some utility functions that would be nice to have in this API rather than having to recreate them:

  • Common raytrace identifiers (car, interior, switch, track, probably one or two I am not thinking of)
  • Custom raytrace (provide just the layermask)
  • Car highlighter
  • Rail highlighter (have to provide length?)

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.