45229 {
45231 {
45233 if (
Main.OnEngineLoad !=
null)
45234 {
45235 Main.OnEngineLoad();
45236 }
45237 }
45242 {
45244 }
45253 {
45256 {
45258 }
45259 }
45262 {
45263 screenPosition.X = 0f;
45264 }
45266 {
45267 screenPosition.X = 0f;
45268 }
45269 Star.UpdateStars();
45270 Cloud.UpdateClouds();
45273 byte b = (byte)((255 +
tileColor.R * 2) / 3);
45276 {
45279 {
45282 {
45284 }
45285 }
45287 {
45289 }
45291 {
45293 }
45295 {
45297 }
45299 {
45301 }
45304 {
45306 }
45308 {
45310 }
45312 {
45314 }
45316 {
45318 }
45319 }
45321 {
45324 {
45326 }
45327 else
45328 {
45330 }
45333 {
45335 }
45336 }
45337 else
45338 {
45340 {
45343 {
45345 }
45346 }
45349 {
45351 }
45353 {
45355 }
45357 {
45359 }
45361 {
45363 }
45366 {
45368 }
45370 {
45372 }
45374 {
45376 }
45378 {
45380 }
45381 }
45385 {
45386 spriteBatch.Draw(
TextureAssets.
Logo3.Value,
new Vector2(
screenWidth / 2, 100f),
new Microsoft.
Xna.
Framework.
Rectangle(0, 0,
TextureAssets.
Logo.Width(),
TextureAssets.
Logo.Height()),
color2,
logoRotation,
new Vector2(
TextureAssets.
Logo.Width() / 2,
TextureAssets.
Logo.Height() / 2),
logoScale,
SpriteEffects.None, 0f);
45387 spriteBatch.Draw(
TextureAssets.
Logo4.Value,
new Vector2(
screenWidth / 2, 100f),
new Microsoft.
Xna.
Framework.
Rectangle(0, 0,
TextureAssets.
Logo.Width(),
TextureAssets.
Logo.Height()),
color3,
logoRotation,
new Vector2(
TextureAssets.
Logo.Width() / 2,
TextureAssets.
Logo.Height() / 2),
logoScale,
SpriteEffects.None, 0f);
45388 }
45389 else
45390 {
45391 spriteBatch.Draw(
TextureAssets.
Logo.Value,
new Vector2(
screenWidth / 2, 100f),
new Microsoft.
Xna.
Framework.
Rectangle(0, 0,
TextureAssets.
Logo.Width(),
TextureAssets.
Logo.Height()),
color2,
logoRotation,
new Vector2(
TextureAssets.
Logo.Width() / 2,
TextureAssets.
Logo.Height() / 2),
logoScale,
SpriteEffects.None, 0f);
45392 spriteBatch.Draw(
TextureAssets.
Logo2.Value,
new Vector2(
screenWidth / 2, 100f),
new Microsoft.
Xna.
Framework.
Rectangle(0, 0,
TextureAssets.
Logo.Width(),
TextureAssets.
Logo.Height()),
color3,
logoRotation,
new Vector2(
TextureAssets.
Logo.Width() / 2,
TextureAssets.
Logo.Height() / 2),
logoScale,
SpriteEffects.None, 0f);
45393 }
45395 {
45398 {
45400 }
45403 {
45405 }
45406 }
45407 else
45408 {
45411 {
45413 }
45416 {
45419 }
45420 }
45428 bool flag = false;
45429 bool flag2 =
false;
45430 bool flag3 =
false;
45440 bool flag4 =
false;
45443 {
45449 }
45452 {
45454 }
45455 if (Program.LoadedEverything)
45456 {
45457 GamepadMainMenuHandler.CanRun = true;
45458 }
45460 {
45461 array9[0] = Lang.menu[102].Value;
45487 for (
int j = 0;
j <
num5;
j++)
45488 {
45490 }
45493 {
45499 }
45500 }
45502 {
45503 array9[0] = Lang.menu[102].Value;
45514 array9[10] = Lang.menu[5].Value;
45517 {
45521 }
45523 {
45528 }
45533 for (
int k = 0;
k <
num5;
k++)
45534 {
45536 }
45539 }
45541 {
45543 for (
int l = 0;
l < 8;
l++)
45544 {
45546 {
45547 continue;
45548 }
45549 try
45550 {
45551 array9[
l] = Netplay.Clients[
l].StatusText;
45552 if (Netplay.Clients[
l].IsActive &&
showSpam)
45553 {
45556 }
45557 }
45558 catch
45559 {
45561 }
45564 {
45566 }
45567 }
45569 {
45570 array9[0] = Lang.menu[0].Value;
45571 array9[1] = Lang.menu[1].Value + Netplay.ListenPort +
".";
45572 }
45580 array9[10] = Lang.menu[2].Value;
45582 {
45584 Netplay.Disconnect = true;
45586 }
45587 }
45589 {
45591 {
45596 }
45598 PlayerInput.WritingText = true;
45600 Netplay.ServerPassword =
GetInputText(Netplay.ServerPassword);
45602 {
45604 }
45605 array9[0] = Lang.menu[3].Value;
45608 {
45610 {
45612 }
45613 else
45614 {
45616 }
45618 }
45619 array9[1] = Netplay.ServerPassword;
45621 {
45623 for (
int m = 0;
m < Netplay.ServerPassword.Length;
m++)
45624 {
45626 }
45627 }
45629 {
45632 }
45633 else
45634 {
45636 }
45641 array9[2] = Lang.menu[4].Value;
45642 array9[3] = Lang.menu[5].Value;
45645 {
45648 }
45650 {
45652 }
45653 }
45655 {
45664 array9[1] = Lang.menu[6].Value;
45668 {
45670 Netplay.InvalidateAllOngoingIPSetAttempts();
45671 Netplay.Disconnect = true;
45672 Netplay.Connection.Socket.Close();
45677 {
45678 try
45679 {
45682 }
45683 catch
45684 {
45685 }
45686 }
45687 }
45688 }
45690 {
45695 array9[1] = Lang.menu[6].Value;
45697 {
45703 {
45705 }
45706 }
45707 }
45709 {
45711 {
45716 }
45718 PlayerInput.WritingText = true;
45720 Netplay.ServerPassword =
GetInputText(Netplay.ServerPassword);
45722 {
45724 }
45725 array9[0] = Lang.menu[7].Value;
45728 {
45730 {
45732 }
45733 else
45734 {
45736 }
45738 }
45739 array9[1] = Netplay.ServerPassword;
45741 {
45743 for (
int n = 0;
n < Netplay.ServerPassword.Length;
n++)
45744 {
45746 }
45747 }
45749 {
45752 }
45753 else
45754 {
45756 }
45761 array9[2] = Lang.menu[4].Value;
45762 array9[3] = Lang.menu[5].Value;
45765 {
45768 }
45770 {
45772 }
45773 }
45775 {
45784 array9[0] = Lang.menu[135].Value;
45785 array9[4] = Lang.menu[144].Value;
45786 array9[5] = Lang.menu[5].Value;
45789 {
45793 array9[1] = Lang.menu[136].Value;
45796 }
45797 else
45798 {
45799 array9[1] = Lang.menu[137].Value;
45801 {
45802 array9[2] = Lang.menu[139].Value;
45804 {
45805 array9[3] = Lang.menu[143].Value;
45806 }
45807 else
45808 {
45809 array9[3] = Lang.menu[142].Value;
45810 }
45811 }
45812 else
45813 {
45814 array9[2] = Lang.menu[138].Value;
45816 {
45817 array9[3] = Lang.menu[141].Value;
45818 }
45819 else
45820 {
45821 array9[3] = Lang.menu[140].Value;
45822 }
45823 }
45824 }
45826 {
45829 }
45831 {
45832 case 1:
45835 break;
45836 case 2:
45839 break;
45840 case 3:
45843 break;
45844 case 4:
45846 Netplay.ServerPassword = "";
45851 break;
45852 case 5:
45855 break;
45856 }
45857 }
45859 {
45865 array9[1] = Lang.menu[5].Value;
45867 {
45869 Netplay.Disconnect = true;
45873 }
45874 }
45876 {
45878 array9[0] = Lang.menu[9].Value;
45883 array9[1] = Lang.menu[10].Value;
45884 array9[2] = Lang.menu[6].Value;
45886 {
45888 {
45894 }
45895 else
45896 {
45900 }
45901 }
45903 {
45908 }
45909 }
45911 {
45913 array9[0] = Lang.menu[9].Value;
45919 array9[1] = Lang.menu[11].Value;
45920 array9[2] = Lang.menu[5].Value;
45922 {
45927 }
45928 }
45930 {
45937 }
45939 {
45944 }
45946 {
45949 DD2Event.Ongoing = false;
45964 {
45968 }
45972 {
45975 }
45979 {
45983 }
45986 {
45989 {
45995 }
45996 }
45997 else
45998 {
46001 {
46004 }
46005 }
46009 {
46012 }
46016 {
46020 }
46024 {
46026 }
46028 }
46030 {
46032 }
46034 {
46037 {
46041 }
46043 {
46047 }
46049 {
46053 }
46055 {
46058 }
46059 array9[0] = Lang.menu[18].Value;
46060 array9[1] = Lang.menu[19].Value;
46061 array9[2] = Lang.menu[20].Value;
46062 array9[3] = Lang.menu[21].Value;
46065 {
46067 {
46069 }
46070 else
46071 {
46073 }
46074 }
46082 {
46083 array9[4] = Lang.menu[22].Value;
46084 }
46085 else
46086 {
46087 array9[4] = Lang.menu[23].Value;
46088 }
46090 {
46092 {
46094 PendingPlayer.Male = false;
46095 }
46096 else
46097 {
46099 PendingPlayer.Male = true;
46100 }
46101 }
46103 {
46104 array9[5] = Lang.menu[24].Value;
46106 }
46108 {
46109 array9[5] = Lang.menu[25].Value;
46111 }
46112 else
46113 {
46114 array9[5] = Lang.menu[26].Value;
46115 }
46117 {
46120 }
46122 {
46124 PendingPlayer.hair =
rand.Next(51);
46127 {
46129 }
46131 PendingPlayer.pantsColor =
randColor();
46132 PendingPlayer.shirtColor =
randColor();
46135 float num13 = (float)
rand.Next(60, 120) * 0.01f;
46137 {
46139 }
46140 PendingPlayer.skinColor.R = (byte)((
float)
rand.Next(240, 255) *
num13);
46141 PendingPlayer.skinColor.G = (byte)((
float)
rand.Next(110, 140) *
num13);
46142 PendingPlayer.skinColor.B = (byte)((
float)
rand.Next(75, 110) *
num13);
46143 PendingPlayer.underShirtColor =
randColor();
46144 int num14 = PendingPlayer.hair + 1;
46146 {
46147 PendingPlayer.Male = false;
46148 }
46149 else
46150 {
46151 PendingPlayer.Male = true;
46152 }
46154 }
46155 array9[7] = Lang.menu[27].Value;
46156 array9[6] = Lang.menu[28].Value;
46157 array9[8] = Lang.menu[5].Value;
46160 {
46164 }
46166 {
46168 PendingPlayer.name = "";
46171 }
46172 }
46174 {
46176 {
46177 array9[0] = Lang.menu[29].Value;
46178 }
46180 {
46181 array9[0] = Lang.menu[30].Value;
46182 }
46184 {
46185 array9[0] = Lang.menu[31].Value;
46186 }
46187 else
46188 {
46189 array9[0] = Lang.menu[32].Value;
46190 }
46196 array9[1] = Lang.menu[26].Value;
46197 array9[2] = Lang.menu[25].Value;
46199 array9[3] = Lang.menu[24].Value;
46203 {
46204 PendingPlayer.difficulty = 0;
46206 }
46208 {
46210 PendingPlayer.difficulty = 1;
46211 }
46213 {
46214 PendingPlayer.difficulty = 2;
46216 }
46217 }
46219 {
46222 {
46226 }
46228 {
46232 }
46234 {
46238 }
46240 {
46244 }
46246 {
46250 }
46252 {
46255 }
46261 array9[0] = Lang.menu[33].Value;
46262 array9[1] = Lang.menu[34].Value;
46263 array9[2] = Lang.menu[35].Value;
46264 array9[3] = Lang.menu[36].Value;
46265 array9[4] = Lang.menu[127].Value;
46266 array9[5] = Lang.menu[5].Value;
46268 }
46270 {
46274 flag = true;
46278 PendingPlayer.hairColor =
selColor;
46280 array9[0] = Lang.menu[37].Value +
" " + (PendingPlayer.hair + 1);
46281 array9[1] = Lang.menu[38].Value;
46285 array9[2] = Lang.menu[5].Value;
46288 {
46289 UILinkPointNavigator.Shortcuts.OPTIONS_BUTTON_SPECIALFEATURE = 9;
46290 }
46292 {
46296 {
46297 PendingPlayer.hair = 0;
46298 }
46299 }
46301 {
46305 {
46306 PendingPlayer.hair =
num15 - 1;
46307 }
46308 }
46310 {
46314 }
46315 }
46317 {
46321 flag = true;
46325 PendingPlayer.eyeColor =
selColor;
46328 array9[1] = Lang.menu[39].Value;
46332 array9[2] = Lang.menu[5].Value;
46334 {
46338 }
46339 }
46341 {
46345 flag = true;
46349 PendingPlayer.skinColor =
selColor;
46352 array9[1] = Lang.menu[40].Value;
46356 array9[2] = Lang.menu[5].Value;
46358 {
46362 }
46363 }
46365 {
46369 flag = true;
46373 PendingPlayer.shirtColor =
selColor;
46376 array9[1] = Lang.menu[41].Value;
46380 array9[2] = Lang.menu[5].Value;
46382 {
46386 }
46387 }
46389 {
46393 flag = true;
46397 PendingPlayer.underShirtColor =
selColor;
46400 array9[1] = Lang.menu[42].Value;
46404 array9[2] = Lang.menu[5].Value;
46406 {
46410 }
46411 }
46413 {
46417 flag = true;
46421 PendingPlayer.pantsColor =
selColor;
46424 array9[1] = Lang.menu[43].Value;
46428 array9[2] = Lang.menu[5].Value;
46430 {
46434 }
46435 }
46437 {
46441 flag = true;
46445 PendingPlayer.shoeColor =
selColor;
46448 array9[1] = Lang.menu[44].Value;
46452 array9[2] = Lang.menu[5].Value;
46454 {
46458 }
46459 }
46461 {
46466 }
46468 {
46470 {
46473 array9[1] = Lang.menu[104].Value;
46474 array9[2] = Lang.menu[105].Value;
46477 {
46481 }
46483 {
46487 }
46488 }
46490 {
46493 }
46495 {
46505 {
46507 }
46509 {
46511 }
46513 {
46515 }
46516 array9[0] = Lang.menu[32].Value;
46525 {
46530 {
46532 }
46533 }
46535 {
46540 {
46542 }
46543 }
46545 {
46550 {
46552 }
46553 }
46555 {
46559 }
46561 }
46563 {
46577 {
46578 WorldGen.WorldGenParam_Evil = 0;
46581 }
46585 {
46586 WorldGen.WorldGenParam_Evil = 1;
46589 }
46593 {
46594 WorldGen.WorldGenParam_Evil = -1;
46597 }
46601 {
46605 }
46608 }
46610 {
46613 }
46615 {
46618 }
46620 {
46626 {
46628 }
46629 array9[7] = Lang.menu[5].Value;
46631 {
46633 {
46636 {
46638 }
46640 {
46642 }
46643 }
46644 else
46645 {
46647 }
46648 }
46650 {
46656 }
46658 {
46663 }
46665 {
46669 {
46671 }
46672 }
46674 {
46678 {
46680 }
46681 }
46683 {
46687 }
46689 {
46693 }
46694 }
46696 {
46699 array9[1] = Lang.menu[104].Value;
46700 array9[2] = Lang.menu[105].Value;
46703 {
46707 }
46709 {
46712 }
46713 }
46715 {
46719 array9[0] = Lang.menu[5].Value;
46721 {
46725 }
46726 }
46728 {
46734 {
46736 }
46740 {
46743 }
46747 {
46750 }
46754 {
46757 }
46761 {
46764 }
46768 {
46771 }
46775 {
46778 }
46782 {
46785 }
46789 {
46794 }
46795 }
46797 {
46803 {
46805 }
46808 {
46810 }
46811 else
46812 {
46814 }
46816 {
46819 {
46821 }
46822 else
46823 {
46825 }
46826 }
46829 {
46831 }
46832 else
46833 {
46835 }
46837 {
46840 {
46842 }
46843 else
46844 {
46846 }
46847 }
46850 {
46852 }
46853 else
46854 {
46856 }
46858 {
46861 {
46863 }
46864 else
46865 {
46867 }
46868 }
46872 {
46875 }
46879 {
46883 }
46884 }
46886 {
46892 {
46894 }
46897 {
46899 }
46900 else
46901 {
46903 }
46905 {
46908 {
46910 }
46911 else
46912 {
46914 }
46915 }
46919 {
46923 {
46925 }
46926 }
46930 {
46933 }
46935 array9[
num24] = (ItemSlot.Options.HighlightNewItems ? Lang.inter[117].Value : Lang.inter[116].Value);
46937 {
46940 }
46944 {
46947 }
46951 {
46954 }
46959 {
46961 }
46967 {
46969 }
46973 {
46975 }
46979 {
46983 }
46984 }
46986 {
46991 {
46994 }
46998 {
47001 }
47005 {
47008 }
47012 {
47014 Lighting.NextLightMode();
47015 }
47018 {
47019 case 0:
47021 break;
47022 case 1:
47024 break;
47025 case 2:
47027 break;
47028 default:
47030 break;
47031 }
47033 {
47036 {
47038 }
47039 }
47043 {
47046 }
47048 array9[
num25] = (ChildSafety.Disabled ? Lang.menu[132].Value : Lang.menu[133].Value);
47050 {
47053 }
47057 {
47060 }
47064 {
47067 }
47071 {
47074 }
47080 {
47085 }
47090 {
47092 }
47093 }
47095 {
47108 {
47113 });
47115 array9[5] = Lang.menu[5].Value;
47117 {
47119 }
47121 {
47123 }
47125 {
47127 }
47129 {
47133 }
47134 }
47136 {
47138 {
47140 }
47146 {
47150 {
47152 {
47154 break;
47155 }
47156 }
47160 }
47163 {
47166 {
47169 }
47171 }
47172 array9[
num30] = (graphics.IsFullScreen ? Lang.menu[49].Value : Lang.menu[50].Value);
47174 {
47176 }
47181 {
47183 {
47187 }
47190 }
47195 {
47202 }
47205 }
47207 {
47213 {
47215 }
47219 {
47224 }
47228 {
47233 }
47237 {
47240 }
47242 array9[
num34] = (Player.SmartCursorSettings.SmartAxeAfterPickaxe ? Lang.menu[214].Value : Lang.menu[213].Value);
47244 {
47246 Player.SmartCursorSettings.SmartAxeAfterPickaxe = !
Player.SmartCursorSettings.SmartAxeAfterPickaxe;
47247 }
47249 array9[
num34] = (Player.SmartCursorSettings.SmartBlocksEnabled ? Lang.menu[215].Value : Lang.menu[216].Value);
47251 {
47253 Player.SmartCursorSettings.SmartBlocksEnabled = !
Player.SmartCursorSettings.SmartBlocksEnabled;
47254 }
47257 {
47260 break;
47263 break;
47266 break;
47267 }
47269 {
47272 }
47276 {
47280 }
47281 }
47283 {
47284 flag = true;
47292 array9[1] = Lang.menu[64].Value;
47296 array9[2] = Lang.menu[5].Value;
47298 {
47302 }
47303 }
47305 {
47306 flag = true;
47314 array9[1] = Lang.menu[217].Value;
47318 array9[2] = Lang.menu[5].Value;
47320 {
47324 }
47325 }
47327 {
47333 array9[1] = Lang.menu[65].Value;
47337 array9[2] = Lang.menu[5].Value;
47339 {
47343 }
47344 }
47346 {
47353 array9[1] = Lang.menu[52].Value;
47357 array9[2] = Lang.menu[5].Value;
47359 {
47363 }
47364 }
47366 {
47370 string[]
array10 =
new string[12]
47371 {
47372 cMapStyle,
cMapFull,
cMapZoomIn,
cMapZoomOut,
cMapAlphaUp,
cMapAlphaDown,
null,
null,
null,
null,
47373 null, null
47374 };
47376 {
47378 }
47386 {
47390 }
47394 array9[6] = Lang.menu[86].Value;
47396 array9[7] = Lang.menu[5].Value;
47398 {
47402 }
47404 {
47413 }
47415 {
47417 }
47419 {
47422 {
47424 if (
text !=
"None")
47425 {
47427 {
47429 }
47431 {
47433 }
47435 {
47437 }
47439 {
47441 }
47443 {
47445 }
47447 {
47449 }
47451 }
47452 }
47453 }
47454 }
47456 {
47460 string[]
array11 =
new string[14]
47461 {
47462 cUp,
cDown,
cLeft,
cRight,
cJump,
cThrowItem,
cInv,
cHeal,
cMana,
cBuff,
47464 };
47466 {
47468 }
47484 {
47488 }
47491 array9[14] = Lang.menu[86].Value;
47494 array9[15] = Lang.menu[5].Value;
47496 {
47500 }
47502 {
47506 }
47508 {
47510 }
47512 {
47515 {
47517 if (
text2 !=
"None")
47518 {
47520 {
47522 }
47524 {
47526 }
47528 {
47530 }
47532 {
47534 }
47536 {
47538 }
47540 {
47542 }
47544 {
47546 }
47548 {
47550 }
47552 {
47554 }
47556 {
47558 }
47560 {
47562 }
47564 {
47566 }
47568 {
47570 }
47572 {
47574 }
47576 }
47577 }
47578 }
47579 }
47581 {
47587 {
47589 }
47593 {
47596 }
47599 {
47601 }
47602 else
47603 {
47604 array9[
num38] = (ItemSlot.Options.DisableLeftShiftTrashCan ? Lang.menu[224].Value : Lang.menu[223].Value);
47605 }
47607 {
47610 {
47611 ItemSlot.Options.DisableQuickTrash = false;
47612 ItemSlot.Options.DisableLeftShiftTrashCan = true;
47613 }
47615 {
47616 ItemSlot.Options.DisableLeftShiftTrashCan = false;
47617 }
47618 else
47619 {
47620 ItemSlot.Options.DisableQuickTrash = true;
47621 ItemSlot.Options.DisableLeftShiftTrashCan = false;
47622 }
47623 }
47627 {
47631 }
47635 {
47639 }
47640 }
47642 {
47643 int num39 = ((SocialAPI.Network !=
null) ? 1 : 0);
47645 array9[0] = Lang.menu[(SocialAPI.Network !=
null) ? 146 : 87].
Value;
47646 array9[1] = Lang.menu[145].Value;
47650 {
47656 }
47658 {
47665 }
47667 {
47670 }
47672 {
47676 }
47678 }
47680 {
47682 {
47686 array9[
num40] = Lang.menu[89].Value.Replace(
":",
"");
47688 {
47692 }
47697 {
47699 {
47701 }
47702 else
47703 {
47706 }
47710 {
47717 }
47719 }
47723 {
47727 }
47730 }
47731 else
47732 {
47734 PlayerInput.WritingText = true;
47738 {
47740 }
47744 array9[0] = Lang.menu[89].Value;
47749 {
47752 }
47753 else
47754 {
47756 }
47759 array9[9] = Lang.menu[4].Value;
47762 {
47763 if (
getIP.Substring(0, 1) ==
" ")
47764 {
47766 }
47768 {
47770 {
47772 }
47773 }
47774 }
47776 array9[10] = Lang.menu[5].Value;
47778 {
47781 {
47783 }
47784 else
47785 {
47788 }
47791 }
47793 {
47801 }
47803 {
47807 }
47809 {
47811 }
47814 {
47816 {
47818 }
47819 else
47820 {
47822 }
47824 }
47825 }
47826 }
47828 {
47830 {
47836 }
47838 PlayerInput.WritingText = true;
47843 {
47845 }
47846 array9[0] = Lang.menu[90].Value;
47849 {
47850 bool flag7 =
false;
47851 try
47852 {
47855 {
47857 }
47858 }
47859 catch
47860 {
47861 }
47863 {
47865 }
47866 }
47869 {
47871 {
47873 }
47874 else
47875 {
47877 }
47879 }
47882 {
47885 }
47886 else
47887 {
47889 }
47894 array9[2] = Lang.menu[4].Value;
47895 array9[3] = Lang.menu[5].Value;
47898 {
47902 }
47904 {
47906 }
47907 }
47909 {
47916 array9[0] = Lang.menu[91].Value;
47918 array9[1] = Lang.menu[92].Value;
47919 array9[2] = Lang.menu[93].Value;
47920 array9[3] = Lang.menu[94].Value;
47921 array9[4] = Lang.menu[5].Value;
47924 {
47928 }
47930 {
47932 {
47935 }
47937 {
47940 }
47941 else
47942 {
47945 }
47950 }
47951 }
47953 {
47959 array9[1] = Lang.menu[5].Value;
47961 {
47966 }
47967 }
47969 {
47977 {
47979 }
47980 array9[1] = Lang.menu[5].Value;
47982 {
47986 {
47988 }
47990 {
47992 }
47993 else
47994 {
47998 }
47999 }
48000 }
48001 }
48003 {
48005 {
48007 }
48008 }
48009 else
48010 {
48012 }
48014 {
48015 UILinkPointNavigator.Shortcuts.BackButtonLock = true;
48016 }
48019 {
48021 {
48023 }
48028 {
48030 mouseX = (
mouseY = (PlayerInput.MouseX = (PlayerInput.MouseY = 0)));
48031 }
48033 {
48035 }
48036 }
48038 {
48040 }
48045 if (!flag)
48046 {
48052 }
48053 if (flag)
48054 {
48056 {
48059 }
48069 float num55 = (float)(
int)selColor.A / 255f;
48071 {
48076 }
48077 else
48078 {
48083 }
48086 {
48088 }
48091 {
48093 UILinkPointNavigator.Shortcuts.OPTIONS_BUTTON_SPECIALFEATURE = 5;
48095 {
48100 {
48102 }
48104 {
48106 }
48108 }
48109 }
48114 {
48118 }
48120 {
48122 }
48125 {
48127 UILinkPointNavigator.Shortcuts.OPTIONS_BUTTON_SPECIALFEATURE = 6;
48129 {
48134 {
48136 }
48138 {
48140 }
48142 }
48143 }
48147 float num57 = 0.15f;
48149 {
48151 }
48153 {
48157 }
48159 {
48161 }
48164 {
48166 UILinkPointNavigator.Shortcuts.OPTIONS_BUTTON_SPECIALFEATURE = 7;
48168 {
48173 {
48175 }
48177 {
48179 }
48181 }
48182 }
48184 bool flag9 =
false;
48186 {
48192 {
48196 }
48198 {
48200 }
48203 {
48205 UILinkPointNavigator.Shortcuts.OPTIONS_BUTTON_SPECIALFEATURE = 8;
48207 {
48212 {
48214 }
48216 {
48218 }
48220 }
48221 }
48223 }
48225 {
48227 }
48230 {
48231 selColor.A = (byte)(
aBar * 255f);
48232 }
48233 }
48234 else if (flag)
48235 {
48238 {
48242 {
48243 text5 = Lang.menu[95].Value;
48244 }
48246 {
48247 text5 = Lang.menu[96].Value;
48249 }
48251 {
48252 text5 = Lang.menu[97].Value;
48254 }
48256 {
48259 }
48261 {
48265 }
48267 {
48271 }
48273 {
48276 {
48278 color8.R = (byte)((255 +
color8.R) / 2);
48279 color8.G = (byte)((255 +
color8.R) / 2);
48280 color8.B = (byte)((255 +
color8.R) / 2);
48281 }
48285 {
48287 }
48292 {
48294 }
48296 {
48298 }
48300 {
48302 }
48304 {
48306 }
48307 DynamicSpriteFontExtensionMethods.
DrawString(
spriteBatch,
FontAssets.
DeathText.Value,
text5,
new Vector2(
num63 +
num67,
num62 +
num68),
color8, 0f,
default(
Vector2), 0.5f,
SpriteEffects.None, 0f);
48308 }
48309 }
48312 {
48314 {
48317 float num73 = 0.9f;
48319 {
48322 }
48323 else
48324 {
48326 }
48329 {
48331 }
48335 {
48337 {
48339 }
48344 {
48346 {
48348 {
48350 }
48351 else
48352 {
48354 }
48357 {
48360 {
48362 }
48363 }
48365 {
48367 }
48369 {
48371 }
48373 {
48375 }
48376 }
48378 }
48379 else
48380 {
48382 }
48383 }
48385 {
48388 {
48390 color9.R = (byte)((255 +
color9.R) / 2);
48391 color9.G = (byte)((255 +
color9.R) / 2);
48392 color9.B = (byte)((255 +
color9.R) / 2);
48393 }
48396 {
48398 }
48403 {
48405 }
48407 {
48409 }
48411 {
48413 }
48415 {
48417 }
48418 DynamicSpriteFontExtensionMethods.
DrawString(
spriteBatch,
FontAssets.
DeathText.Value,
text5,
new Vector2(
num72 +
num78,
num71 +
num79),
color9, 0f,
default(
Vector2),
num73,
SpriteEffects.None, 0f);
48419 }
48420 }
48421 }
48423 {
48426 }
48427 }
48429 {
48434 {
48438 {
48439 case 0:
48440 text6 = Lang.menu[98].Value;
48442 break;
48443 case 1:
48444 text6 = Lang.menu[99].Value;
48445 break;
48446 case 2:
48447 text6 = Lang.menu[119].Value;
48449 break;
48450 case 3:
48453 break;
48454 case 4:
48458 break;
48459 case 5:
48463 break;
48464 }
48466 color10.R = (byte)((255 +
color10.R) / 2);
48467 color10.G = (byte)((255 +
color10.R) / 2);
48468 color10.B = (byte)((255 +
color10.R) / 2);
48472 {
48474 }
48475 Utils.DrawBorderStringFourWay(
textColor:
new Microsoft.Xna.Framework.
Color((byte)
num85, (byte)
num85, (byte)
num85, (byte)
num84), sb:
spriteBatch,
font:
FontAssets.DeathText.
Value,
text:
text6, x:
num83, y:
num82,
borderColor:
Microsoft.Xna.Framework.
Color.
Black, origin:
Vector2.
Zero, scale: 0.5f);
48476 }
48477 int rightHover = IngameOptions.rightHover;
48478 IngameOptions.rightHover = -1;
48480 {
48481 IngameOptions.rightLock = -1;
48482 }
48483 IngameOptions.valuePosition =
new Vector2(x,
num80 - 18 + 30);
48486 if (IngameOptions.inBar || IngameOptions.rightLock == 3)
48487 {
48488 UILinkPointNavigator.Shortcuts.OPTIONS_BUTTON_SPECIALFEATURE = 2;
48489 IngameOptions.rightHover = 3;
48490 if (
flag8 && IngameOptions.rightLock == 3)
48491 {
48493 }
48494 }
48495 IngameOptions.valuePosition =
new Vector2(x,
num80 - 18 + 60);
48498 if (IngameOptions.inBar || IngameOptions.rightLock == 2)
48499 {
48500 UILinkPointNavigator.Shortcuts.OPTIONS_BUTTON_SPECIALFEATURE = 3;
48501 IngameOptions.rightHover = 2;
48502 if (
flag8 && IngameOptions.rightLock == 2)
48503 {
48505 }
48506 }
48507 IngameOptions.valuePosition =
new Vector2(x,
num80 - 18 + 90);
48510 if (IngameOptions.inBar || IngameOptions.rightLock == 4)
48511 {
48512 UILinkPointNavigator.Shortcuts.OPTIONS_BUTTON_SPECIALFEATURE = 4;
48513 IngameOptions.rightHover = 4;
48514 if (
flag8 && IngameOptions.rightLock == 4)
48515 {
48517 }
48518 }
48519 if (IngameOptions.rightHover != -1)
48520 {
48521 IngameOptions.rightLock = IngameOptions.rightHover;
48522 }
48523 if (IngameOptions.rightHover != rightHover)
48524 {
48526 }
48527 }
48529 {
48533 {
48537 {
48539 }
48541 {
48544 {
48546 color11.R = (byte)((255 +
color11.R) / 2);
48547 color11.G = (byte)((255 +
color11.R) / 2);
48548 color11.B = (byte)((255 +
color11.R) / 2);
48549 }
48553 {
48555 }
48560 {
48562 }
48564 {
48566 }
48568 {
48570 }
48572 {
48574 }
48575 DynamicSpriteFontExtensionMethods.
DrawString(
spriteBatch,
FontAssets.
DeathText.Value,
text7,
new Vector2(
num92 +
num96,
num91 +
num97),
color11, 0f,
default(
Vector2), 0.5f,
SpriteEffects.None, 0f);
48576 }
48577 }
48578 IngameOptions.rightHover = -1;
48580 {
48581 IngameOptions.rightLock = -1;
48582 }
48586 if (IngameOptions.inBar || IngameOptions.rightLock == 2)
48587 {
48588 UILinkPointNavigator.Shortcuts.OPTIONS_BUTTON_SPECIALFEATURE = 1;
48589 IngameOptions.rightHover = 2;
48590 if (
flag8 && IngameOptions.rightLock == 2)
48591 {
48594 }
48595 }
48596 if (IngameOptions.rightHover != -1)
48597 {
48598 IngameOptions.rightLock = IngameOptions.rightHover;
48599 }
48600 }
48603 {
48605 {
48606 continue;
48607 }
48609 vector3.X *= 0.5f;
48610 vector3.Y *= 0.5f;
48612 {
48615 {
48617 {
48618 case 0:
48620 break;
48621 case 1:
48623 break;
48624 case 2:
48626 break;
48627 case 3:
48629 break;
48630 case 4:
48631 case 5:
48632 case 6:
48634 break;
48635 default:
48637 break;
48638 }
48639 color12.R = (byte)((255 +
color12.R) / 2);
48640 color12.G = (byte)((255 +
color12.G) / 2);
48641 color12.B = (byte)((255 +
color12.B) / 2);
48642 }
48645 {
48647 }
48650 {
48652 }
48655 {
48657 }
48660 {
48662 }
48664 {
48669 }
48672 {
48674 {
48679 }
48680 else
48681 {
48683 }
48684 }
48688 {
48690 }
48692 {
48694 }
48696 {
48698 }
48700 {
48702 }
48705 {
48707 }
48709 {
48711 }
48713 {
48715 }
48718 {
48719 DynamicSpriteFontExtensionMethods.
DrawString(
spriteBatch,
FontAssets.
DeathText.Value,
array9[
num99],
new Vector2(
num3 +
num106 +
array5[
num99], (
float)(
num2 +
num4 *
num99 +
num107) +
vector3.Y *
array7[
num99] + (
float)
array4[
num99]),
color12, 0f,
vector3,
num108,
SpriteEffects.None, 0f);
48720 }
48721 else
48722 {
48723 DynamicSpriteFontExtensionMethods.
DrawString(
spriteBatch,
FontAssets.
DeathText.Value,
array9[
num99],
new Vector2(
num3 +
num106 +
array5[
num99], (
float)(
num2 +
num4 *
num99 +
num107) +
vector3.Y *
array7[
num99] + (
float)
array4[
num99]),
color12, 0f,
new Vector2(0f,
vector3.Y),
num108,
SpriteEffects.None, 0f);
48724 }
48725 }
48727 {
48729 }
48731 {
48736 {
48737 continue;
48738 }
48741 {
48743 continue;
48744 }
48746 {
48748 }
48750 {
48752 }
48754 {
48756 }
48757 continue;
48758 }
48761 {
48762 continue;
48763 }
48766 {
48768 continue;
48769 }
48771 {
48773 }
48775 {
48777 }
48779 {
48781 }
48782 }
48784 {
48786 }
48788 {
48791 }
48793 {
48795 {
48797 {
48799 }
48801 {
48803 }
48804 }
48806 {
48808 }
48809 }
48811 {
48821 }
48824 {
48827 }
48829 {
48832 }
48840 {
48846 {
48848 }
48852 }
48855 {
48857 }
48858 else
48859 {
48861 }
48863 {
48865 }
48866 else
48867 {
48869 }
48871 {
48872 GamepadMainMenuHandler.LastDrew = num;
48873 }
48874 }
static readonly BlendState AlphaBlend
static readonly DepthStencilState None
static readonly RasterizerState CullCounterClockwise
static readonly SamplerState PointClamp
static void DrawString(this SpriteBatch spriteBatch, DynamicSpriteFont spriteFont, string text, Vector2 position, Color color)
static int ToInt32(object? value)
static double Cos(double d)
static decimal Round(decimal d)
static double Sin(double a)
static void PlaySound(int type, Vector2 position, int style=1)
static Asset< DynamicSpriteFont > DeathText
static Asset< Texture2D > ColorHighlight
static Asset< Texture2D > Logo3
static Asset< Texture2D > Fade
static Asset< Texture2D > Hue
static Asset< Texture2D > ColorSlider
static Asset< Texture2D > ColorBlip
static Asset< Texture2D > Logo
static Asset< Texture2D > Logo2
static Asset< Texture2D > ColorBar
static Asset< Texture2D > Logo4
static void ToggleShowText()
void Draw(SpriteBatch spriteBatch)
static SkyManager Instance
static readonly int Count
static LanguageManager Instance
static LocalizedText GetText(string key)
static string GetTextValue(string key)
static SceneMetrics SceneMetrics
float logoRotationDirection
static bool SettingsUnlock_WorldEvil
static string GetInputText(string oldString, bool allowMultiLine=false)
static GameTipsDisplay gameTips
static bool InvisibleCursorForGamepad
static void OnSubmitServerIP(string inputText)
static int selectedPlayer
static List< WorldFileData > WorldList
Microsoft.Xna.Framework.Color randColor()
static bool UseHeatDistortion
static bool drawingPlayerChat
static ColorSlidersSet mouseBorderColorSlider
static void DrawVersionNumber(Microsoft.Xna.Framework.Color menuColor, float upBump)
static UIManageControls ManageControlsMenu
static void ClearPendingPlayerSelectCallbacks()
static WorldFileData ActiveWorldFileData
static Microsoft.Xna.Framework.Color hcColor
static bool cSmartCursorModeIsToggleAndNotHold
static float ambientVolume
static UIWorldSelect _worldSelectMenu
static void OpenResourcePacksMenu(UIState uiStateToGoBackTo)
static void OnSubmitServerPort(string candidatePort)
static void StartClientGameplay()
static UIAchievementsMenu AchievementsMenu
static SpriteBatch spriteBatch
static UserInterface MenuUI
static double worldSurface
static void ResetKeyBindings()
static void LoadPlayers()
static Microsoft.Xna.Framework.Color highVersionColor
void OnSubmitServerPassword()
static int screenBorderlessPendingResizes
static Microsoft.Xna.Framework.Color tileColor
static int[] displayHeight
static void SetResolution(int width, int height)
static Microsoft.Xna.Framework.Color selColor
static IPlayerRenderer PlayerRenderer
static string cMapAlphaUp
static void ClearVisualPostProcessEffects()
static int PendingResolutionHeight
RejectionMenuInfo RejectionMenuInfo
static bool SettingsEnabled_MinersWobble
static Vector2 screenLastPosition
static bool changeTheTitle
static void EraseWorld(int i)
static PlayerResourceSetsManager ResourceSetsManager
static Vector2 DrawThickCursor(bool smart=false)
static bool mouseLeftRelease
void OnSeedSelected(string text)
static Microsoft.Xna.Framework.Color mcColor
static bool PendingBorderlessState
static IssueReportsIndicator IssueReporterIndicator
static bool UseStormEffects
static bool _blockFancyUIWhileLoading
static string worldPathName
static OnPlayerSelected _pendingCharacterSelect
static Vector2 screenPosition
static void DrawCursor(Vector2 bonus, bool smart=false)
static float MenuXMovement
static void CycleFrameSkipMode()
static bool IsGoodPortAddress(string text)
static void OnSubmitServerPasswordFromRequest()
static byte mouseTextColor
static void StopSlimeRain(bool announce=true)
static bool BackgroundEnabled
static List< PlayerFileData > PlayerList
static Matrix UIScaleMatrix
static Microsoft.Xna.Framework.Color OurFavoriteColor
static bool GameAskedToQuit
static IChatMonitor chatMonitor
static Microsoft.Xna.Framework.Color mouseColor
static bool IsEngineLoaded
static SamplerState SamplerStateForCursor
static void DrawPendingMouseText()
static void DrawSocialMediaButtons(Microsoft.Xna.Framework.Color menuColor, float upBump)
static bool mouseRightRelease
static void OpenCharacterSelectUI()
static bool alreadyGrabbingSunOrMoon
static bool SettingsEnabled_TilesSwayInWind
static Microsoft.Xna.Framework.Color errorColor
static string cMapAlphaDown
static void ErasePlayer(int i)
static UnifiedRandom rand
static int[] displayWidth
static int numDisplayModes
static Vector3 rgbToHsl(Microsoft.Xna.Framework.Color newColor)
static float caveParallax
static bool screenBorderless
static ColorSlidersSet mouseColorSlider
static void ToggleFullScreen()
static void CanceledGivingServerPassword()
void OnWorldNamed(string text)
static int invasionProgressMode
static Action CreateGoToMenuEvent(int menu)
static MinimapFrameManager MinimapFrameManagerInstance
static bool IsBorderlessDisplayAvailable()
static void CycleClothingStyle(Player plr)
static int PendingResolutionWidth
static Microsoft.Xna.Framework.Color hslToRgb(Vector3 hslVector)
static bool placementPreview
static bool ReversedUpDownArmorSetBonuses
static Player PendingPlayer
static string cMapZoomOut
static string[] recentWorld
static bool SaveSettings()
static bool inputTextEnter
static ServerMode MenuServerMode
static bool ServerSideCharacter
static bool GamepadDisableInstructionsDisplay
void OnCharacterNamed(string text)
static void ExitServerPasswordMenu()
static float GlobalTimeWrappedHourly
static GraphicsDeviceManager graphics
static bool MouseShowBuildingGrid
static Microsoft.Xna.Framework.Color MouseBorderColor
static bool menuMultiplayer
static Terraria.Social.Base.NetSocialModule Network
static Terraria.Social.Base.WorkshopSocialModule Workshop
static Terraria.Social.Base.FriendsSocialModule Friends
static List< Vector2 > MenuItemPositions
static bool BackButtonInUse
static bool BackButtonLock
static void SetPosition(int ID, Vector2 Position)
static bool HighlightNewItems
static bool DisableLeftShiftTrashCan
static bool DisableQuickTrash
static UserInterface ActiveInstance
static bool Exists(string path, bool cloud)
static void Move(string source, string destination, bool cloud, bool overwrite=true, bool forceDeleteSourceFile=false)