You are retarded. How do you think we (people who coded 2.20 to 3.51 client) made it 3.51? By just changing the 2.20 code. You on the other hand probably just copied code from other clients to do it. It's easy to do a compare on code and just make a "guide" saying "change this and that" when using someone else's code. Try doing something harder on your own like adding a new feature.HatoL wrote: go on try it,
you'll see that the coordinates aren't the same - that's what i meant.
download the 2.20 client source,go to UpdateScreen_OnMainMenu
and you'll see that the coordinates aren't the same.
copy and pasting functions?
i didn't copy and paste functions,i've found the places that needs a change and thier useages (afterall,this was the main idea of mine,to learn how the client works - or atleast some of it)and changed the coordinates,i've moved it pixel pixel until i saw it was perfect.
and now you can use this guide too,to make the button on other locatios so people can make new skins too,which its button aren't in the same place as in other skins.
now i'm trying to make a change password button,or atleast going to start in a few days.
4 servers:
Code: Select all
pMI->AddRect(263,245,375,271);//Low
pMI->AddRect(248,277,362,303);//High
pMI->AddRect(228,305,373,327);//Secret
pMI->AddRect(213,337,328,360);//Test
pMI->AddRect(343,364,391,382);//Cancel
if (m_cCurFocus == 1) DrawNewDialogBox(DEF_SPRID_INTERFACE_ND_LOGIN, 263, 245, 5, TRUE);//Change 130, 177
if (m_cCurFocus == 2) DrawNewDialogBox(DEF_SPRID_INTERFACE_ND_LOGIN, 248, 277, 6, TRUE);
if (m_cCurFocus == 3) DrawNewDialogBox(DEF_SPRID_INTERFACE_ND_LOGIN, 228, 305, 7, TRUE);
if (m_cCurFocus == 4) DrawNewDialogBox(DEF_SPRID_INTERFACE_ND_LOGIN, 213, 337, 8, TRUE);
if (m_cCurFocus == 5) DrawNewDialogBox(DEF_SPRID_INTERFACE_ND_LOGIN, 343, 364, 4, TRUE);
if ((msX >= 263) && (msX <= 375) && (msY >= 245) && (msY <= 271)) m_cCurFocus = 1;
if ((msX >= 248) && (msX <= 362) && (msY >= 277) && (msY <= 303)) m_cCurFocus = 2;
if ((msX >= 228) && (msX <= 373) && (msY >= 305) && (msY <= 327)) m_cCurFocus = 3;
if ((msX >= 213) && (msX <= 328) && (msY >= 337) && (msY <= 360)) m_cCurFocus = 4;
if ((msX >= 343) && (msX <= 391) && (msY >= 364) && (msY <= 382)) m_cCurFocus = 5;