채팅0

    ChannelChangeComponent.OnLoadedChannels.lua

    조회수 1179

    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