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

◆ OnChatButtonClicked()

virtual void Terraria.ModLoader.ModNPC.OnChatButtonClicked ( bool firstButton,
ref string shopName )
inlinevirtual

Allows you to make something happen whenever a button is clicked on this NPC's chat window. The firstButton parameter tells whether the first button or second button (button and button2 from SetChatButtons) was clicked. Set the shopName parameter to "Shop" to open this NPC's shop.

Parameters
firstButton
shopName

Definition at line 728 of file ModNPC.cs.

729 {
730 }