UI problem with ExternalLogin & CmdLineLogin

  • Автор темы Автор темы gibbs
  • Дата начала Дата начала

gibbs

Путник
Пользователь
Сообщения
2
Розыгрыши
0
Решения
1
Репутация
5
Реакции
4
Баллы
56
Неприемлемый язык
Ludzie, może jest tu ktoś bardziej doświadczony i będzie mógł mi pomóc, ustawiając w l2.ini ExternalLogin=true i CmdLineLogin=true. Mój ekran logowania wygląda tak – dolna część przesunięta na prawą stronę, z ExternalLoginfalse i CmdLineLogin ustawionymi na false – wszystko jest w porządku. Jak to naprawić z tymi ustawieniami „true”, ktoś wie?

Po przełączeniu z pełnego ekranu do okna lub z okna do pełnego ekranu problem powraca do normy, dopóki nie zrestartuję gry.

1770241699685.webp
 
Решение
Sorry for english again, but i found solution and id like to share with ya in case, some1 will have same issue.

I found a issue, in ExternalLogin, UI loads diffrent for some reason. Interface calculate after lobbyscreen, i foundout that resize or change Full/Window force recalculating - fixing problem.

I Fixed it this way:

Interface.u (U need source and compiler)


  • New function


  • function FireResolutionChangedEvent()
    {
    local int w, h;
    local string p;

    GetCurrentResolution(w, h);
    ParamAdd(p, "NewWidth", String(w));
    ParamAdd(p, "NewHeight", String(h));
    ExecuteEvent(EV_ResolutionChanged, p);
    }

    And u call it after ELUA


  • ShowWindow();
    SendEula();
    FireResolutionChangedEvent();
...
Запрещено публиковать исходный код без BB-кода — CODE
Sorry for english again, but i found solution and id like to share with ya in case, some1 will have same issue.

I found a issue, in ExternalLogin, UI loads diffrent for some reason. Interface calculate after lobbyscreen, i foundout that resize or change Full/Window force recalculating - fixing problem.

I Fixed it this way:

Interface.u (U need source and compiler)


  • New function


  • function FireResolutionChangedEvent()
    {
    local int w, h;
    local string p;

    GetCurrentResolution(w, h);
    ParamAdd(p, "NewWidth", String(w));
    ParamAdd(p, "NewHeight", String(h));
    ExecuteEvent(EV_ResolutionChanged, p);
    }

    And u call it after ELUA


  • ShowWindow();
    SendEula();
    FireResolutionChangedEvent();

This way, i force recalculate UI after client start in ExternalLogin mode, with proper UI.



Solved, fixed.
 

KouGou

Баллов: 5
Thank you for coming back to share the solution!
Решение
Назад
Сверху Снизу