채팅0

    ChannelChangeComponent.OnLoadedChannels.lua

    조회수 1177

    return function(_Ii10l0IiIoi0, _lioI0Ilil1ii)

    if not _lioI0Ilil1ii then

    _Ii10l0IiIoi0["Loading"]["Enable"] = false;

    _Ii10l0IiIoi0["Entity"]["Enable"] = false;

    _UtilDlgLogic"Show";

    return;

    end;

    _Ii10l0IiIoi0["BtOk"]["SetInteractible"](_Ii10l0IiIoi0["BtOk"], false);

    local _il1IoIili0lo = _lioI0Ilil1ii;

    _Ii10l0IiIoi0["EnsureChannelButtonsForDemand"](_Ii10l0IiIoi0, #_il1IoIili0lo);

    _Ii10l0IiIoi0["DisableUnnecessaryChannelButtons"](_Ii10l0IiIoi0, #_il1IoIili0lo);

    local _lo01i1lolIol = _Ii10l0IiIoi0["ChannelButtons"];

    for _Io0l1lIoIi10 = 1, #_il1IoIili0lo do

    local _olI1i1olo0i0 = _lo01i1lolIol[_Io0l1lIoIi10];

    local _lo01i1lolIi1 = _il1IoIili0lo[_Io0l1lIoIi10];

    local _ioI010ioil1o = _olI1i1olo0i0["ChannelElementComponent"];

    _ioI010ioil1o["SetCurrentChannel"](_ioI010ioil1o, _lo01i1lolIi1["WorldId"] == _WorldInstanceService["WorldInstanceId"]);

    _ioI010ioil1o["SetChannelName"](_ioI010ioil1o, string["format"]("CH.%s", _lo01i1lolIi1["ChannelName"]));

    _ioI010ioil1o["ChangePopularity"](_ioI010ioil1o, _lo01i1lolIi1["Pop"]);

    if not _ioI010ioil1o["IsCurrentChannel"] then

    _ioI010ioil1o["ChannelIndex"] = _Io0l1lIoIi10;

    else

    _ioI010ioil1o["ChannelIndex"] = -1;

    end;

    _Ii10l0IiIoi0["Channels"][_Io0l1lIoIi10] = _lo01i1lolIi1;

    end;

    _Ii10l0IiIoi0["Selected"] = 0;

    local _0i1lIl0i0oII = ((#_il1IoIili0lo) + 5) // 6;

    if _0i1lIl0i0oII > 10 then

    _0i1lIl0i0oII = 10;

    end;

    local _lIo1i1lIl0il = 134 + 74 + 40 * _0i1lIl0i0oII + 5 * (_0i1lIl0i0oII - 1);

    _Ii10l0IiIoi0["Entity"]["UITransformComponent"]["RectSize"]["y"] = _lIo1i1lIl0il;

    _Ii10l0IiIoi0["Loading"]["Enable"] = false;

    end;

    댓글1

    회원프로필

    번역하기 빡새내용,,,

    2024.03.06 14:44

      게시글 리스트
      제목작성자작성일조회
      5065203-06477
      5065103-06362
      5065003-06328
      5064903-06533
      5064803-06330
      5064703-06316
      5064603-06408
      5064503-06413
      5064403-06332
      5064303-06435
      5064203-06384
      5064103-06406
      5064003-06371
      5063903-06452
      5063803-06288
      5063703-06442
      5063603-06395
      5063503-06416
      5063403-06440
      5063303-06720