public void Show() { if (isShown) { return; } if (pView == null) { pView = zCView.Create(process, 0, 0, sizeX, sizeY); zString texStr = zString.Create(process, texture); zString fontStr = zString.Create(process, "Font_Old_20_White_Hi.tga"); pView.InsertBack(texStr); pView.SetFont(fontStr); texStr.Dispose(); fontStr.Dispose(); pView.PrintTimedCXY(zString.Create(process, text), -1, zColor.Create(process, 255, 255, 255, 255)); pView.SetPos(posX, posY); } zCView.GetStartscreen(process).InsertItem(pView, 0); InputHooked.receivers.Add(this); isShown = true; }
public void setPos(int x, int y) { posX = x; posY = y; if (pView != null) { pView.SetPos(posX, posY); } }
public void SetPosX(int newPosX, bool virtuals = false) { if (!virtuals) { newPosX = PixelToVirtualX(newPosX); } int diff = newPosX - vpos.X; vpos.X = newPosX; thisView.SetPos(vpos.X, vpos.Y); //update children foreach (GUCVisual vis in children) { vis.SetPosX(vis.vpos.X + diff); } }
public override void setPosition(Vec2i pos) { this.position.set(pos); view.SetPos(this.position.X, this.position.Y); }
public static Int32 Update(String message) { try { cursor_fX += Process.ReadInt(9246300) * 40f * Process.ReadFloat(9019720); cursor_fY += Process.ReadInt(9246304) * 40f * Process.ReadFloat(9019724); if (cursor_fX < 0) { cursor_fX = 0; } if (cursor_fX > 7950) { cursor_fX = 7950; } if (cursor_fY > 7950) { cursor_fY = 7950; } if (cursor_fY < 0) { cursor_fY = 0; } InputHooked.WheelChanged(Process.ReadInt(9246300 + 8)); int keyLeft = Process.ReadInt(9246300 + 12); int keyMid = Process.ReadInt(9246300 + 16); int keyRight = Process.ReadInt(9246300 + 20); if (keystats[0] == 1 && keyLeft == 0) { InputHooked.SendKeyReleased((byte)VirtualKeys.LeftButton); } if (keystats[0] == 0 && keyLeft == 1) { InputHooked.SendKeyPressed((byte)VirtualKeys.LeftButton); } keystats[0] = keyLeft; if (noHandle) { Process.Write(new byte[24], 9246300); } if (pView == null) { return(0); } pView.Top(); pView.SetPos((int)cursor_fX, (int)cursor_fY); } catch (Exception ex) { zERROR.GetZErr(Process.ThisProcess()).Report(4, 'G', ex.ToString(), 0, "Program.cs", 0); } return(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]); }
public override void setPosition(Vec2i pos) { this.position.set(pos); thisView.SetPos(pos.X, pos.Y); }