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 setTexture(String tex) { if (tex == null || tex == "") { return; } Process process = Process.ThisProcess(); zString text = zString.Create(process, tex); view.InsertBack(text); text.Dispose(); }
public static void Show(Process Process) { if (pShow) { return; } pShow = true; if (pView == null) { pView = zCView.Create(Process, 0, 0, 150, 200); zString tex = zString.Create(Process, "Cursor.tga"); pView.InsertBack(tex); tex.Dispose(); } zCView.GetStartscreen(Process).InsertItem(pView, 0); noHandle = true; //new zCInput_Win32(Process, zCInput.GetInput(Process).Address).SetDeviceEnabled(2, 1); }
public void Enable() { mEnabled = true; zString tex = zString.Create(process, "MENU_INGAME"); viewBG = zCView.Create(process, mPosX, mPosY, mPosX + mWidth, mPosY + mHeight); viewBG.InsertBack(tex); tex.Dispose(); zCView.GetStartscreen(process).InsertItem(viewBG, 0); SetSize(19); EnableInput(); InputHooked.receivers.Add(this); }
public static void Show(Process process) { if (loadingView == null) { loadingView = zCView.Create(process, 0, 0, 0x2000, 0x2000); zString tex = zString.Create(process, "loading.tga"); loadingView.InsertBack(tex); tex.Dispose(); } zCView.GetStartscreen(process).InsertItem(loadingView, 0); //zCViewProgressBar progressbar = zCViewProgressBar.Create(process, 0x1254, 0x3e8, 0x1e0c, 0x5dc, Gothic.zClasses.zCView.zTviewID.VIEW_ITEM); ////oCGame.Game(process).Progressbar = progressbar; ////view.InsertItem(progressbar, 0); //progressbar.SetRange(0, 100); //progressbar.SetPercent(20, zString.Create(process, " Yay !")); }
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(); }
public Texture(int id, String tex, Vec2i position, Vec2i size, Texture parent, GUIEvents evts) : base(id, position) { this.enabledEvents = evts; this.parent = parent; this.size.set(size); Process process = Process.ThisProcess(); view = zCView.Create(process, position.X, position.Y, position.X + this.size.X, position.Y + this.size.Y); if (tex != null && tex != "") { zString text = zString.Create(process, tex); view.InsertBack(text); text.Dispose(); } updateTimer = new Timer(200); updateTimer.OnTick += timerTick; }
public void SetBackTexture(string tex) { thisView.InsertBack(tex); }