83803 {
83804
83805
83806
83807
83808
83809
83810
83811
83812
83813
83814
83815
83816
83817
83818
83819
83820
83821
83822
83823
83824
83825
83826
83827
83828
83829
83830
83831
83832
83833
83834
83835
83836
83837
83838
83839
83840
83841
83842
83843
83844
83845
83846
83847
83848
83849
83850
83851
83852
83853
83854
83855
83856
83857
83858
83859
83860
83861
83862
83863
83864
83865
83867 int[] builderAccStatus =
player.builderAccStatus;
83869 bool shiftHotbarLock = activeToggles.Count / 12 != BuilderToggleLoader.BuilderTogglePage || activeToggles.Count % 12 >= 10;
83871 string text = "";
83873 Rectangle
rectangle =
default(Rectangle);
83876 {
83885 Rectangle
val = Utils.CenteredRectangle(position,
new Vector2(14
f));
83889 {
83891 position +=
new Vector2(1
f, 0
f);
83892 }
83893 else
83894 {
83896 }
83899 {
83900 player.mouseInterface = true;
83903 {
83906 }
83908 {
83909 spriteBatch.Draw(texture, position, (Rectangle?)texture.Frame(3, 1, 2),
OurFavoriteColor, 0
f,
rectangle.Size() / 2
f, 0.9f, (SpriteEffects)0, 0
f);
83910 }
83912 {
83913 spriteBatch.Draw(texture, position, (Rectangle?)texture.Frame(4, 1, (
builderToggle.CurrentState == 0) ? 3 : 2),
OurFavoriteColor, 0
f,
rectangle.Size() / 2
f, 0.9f, (SpriteEffects)0, 0
f);
83914 }
83915 }
83917 {
83922 }
83925 {
83930 }
83931 }
83933 }
static SlotId PlaySound(in SoundStyle? style, Vector2? position=null, SoundUpdateCallback? updateCallback=null)
Attempts to play a sound style with the provided sound style (if it's not null), and returns a valid ...
static Asset< DynamicSpriteFont > MouseText
static readonly SoundStyle Unlock
static void BuilderTogglePageHandler(int startY, int activeToggles, out bool moveDownForButton, out int startIndex, out int endIndex)
static SpriteBatch spriteBatch
static int myPlayer
The index in F:Terraria.Main.player of this client's Player. If this is 255, this client is the ser...
static bool mouseLeftRelease
static Vector2 MouseScreen
Fetches the position of the mouse cursor on the screen. Useful for making things visually happen nea...
static byte mouseTextColor
A value that oscillates between 190 and 255. It is used to drive the slight pulsing color effect seen...
static Color OurFavoriteColor
static List< BuilderToggle > ActiveBuilderTogglesList()
static BuilderToggle BlockSwap
static BuilderToggle TorchBiome
Represents a builder toggle button shown in the top left corner of the screen while the inventory is ...
Manages content added by mods. Liasons between mod content and Terraria's arrays and oversees the Loa...
static Vector2 DrawColorCodedStringWithShadow(SpriteBatch spriteBatch, DynamicSpriteFont font, TextSnippet[] snippets, Vector2 position, float rotation, Vector2 origin, Vector2 baseScale, out int hoveredSnippet, float maxWidth=-1f, float spread=2f)
static void SetPosition(int ID, Vector2 Position)
This data type describes in detail how a sound should be played. Passable to the M:Terraria....