dennytx / dockingcam Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
When installing this mod, the default text style gets overwritten with the font color of red. Looking through the code, this is because of the following lines:
public DockingCamera(Part part, bool noiseActive, string windowLabel = "Docking Camera")
: base(part, windowLabel)
{
this.noiseActive = noiseActive;
target = new TargetHelper(part);
guiStyleRedLabel = HighLogic.Skin.label;
guiStyleRedLabel.normal.textColor = Color.red;
if (textureWhiteNoise != null || !noiseActive) return;
textureWhiteNoise = new List<Texture2D>[3];
for (int j = 0; j < 3; j++)
{
textureWhiteNoise[j] = new List<Texture2D>();
for (int i = 0; i < 4; i++)
textureWhiteNoise[j].Add(Util.WhiteNoiseTexture((int)texturePosition.width, (int)texturePosition.height));
}
}
https://github.com/DennyTX/DockingCam/blob/master/KSPCamera/Camera/DockingCamera.cs#L35
The guiStyleRedLabel
is a reference type, and doesn't create a local copy by default. In kOS, we implemented a "deep copy" of the skin. I didn't implement it myself, but it looks like you probably want to change line 3 to guiStyleRedLabel = new GUIStyle(HighLogic.Skin.label);
https://github.com/KSP-KOS/KOS/blob/develop/src/kOS/Utilities/Utils.cs#L134
I'm trying to build this on Linux with monodevelop
. DockingCamera.sln
and DockingCamera.userprefs
(in git master
) contain references to ../ModelingProject1/ModelingProject1.modelproj
- which, obviously, are not available.
Is this project necessary, or is this a stray?
Any chance you can provide an alternate download link, as KerbalStuff is now offline?
Thanks
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.