Ejemplo n.º 1
0
        void draw_noodles(NvgContext vg, int x, int y)
        {
            int w = 200;
            int s = 70;

            vg.bndNodeBackground(x + w, y - 50, 100, 200, BNDwidgetState.BND_DEFAULT, BNDicon.BND_ICON_GHOST,
                                 "Default", new Color(0.392f, 0.392f, 0.392f));
            vg.bndNodeBackground(x + w + 120, y - 50, 100, 200, BNDwidgetState.BND_HOVER, BNDicon.BND_ICON_GHOST,
                                 "Hover", new Color(0.392f, 0.392f, 0.392f));
            vg.bndNodeBackground(x + w + 240, y - 50, 100, 200, BNDwidgetState.BND_ACTIVE, BNDicon.BND_ICON_GHOST,
                                 "Active", new Color(0.392f, 0.392f, 0.392f));

            for (int i = 0; i < 9; ++i)
            {
                int a = i % 3;
                int b = i / 3;
                vg.bndNodeWire(x, y + s * a, x + w, y + s * b, (BNDwidgetState)a, (BNDwidgetState)b);
            }

            vg.bndNodePort(x, y, BNDwidgetState.BND_DEFAULT, new Color(0.5f, 0.5f, 0.5f));
            vg.bndNodePort(x + w, y, BNDwidgetState.BND_DEFAULT, new Color(0.5f, 0.5f, 0.5f));
            vg.bndNodePort(x, y + s, BNDwidgetState.BND_HOVER, new Color(0.5f, 0.5f, 0.5f));
            vg.bndNodePort(x + w, y + s, BNDwidgetState.BND_HOVER, new Color(0.5f, 0.5f, 0.5f));
            vg.bndNodePort(x, y + 2 * s, BNDwidgetState.BND_ACTIVE, new Color(0.5f, 0.5f, 0.5f));
            vg.bndNodePort(x + w, y + 2 * s, BNDwidgetState.BND_ACTIVE, new Color(0.5f, 0.5f, 0.5f));
        }