コード例 #1
0
        public NodeEditor(NodeEditorWindow w)
        {
            backColor = ColorExtensions.From255(59, 62, 74);
            knobColor = ColorExtensions.From255(126, 186, 255);

            guideColor   = Color.gray;
            guideColor.a = 0.3f;

            _gridTex   = TextureLib.GetTexture("Grid");
            _backTex   = TextureLib.GetTexture("Square");
            _circleTex = TextureLib.GetTexture("Circle");

            _window = w;
        }
コード例 #2
0
 // TODO: Call after exiting playmode.
 private void updateTextures()
 {
     _knobTex   = TextureLib.GetTintTex("Circle", knobColor);
     _headerTex = TextureLib.GetTintTex("Square", ColorExtensions.From255(79, 82, 94));
 }