Jump to content
Returning Members: Password Reset Required ×

Help: MainDialog1 & MainDialog2 Won’t Move Even After Editing GUI.ini


Recommended Posts

Posted (edited)

Hello, I’m a new member of this forum. I’m asking for some help. I just need more information about the main interface UI, specifically how to move elements like MainDialog1 and MainDialog2 to the center.

I already set X = 171 in GUI.ini [0-130], but when logging in, it doesn’t move. If anyone here can help, I’d really appreciate it.

004F7B7E  |. 68 8D000000    PUSH 8D
004F7B83  |. FF15 F4D96700  CALL DWORD PTR DS:[<&graphic.?GetScreenW>;  graphic.?GetScreenWidth@CMyBitmap@@SAHXZ
004F7B89  |. 50             PUSH EAX
004F7B8A  |. FF15 ECD96700  CALL DWORD PTR DS:[<&graphic.?GetScreenH>;  graphic.?GetScreenHeight@CMyBitmap@@SAHXZ
004F7B90  |. 2D 8D000000    SUB EAX,8D
004F7B95  |. 8D8E E0040000  LEA ECX,DWORD PTR DS:[ESI+4E0]

By the way, I’m using client version 5187.

Edited by banlawan
Posted (edited)

You mean the /resetgui command? If I use that command, it moves to the center. So how can I make it automatically move to the center when logging in? I mean, how can I find the address any tips or hints?

Edited by banlawan
Posted

VOID CFileEditor::Calculator(int32_t Width, int32_t Height, BOOL IsFull)
{
    WCHAR New_X[128];
    WCHAR New_Y[128];
    WCHAR OtherData[128];
    WCHAR New_Width[128];
    WCHAR New_Height[128];

    wsprintfW(New_Width, L"%d", Width);
    wsprintfW(New_Height, L"%d", Height);
    WritePrivateProfileStringW(L"0-130", L"w", New_Width, L"ini\\GUI.ini");
    WritePrivateProfileStringW(L"0-130", L"x", New_X, L"ini\\GUI.ini");
    WritePrivateProfileStringW(L"0-130", L"y", New_Y, L"ini\\GUI.ini");

 

    if (IsFull)
    {
        CFileEditor::NextStep5517(Width, Height);
    }
}

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...