fauxnik / dv-comms-radio-api Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
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:
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)
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.
Some utility functions that would be nice to have in this API rather than having to recreate them:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.