TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ DrawRightSide()

static bool Terraria.IngameOptions.DrawRightSide ( SpriteBatch sb,
string txt,
int i,
Vector2 anchor,
Vector2 offset,
float scale,
float colorScale,
Color over = default(Color) )
inlinestatic

Definition at line 1880 of file IngameOptions.cs.

1881 {
1882 //IL_0000: Unknown result type (might be due to invalid IL or missing references)
1883 //IL_0005: Unknown result type (might be due to invalid IL or missing references)
1884 //IL_000c: Unknown result type (might be due to invalid IL or missing references)
1885 //IL_0011: Unknown result type (might be due to invalid IL or missing references)
1886 //IL_0012: Unknown result type (might be due to invalid IL or missing references)
1887 //IL_0016: Unknown result type (might be due to invalid IL or missing references)
1888 //IL_001c: Unknown result type (might be due to invalid IL or missing references)
1889 //IL_0029: Unknown result type (might be due to invalid IL or missing references)
1890 //IL_002a: Unknown result type (might be due to invalid IL or missing references)
1891 //IL_0030: Unknown result type (might be due to invalid IL or missing references)
1892 //IL_0035: Unknown result type (might be due to invalid IL or missing references)
1893 //IL_003a: Unknown result type (might be due to invalid IL or missing references)
1894 //IL_0048: Unknown result type (might be due to invalid IL or missing references)
1895 //IL_004d: Unknown result type (might be due to invalid IL or missing references)
1896 //IL_004e: Unknown result type (might be due to invalid IL or missing references)
1897 //IL_004f: Unknown result type (might be due to invalid IL or missing references)
1898 //IL_0055: Unknown result type (might be due to invalid IL or missing references)
1899 //IL_005a: Unknown result type (might be due to invalid IL or missing references)
1900 //IL_005f: Unknown result type (might be due to invalid IL or missing references)
1901 //IL_006a: Unknown result type (might be due to invalid IL or missing references)
1902 //IL_006f: Unknown result type (might be due to invalid IL or missing references)
1903 //IL_0074: Unknown result type (might be due to invalid IL or missing references)
1904 //IL_0079: Unknown result type (might be due to invalid IL or missing references)
1905 //IL_007e: Unknown result type (might be due to invalid IL or missing references)
1906 //IL_0085: Unknown result type (might be due to invalid IL or missing references)
1907 //IL_008f: Unknown result type (might be due to invalid IL or missing references)
1908 //IL_0096: Unknown result type (might be due to invalid IL or missing references)
1909 //IL_00a4: Unknown result type (might be due to invalid IL or missing references)
1910 //IL_00ae: Unknown result type (might be due to invalid IL or missing references)
1911 //IL_00b5: Unknown result type (might be due to invalid IL or missing references)
1912 //IL_00bc: Unknown result type (might be due to invalid IL or missing references)
1913 //IL_00c1: Unknown result type (might be due to invalid IL or missing references)
1914 //IL_00cf: Unknown result type (might be due to invalid IL or missing references)
1915 //IL_0024: Unknown result type (might be due to invalid IL or missing references)
1916 //IL_0026: Unknown result type (might be due to invalid IL or missing references)
1917 Color color = Color.Lerp(Color.Gray, Color.White, colorScale);
1918 if (over != default(Color))
1919 {
1920 color = over;
1921 }
1922 Vector2 vector = Utils.DrawBorderString(sb, txt, anchor + offset * (float)(1 + i), color, scale, 0.5f, 0.5f);
1923 valuePosition = anchor + offset * (float)(1 + i) + vector * new Vector2(0.5f, 0f);
1924 Rectangle val = new Rectangle((int)anchor.X - (int)vector.X / 2, (int)anchor.Y + (int)(offset.Y * (float)(1 + i)) - (int)vector.Y / 2, (int)vector.X, (int)vector.Y);
1925 bool flag = ((Rectangle)(ref val)).Contains(new Point(Main.mouseX, Main.mouseY));
1926 if (!_canConsumeHover)
1927 {
1928 return false;
1929 }
1930 if (flag)
1931 {
1932 _canConsumeHover = false;
1933 return true;
1934 }
1935 return false;
1936 }
static bool _canConsumeHover
static Vector2 valuePosition

References Terraria.Utils.DrawBorderString(), Terraria.Main.mouseX, and Terraria.Main.mouseY.

Referenced by Terraria.IngameOptions.Draw().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: