Ticket #4396: 4396_lobby.2.patch
File 4396_lobby.2.patch, 2.3 KB (added by , 7 years ago) |
---|
-
binaries/data/mods/public/gui/lobby/lobby.js
448 448 Engine.GetGUIObjectByName("profileErrorText").hidden = profileFound; 449 449 450 450 if (!profileFound) 451 { 452 Engine.GetGUIObjectByName("profileErrorText").caption = sprintf( 453 translate("Player \"%(nick)s\" not found."), 454 { "nick": attributes.player } 455 ); 451 456 return; 457 } 452 458 453 459 Engine.GetGUIObjectByName("profileUsernameText").caption = user; 454 460 Engine.GetGUIObjectByName("profileRankText").caption = attributes.rank; -
binaries/data/mods/public/gui/lobby/lobby.xml
319 319 </object> 320 320 <object name="profileWindowPanel" size="25 95 100%-25 100%-60"> 321 321 <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"> 323 323 <object name="profileUsernameText" size="0 0 100% 25" type="text" style="ModernLabelText" text_align="center" font="sans-bold-16" /> 324 324 <object size="0 30 40%+40 50" type="text" style="ModernLabelText" text_align="right" font="sans-bold-stroke-13"> 325 325 <translatableAttribute id="caption">Current Rank:</translatableAttribute> … … 346 346 </object> 347 347 <object name="profileRatioText" size="40%+45 130 100% 150" type="text" style="ModernLabelText" text_align="left" font="sans-bold-stroke-12" /> 348 348 </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">Pl ayer 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> 351 351 </object> 352 352 </object> 353 353 </object>