Solo usuarios registrados pueden comentar y agradecer, Logueate o Registrate

Autor Topic: Source Custom ViewDetails character  (Visto 13532 veces)

0 Miembros and 1 Guest are viewing this topic.

Offline SaintZeus #20 Posteado: April 17, 2022, 11:12:22 PM

  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 504
  • Gracias recibida: 3256
  • ar

Offline bimaloha #21 Posteado: April 18, 2022, 03:50:11 AM | Modificado: April 18, 2022, 10:54:04 AM by bimaloha

  • 0 puntos por ventas
  • *
  • Rank: Sup. destacado
  • Posts: 117
  • Gracias recibida: 4298
  • vn

Gracias:


Offline T-LEGENDARY #22 Posteado: April 18, 2022, 07:07:25 AM

  • Colaborador
  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 764
  • Gracias recibida: 12095
  • br
@bimaloha share to us , the box moviment bro


Offline bimaloha #23 Posteado: April 18, 2022, 10:52:13 AM

  • 0 puntos por ventas
  • *
  • Rank: Sup. destacado
  • Posts: 117
  • Gracias recibida: 4298
  • vn
@bimaloha share to us , the box moviment bro

Code: [Select]
.h
//define:
float guiX;
float guiY;
short curX;
short curY;
bool  dragging;

.cpp
//init:
this->guiX = 300;
this->guiY = 20;
this->curX = pCursorX;
this->curY = pCursorY;
this->dragging = false;

bool IsWorkZone(WORD x, WORD y, WORD w, WORD h){
return pCursorX >= x && pCursorX <= (x + w) && pCursorY >= y && pCursorY <= (y + h);
}

//draw (on very top)
if (GetKeyState(VK_LBUTTON) & 0x8000) {
if (this->IsWorkZone(this->guiX, this->guiY, 190, 30))
if (this->IsWorkZone(this->guiX, this->guiY, 190, 30)) {
if (!this->dragging) {
this->dragging = true;
this->curX = pCursorX;
this->curY = pCursorY;
}
}
if (this->dragging) {
this->guiX += pCursorX - this->curX;
this->guiY += pCursorY - this->curY;
this->curX = pCursorX;
this->curY = pCursorY;
}
}
else {
if (this->dragging) {
this->dragging = false;
}
}

if (this->guiX < 15)
this->guiX = 15;
if (this->guiY < 15)
this->guiY = 15;

if (this->guiX > 640 - 190 - 15)
this->guiX = 640 - 190 - 15;
if (this->guiY > 480 - 209 - 40)
this->guiY = 480 - 209 - 40;

float startX = this->guiX;
float startY = this->guiY;
Then you can use startX and startY for the UI

Gracias:


Offline T-LEGENDARY #24 Posteado: April 18, 2022, 02:02:58 PM | Modificado: April 18, 2022, 02:33:22 PM by T-LEGENDARY

  • Colaborador
  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 764
  • Gracias recibida: 12095
  • br
@bimaloha

thxx a lot bro  rebote rebote rebote


Offline T-LEGENDARY #25 Posteado: April 18, 2022, 02:31:34 PM | Modificado: April 18, 2022, 02:37:29 PM by T-LEGENDARY

  • Colaborador
  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 764
  • Gracias recibida: 12095
  • br
@bimaloha

Code: [Select]
	

void QuickCommandWindow::szInit()
{
Init(3400, SendRequestViewItem);

//init:
this->guiX = 300;
this->guiY = 20;
this->curX = pCursorX;
this->curY = pCursorY;
this->dragging = false;
}

bool QuickCommandWindow::IsWorkZone(WORD x, WORD y, WORD w, WORD h)
{
return pCursorX >= x && pCursorX <= (x + w) && pCursorY >= y && pCursorY <= (y + h);
}

void QuickCommandWindow::Draw()
{
//draw (on very top)
if (GetKeyState(VK_LBUTTON) & 0x8000) {
if (this->IsWorkZone(this->guiX, this->guiY, 190, 30))
if (this->IsWorkZone(this->guiX, this->guiY, 190, 30)) {
if (!this->dragging) {
this->dragging = true;
this->curX = pCursorX;
this->curY = pCursorY;
}
}
if (this->dragging) {
this->guiX += pCursorX - this->curX;
this->guiY += pCursorY - this->curY;
this->curX = pCursorX;
this->curY = pCursorY;
}
}
else {
if (this->dragging) {
this->dragging = false;
}
}

if (this->guiX < 15)
this->guiX = 15;
if (this->guiY < 15)
this->guiY = 15;

if (this->guiX > 640 - 190 - 15)
this->guiX = 640 - 190 - 15;
if (this->guiY > 480 - 209 - 40)
this->guiY = 480 - 209 - 40;

float startX = this->guiX;
float startY = this->guiY;
}

What i was do wrong ?


Offline bimaloha #26 Posteado: April 18, 2022, 03:23:47 PM

  • 0 puntos por ventas
  • *
  • Rank: Sup. destacado
  • Posts: 117
  • Gracias recibida: 4298
  • vn
@T-LEGENDARY nothing, except using that lib. You need to have your own draw interface code to use it.

Gracias:


Offline KhongGianOL #27 Posteado: June 02, 2022, 01:41:56 AM

  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 246
  • Gracias recibida: 707
  • vn



el mio tiene este error


PROBLEMA RESOLVIDO!

#include <crtdefs.h> magia2 magia2 magia2 magia2 magia2

Be kind, for everyone you meet is fighting their hard battle

Gracias:


Offline PhantomKr #28 Posteado: June 04, 2022, 09:13:54 PM

  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 219
  • Gracias recibida: 2504
  • pe
alguien me ayuda por favor


Discord: JeanMois#3323

Offline PhantomKr #29 Posteado: June 07, 2022, 10:46:49 PM | Modificado: June 07, 2022, 11:01:52 PM by PhantomKr

  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 219
  • Gracias recibida: 2504
  • pe
alguien me ayuda por favor


alguien me ayuda por favor  llorando2
(ya solucione mi error)

Discord: JeanMois#3323

Gracias:


Offline skinmuonline #30 Posteado: June 10, 2022, 02:54:05 PM

  • 0 puntos por ventas
  • *
  • Rank: Avanzado
  • Posts: 147
  • Gracias recibida: 224
  • br

Offline vaneavanea31 #31 Posteado: June 10, 2022, 05:46:00 PM

  • 0 puntos por ventas
  • *
  • Rank: Experto
  • Posts: 168
  • Gracias recibida: 40
  • md
hello, somebody have full source ?


Offline KhongGianOL #32 Posteado: June 11, 2022, 02:37:02 AM

  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 246
  • Gracias recibida: 707
  • vn
alguien me ayuda por favor


alguien me ayuda por favor  llorando2
(ya solucione mi error)

PM..Skype: keo.lovebus or Zalo: 0938737340. I fix error this it's

Be kind, for everyone you meet is fighting their hard battle

Offline onlinezajzaj #33 Posteado: June 11, 2022, 03:33:41 AM

  • MAESTRO

  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 663
  • Gracias recibida: 19964
  • vn
alguien me ayuda por favor


alguien me ayuda por favor  llorando2
(ya solucione mi error)

2 Lít, nhanh gọn lẹ !


Offline myway #34 Posteado: August 07, 2022, 02:40:22 PM

  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 205
  • Gracias recibida: 853
  • ar
1>Protocol.obj : error LNK2001: símbolo externo "public: void __thiscall CItemManager::GCItemListViewSend(struct PMSG_VIEW_REQUEST_RECV *,int)" (?GCItemListViewSend@CItemManager@@QAEXPAUPMSG_VIEW_REQUEST_RECV@@H@Z) sin resolver

ERROR ??


Offline zoli1717 #35 Posteado: February 04, 2023, 07:23:01 PM

  • 0 puntos por ventas
  • *
  • Rank: Principiante
  • Posts: 1
  • Gracias recibida: 0
  • gb

Offline GoldSun #36 Posteado: February 05, 2023, 09:39:20 AM

  • 0 puntos por ventas
  • *
  • Rank: Principiante
  • Posts: 21
  • Gracias recibida: 1010
  • vn
1>Protocol.obj : error LNK2001: símbolo externo "public: void __thiscall CItemManager::GCItemListViewSend(struct PMSG_VIEW_REQUEST_RECV *,int)" (?GCItemListViewSend@CItemManager@@QAEXPAUPMSG_VIEW_REQUEST_RECV@@H@Z) sin resolver

ERROR ??

stdafx.h

#define SOIITEM 1


Offline ProTecno #37 Posteado: March 24, 2023, 02:47:40 PM

  • ESTAFADOR
  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 261
  • Gracias recibida: 6798
  • us
El que tenga problemas al agregar este código mandar inbox y lo ayudo a agregarlo sin problemas salu2


Offline jhonhy #38 Posteado: March 25, 2023, 12:40:19 AM

  • 0 puntos por ventas
  • *
  • Rank: Sup. destacado
  • Posts: 103
  • Gracias recibida: 218
  • br
@GoldSun

Error   1   error C1047: The object or library file 'wzMUQuiz.lib' was created with an older compiler than other objects; rebuild old objects and libraries

C++ 2012

Gracias:


Offline Xingaw #39 Posteado: July 18, 2023, 02:37:24 AM

  • 0 puntos por ventas
  • *
  • Rank: Usuario activo
  • Posts: 69
  • Gracias recibida: 34
  • vn
Hola amigos :D

Tengo un problema, ya compilé GS ang main con éxito, pero cuando compruebo el juego después de hacer clic en "Ver detalles", ¿no puedo ver la ventana de inventario de personajes? ¿Qué me perdí?

Gracias.





Solo usuarios registrados pueden comentar y agradecer, Logueate o Registrate


 

Related Topics

  Subject / Started by Replies Last post
45 Replies
21207 Views
Last post September 13, 2022, 04:38:14 PM
by T-LEGENDARY
64 Replies
17902 Views
Last post March 03, 2021, 01:31:38 PM
by tutu100
0 Replies
465 Views
Last post August 12, 2021, 02:31:21 AM
by muvietnam
1 Replies
1653 Views
Last post October 07, 2021, 11:19:46 AM
by whisky123
15 Replies
4473 Views
Last post March 03, 2024, 06:43:43 PM
by Juninsj22