Esempio n. 1
0
        public void setValue(int value)
        {
            this.value = value;

            //Breite berechnen!
            int[] sizeB = InputHooked.PixelToVirtual(Process, new int[] { 180 - 7, 20 - 3 });

            double valProcent = 100.0 / (double)max * (double)value;
            double size       = (double)sizeB[0] / 100.0 * valProcent;

            frontView.SetSize((int)size, sizeB[1]);
        }
Esempio n. 2
0
        public Bar(Process process, int posX, int posY, String frontTex, String backTex)
        {
            Process = process;


            int[] size  = InputHooked.PixelToVirtual(process, new int[] { 180, 20 });
            int[] sizeB = InputHooked.PixelToVirtual(process, new int[] { 180 - 7, 20 - 3 });
            int[] posB  = InputHooked.PixelToVirtual(process, new int[] { 7, 3 });


            backView = zCView.Create(process, posX, posY, size[0], size[1]);
            zString tex = zString.Create(process, backTex);

            backView.InsertBack(tex);
            tex.Dispose();

            frontView = zCView.Create(process, posX + posB[0], posY + posB[1], sizeB[0], sizeB[1]);
            tex       = zString.Create(process, frontTex);
            frontView.InsertBack(tex);
            tex.Dispose();
        }
Esempio n. 3
0
 public void setPosition(int x, int y)
 {
     int[] sizeB = InputHooked.PixelToVirtual(Process, new int[] { 7, 3 });
     backView.SetPos(x, y);
     frontView.SetPos(x + sizeB[0], y + sizeB[1]);
 }