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

◆ ToggleMenu()

void Terraria.GameContent.Creative.CreativeUI.ToggleMenu ( )
inline

Definition at line 184 of file CreativeUI.cs.

185 {
186 Enabled = !Enabled;
190 if (Enabled)
191 {
192 Recipe.FindRecipes();
193 Main.LocalPlayer.tileEntityAnchor.Clear();
195 }
196 else if (_itemSlotsForUI[0].stack > 0)
197 {
198 _itemSlotsForUI[0] = Main.LocalPlayer.GetItem(Main.myPlayer, _itemSlotsForUI[0], GetItemSettings.InventoryUIToInventorySettings);
200 }
201 }
static void PlaySound(int type, Vector2 position, int style=1)

References Terraria.GameContent.Creative.CreativeUI._itemSlotsForUI, Terraria.GameContent.Creative.CreativeUI._powersUI, Terraria.GameContent.Creative.CreativeUI.Enabled, Terraria.GameContent.UI.Elements.UISliderBase.EscapeElements(), Terraria.UI.UserInterface.EscapeElements(), Terraria.Recipe.FindRecipes(), Terraria.GetItemSettings.InventoryUIToInventorySettings, Terraria.Main.LocalPlayer, Terraria.Main.myPlayer, Terraria.Audio.SoundEngine.PlaySound(), Terraria.GameContent.Creative.CreativeUI.RefreshAvailableInfiniteItemsList(), and Terraria.GameContent.Creative.CreativeUI.StopPlayingSacrificeAnimations().

Referenced by Terraria.GameContent.Creative.CreativeUI.DrawToggleButton().