Ticket #4396: 4396_lobby.2.patch

File 4396_lobby.2.patch, 2.3 KB (added by Vladislav Belov, 7 years ago)
  • binaries/data/mods/public/gui/lobby/lobby.js

     
    448448        Engine.GetGUIObjectByName("profileErrorText").hidden = profileFound;
    449449
    450450        if (!profileFound)
     451        {
     452            Engine.GetGUIObjectByName("profileErrorText").caption = sprintf(
     453                translate("Player \"%(nick)s\" not found."),
     454                { "nick": attributes.player }
     455            );
    451456            return;
     457        }
    452458
    453459        Engine.GetGUIObjectByName("profileUsernameText").caption = user;
    454460        Engine.GetGUIObjectByName("profileRankText").caption = attributes.rank;
  • binaries/data/mods/public/gui/lobby/lobby.xml

     
    319319            </object>
    320320            <object name="profileWindowPanel" size="25 95 100%-25 100%-60">
    321321            <object name="profileWindowBox" type="image" sprite="ModernDarkBoxGold" size="0 0 100% 100%">
    322                 <object name="profileWindowArea" size="0 0 100% 100%" hidden="false">
     322                <object name="profileWindowArea" size="0 0 100% 100%" hidden="true">
    323323                    <object name="profileUsernameText" size="0 0 100% 25" type="text" style="ModernLabelText" text_align="center" font="sans-bold-16" />
    324324                    <object size="0 30 40%+40 50" type="text" style="ModernLabelText" text_align="right" font="sans-bold-stroke-13">
    325325                        <translatableAttribute id="caption">Current Rank:</translatableAttribute>
     
    346346                    </object>
    347347                    <object name="profileRatioText" size="40%+45 130 100% 150" type="text" style="ModernLabelText" text_align="left" font="sans-bold-stroke-12" />
    348348                </object>
    349                 <object name="profileErrorText" size="25% 25% 75% 75%" type="text" style="ModernLabelText" text_align="center" font="sans-bold-stroke-13" hidden="true">
    350                     <translatableAttribute id="caption">Player not found.</translatableAttribute>
     349                <object name="profileErrorText" size="25% 25% 75% 75%" type="text" style="ModernLabelText" text_align="center" font="sans-bold-stroke-13" hidden="false">
     350                    <translatableAttribute id="caption">Please enter a player name.</translatableAttribute>
    351351                </object>
    352352            </object>
    353353            </object>