22 public static float[]
leftScale =
new float[10] { 0.7f, 0.7f, 0.7f, 0.7f, 0.7f, 0.7f, 0.7f, 0.7f, 0.7f, 0.7f };
26 0.7f, 0.7f, 0.7f, 0.7f, 0.7f, 0.7f, 0.7f, 0.7f, 0.7f, 0.7f,
27 0.7f, 0.7f, 0.7f, 0.7f, 0.7f, 0.7f, 0.7f
70 Main.playerInventory =
false;
71 Main.editChest =
false;
72 Main.npcChatText =
"";
74 Main.ingameOptionsWindow =
true;
76 for (
int i = 0; i <
leftScale.Length; i++)
98 Main.ingameOptionsWindow =
false;
101 Main.playerInventory =
true;
190 UILinkPointNavigator.Shortcuts.INGAMEOPTIONS_BUTTONS_LEFT =
num9 + 1;
191 for (
int j = 0;
j <=
num9;
j++)
307 Main.gameMenu =
true;
363 UILinkPointNavigator.Shortcuts.INGAMEOPTIONS_BUTTONS_RIGHT =
num13;
373 vector6.X = vector3.X + vector2.X * 2f / 3f;
420 valuePosition.X = vector3.X + vector2.X - (float)(
num4 / 2) - 20f;
421 valuePosition.Y -= 3f;
428 Main.musicVolume = musicVolume;
441 UILinkPointNavigator.Shortcuts.OPTIONS_BUTTON_SPECIALFEATURE = 2;
452 valuePosition.X = vector3.X + vector2.X - (float)(
num4 / 2) - 20f;
453 valuePosition.Y -= 3f;
460 Main.soundVolume = soundVolume;
474 UILinkPointNavigator.Shortcuts.OPTIONS_BUTTON_SPECIALFEATURE = 3;
485 valuePosition.X = vector3.X + vector2.X - (float)(
num4 / 2) - 20f;
486 valuePosition.Y -= 3f;
493 Main.ambientVolume = ambientVolume;
507 UILinkPointNavigator.Shortcuts.OPTIONS_BUTTON_SPECIALFEATURE = 4;
531 valuePosition.X = vector3.X + vector2.X - (float)(
num4 / 2) - 20f;
532 valuePosition.Y -= 3f;
539 Main.GameZoomTarget =
num15 + 1f;
552 UILinkPointNavigator.Shortcuts.OPTIONS_BUTTON_SPECIALFEATURE = 10;
573 valuePosition.X = vector3.X + vector2.X - (float)(
num4 / 2) - 20f;
574 valuePosition.Y -= 3f;
581 Main.temporaryGUIScaleSlider =
num16 * 1.5f + 0.5f;
582 Main.temporaryGUIScaleSlider = (float)(
int)(Main.temporaryGUIScaleSlider * 100f) / 100f;
583 Main.temporaryGUIScaleSliderUpdate =
true;
590 Main.temporaryGUIScaleSliderUpdate =
false;
592 if ((
float)Main.mouseX > vector3.X + vector2.X * 2f / 3f + (float)
num4 && (
float)Main.mouseX < valuePosition.X + 3.75f && (float)
Main.
mouseY >
valuePosition.Y - 10f && (
float)Main.mouseY <= valuePosition.Y + 10f)
602 UILinkPointNavigator.Shortcuts.OPTIONS_BUTTON_SPECIALFEATURE = 11;
642 DoorOpeningHelper.DoorAutoOpeningPreference.EnabledForGamepadOnly =>
Language.
GetTextValue(
"UI.SmartDoorsGamepad"),
705 Main.invasionProgressMode = 0;
770 valuePosition.X = vector3.X + vector2.X - (float)(
num4 / 2) - 20f;
771 valuePosition.Y -= 3f;
778 Main.MapScale =
num18 * 0.5f + 0.5f;
791 UILinkPointNavigator.Shortcuts.OPTIONS_BUTTON_SPECIALFEATURE = 12;
873 valuePosition.X = vector3.X + vector2.X - (float)(
num4 / 2) - 20f;
874 valuePosition.Y -= 3f;
881 Main.bgScroll = (int)(
num21 * 100f);
895 UILinkPointNavigator.Shortcuts.OPTIONS_BUTTON_SPECIALFEATURE = 1;
968 1 => Language.GetTextValue(
"GameUI.QualityLow"),
969 2 => Language.GetTextValue(
"GameUI.QualityMedium"),
970 3 => Language.GetTextValue(
"GameUI.QualityHigh"),
971 _ => Language.GetTextValue(
"GameUI.QualityOff"),
977 Main.WaveQuality = (Main.WaveQuality + 1) % 4;
1013 valuePosition.X = vector3.X + vector2.X - (float)(
num4 / 2) - 20f;
1014 valuePosition.Y -= 3f;
1015 valuePosition.X -=
num2;
1037 UILinkPointNavigator.Shortcuts.OPTIONS_BUTTON_SPECIALFEATURE = 5;
1049 valuePosition.X = vector3.X + vector2.X - (float)(
num4 / 2) - 20f;
1050 valuePosition.Y -= 3f;
1051 valuePosition.X -=
num2;
1073 UILinkPointNavigator.Shortcuts.OPTIONS_BUTTON_SPECIALFEATURE = 6;
1085 valuePosition.X = vector3.X + vector2.X - (float)(
num4 / 2) - 20f;
1086 valuePosition.Y -= 3f;
1087 valuePosition.X -=
num2;
1096 hSLVector.Z = x * 0.85f + 0.15f;
1110 UILinkPointNavigator.Shortcuts.OPTIONS_BUTTON_SPECIALFEATURE = 7;
1116 hSLVector.Z = 0.15f;
1141 valuePosition.X = vector3.X + vector2.X - (float)(
num4 / 2) - 20f;
1142 valuePosition.Y -= 3f;
1143 valuePosition.X -=
num2;
1165 UILinkPointNavigator.Shortcuts.OPTIONS_BUTTON_SPECIALFEATURE = 5;
1166 Main.menuMode = 252;
1177 valuePosition.X = vector3.X + vector2.X - (float)(
num4 / 2) - 20f;
1178 valuePosition.Y -= 3f;
1179 valuePosition.X -=
num2;
1201 UILinkPointNavigator.Shortcuts.OPTIONS_BUTTON_SPECIALFEATURE = 6;
1202 Main.menuMode = 252;
1213 valuePosition.X = vector3.X + vector2.X - (float)(
num4 / 2) - 20f;
1214 valuePosition.Y -= 3f;
1215 valuePosition.X -=
num2;
1237 UILinkPointNavigator.Shortcuts.OPTIONS_BUTTON_SPECIALFEATURE = 7;
1238 Main.menuMode = 252;
1249 valuePosition.X = vector3.X + vector2.X - (float)(
num4 / 2) - 20f;
1250 valuePosition.Y -= 3f;
1251 valuePosition.X -=
num2;
1274 UILinkPointNavigator.Shortcuts.OPTIONS_BUTTON_SPECIALFEATURE = 8;
1275 Main.menuMode = 252;
1279 Main.mouseBorderColorSlider.Alpha =
num24;
1339 for (
int n = 0;
n <
num9 + 1;
n++)
1356 UILinkPointNavigator.Shortcuts.INGAMEOPTIONS_BUTTONS_RIGHT =
num12;
1359 Main.mouseText =
false;
1371 Main.mouseText =
true;
1373 if (_mouseOverText !=
null)
1377 _mouseOverText =
null;
1386 flag = category ==
value;
1395 if (!_canConsumeHover)
1401 _canConsumeHover =
false;
1417 if (!_canConsumeHover)
1423 _canConsumeHover =
false;
1448 valuePosition.X +=
vector.X;
1449 if (!_canConsumeHover)
1455 _canConsumeHover =
false;
1463 if (colorMethod ==
null)
1469 valuePosition.X -= (int)
vector.X;
1481 rectangle.Inflate((
int)(-5f * scale), 0);
1491 sb.
Draw(
TextureAssets.
ColorSlider.Value,
new Vector2(
num2 + 167f * scale *
perc,
num3 + 4f * scale),
null,
Color.
White, 0f,
new Vector2(0.5f * (
float)
TextureAssets.
ColorSlider.Width(), 0.5f * (
float)
TextureAssets.
ColorSlider.Height()), scale,
SpriteEffects.None, 0f);
void Draw(Texture2D texture, Vector2 position, Color color)
static float Clamp(float value, float min, float max)
bool TryGetValue(TKey key, [MaybeNullWhen(false)] out TValue value)
bool ICollection< KeyValuePair< TKey, TValue > >. Contains(KeyValuePair< TKey, TValue > keyValuePair)
static decimal Round(decimal d)
static void PlaySound(int type, Vector2 position, int style=1)
static Color ColorLerp_HSL_S(float percent)
static Color ColorLerp_HSL_H(float percent)
static Color ColorLerp_HSL_L(float percent)
static Color ColorLerp_HSL_O(float percent)
static DoorAutoOpeningPreference PreferenceSettings
static void CyclePreferences()
DoorAutoOpeningPreference
static Asset< DynamicSpriteFont > ItemStack
static Asset< DynamicSpriteFont > MouseText
static Asset< Texture2D > ColorHighlight
static Asset< Texture2D > ColorSlider
static Asset< Texture2D > ColorBlip
static Asset< Texture2D > ColorBar
static void ToggleShowText()
static bool _canConsumeHover
static float[] rightScale
static bool DrawValue(SpriteBatch sb, string txt, int i, float scale, Color over=default(Color))
static void Draw(Main mainInstance, SpriteBatch sb)
static bool[] skipRightSlot
static Rectangle _GUIHover
static bool DrawRightSide(SpriteBatch sb, string txt, int i, Vector2 anchor, Vector2 offset, float scale, float colorScale, Color over=default(Color))
static float DrawValueBar(SpriteBatch sb, float scale, float perc, int lockState=0, Utils.ColorLerpMethod colorMethod=null)
static string _mouseOverText
static Rectangle GetExpectedRectangleForNotification(int itemIndex, Vector2 anchor, Vector2 offset, int areaWidth)
static Vector2 valuePosition
static bool DrawLeftSide(SpriteBatch sb, string txt, int i, Vector2 anchor, Vector2 offset, float[] scales, float minscale=0.7f, float maxscale=0.8f, float scalespeed=0.01f)
static Dictionary< int, int > _leftSideCategoryMapping
static LocalizedText[] inter
static LocalizedText[] menu
static void NextLightMode()
static GameCulture FromCultureName(CultureName name)
static GameCulture ActiveCulture
static string GetTextValue(string key)
static float temporaryGUIScaleSlider
static bool ingameOptionsWindow
static bool temporaryGUIScaleSliderUpdate
static FrameSkipMode FrameSkipMode
static bool UseHeatDistortion
static ColorSlidersSet mouseBorderColorSlider
static bool cSmartCursorModeIsToggleAndNotHold
static float ambientVolume
static int[] displayHeight
static void SetResolution(int width, int height)
static bool SettingsEnabled_AutoReuseAllItems
static int PendingResolutionHeight
static PlayerResourceSetsManager ResourceSetsManager
static Vector2 DrawThickCursor(bool smart=false)
static bool mouseLeftRelease
static bool UseStormEffects
static void DrawCursor(Vector2 bonus, bool smart=false)
static Vector2 MouseScreen
static void CycleFrameSkipMode()
static bool BackgroundEnabled
static Microsoft.Xna.Framework.Color OurFavoriteColor
static SpriteViewMatrix GameViewMatrix
static bool SettingsEnabled_TilesSwayInWind
static int[] displayWidth
static float GameZoomTarget
static int numDisplayModes
static float UIScaleWanted
static ColorSlidersSet mouseColorSlider
static void DrawInterface_29_SettingsButton()
static void ToggleFullScreen()
static int invasionProgressMode
static MinimapFrameManager MinimapFrameManagerInstance
static bool SettingsEnabled_OpaqueBoxBehindTooltips
static int PendingResolutionWidth
static bool placementPreview
static bool ReversedUpDownArmorSetBonuses
static bool SaveSettings()
static void ClosePlayerChat()
static bool GamepadDisableInstructionsDisplay
static void DrawGamepadInstructions()
static GraphicsDeviceManager graphics
static bool MouseShowBuildingGrid
static void CycleHoverControl()
static HoverControlMode HoverControl
static bool SmartBlocksEnabled
static bool SmartAxeAfterPickaxe
static void FindRecipes(bool canDelayCheck=false)
static Terraria.Social.Base.NetSocialModule Network
static void SetPosition(int ID, Vector2 Position)
static void OpenAchievements()
static void OpenKeybinds()
static bool HighlightNewItems
static void DrawInvBG(SpriteBatch sb, Rectangle R, Color c=default(Color))
static Vector2 DrawBorderString(SpriteBatch sb, string text, Vector2 pos, Color color, float scale=1f, float anchorx=0f, float anchory=0f, int maxCharactersDisplayed=-1)
static Color ColorLerp_BlackToWhite(float percent)
delegate Color ColorLerpMethod(float percent)
static Vector2 DrawBorderStringBig(SpriteBatch spriteBatch, string text, Vector2 pos, Color color, float scale=1f, float anchorx=0f, float anchory=0f, int maxCharactersDisplayed=-1)
static Rectangle CenteredRectangle(Vector2 center, Vector2 size)
static void SaveAndQuit(Action callback=null)
static Color Lerp(Color value1, Color value2, float amount)
bool Contains(int x, int y)