public NPC_Halloween_AlchemistQuest(Enemy xEnemy) { this.xOwner = xEnemy; this.xChatBubble = new ChatbubbleRendercomponent(ChatbubbleRendercomponent.ChatTileSet.Regular, xEnemy.xTransform, "Let's go!"); Program.GetTheGame().xRenderMaster.RegisterGUIRenderComponent(this.xChatBubble, true); this.xChatBubble.xBubble.iPopupTimer = 180; }
public NPC_Evergrind_Haddock(Enemy xEnemy, Rectangle recShoutRec) { this.xOwner = xEnemy; this.xChatBubble = new ChatbubbleRendercomponent(ChatbubbleRendercomponent.ChatTileSet.Regular, xEnemy.xTransform, "Let's go!"); Program.GetTheGame().xRenderMaster.RegisterGUIRenderComponent(this.xChatBubble, true); this.xChatBubble.xBubble.iPopupTimer = 180; this.recShoutRec = recShoutRec; }
public static ChatbubbleRendercomponent AddBubble(this Game1 game, TransformComponent transform, string content, int popupTimer = 180) { ChatbubbleRendercomponent chatbubbleRendercomponent = new ChatbubbleRendercomponent(ChatbubbleRendercomponent.ChatTileSet.Regular, transform, content); game.xRenderMaster.RegisterGUIRenderComponent(chatbubbleRendercomponent, true); chatbubbleRendercomponent.xBubble.iPopupTimer = popupTimer; chatbubbleRendercomponent.RefreshBubble(); return(chatbubbleRendercomponent); }
public NPC_Naniva(Enemy xEnemy) { this.xOwner = xEnemy; this.xOwner.bSyncAnimationWithServer = false; this.xOwner.bSynchNetworkPosition = false; this.xOwner.bInstantiateInNetwork = false; Program.game.OnEnemyKilledEvent += new Game1.GenericEnemyEvent(this.OnEnemyDestroyed); Program.game.OnLevelUnloadEvent += new Game1.GenericEmptyEvent(this.OnLevelUnload); Program.game.OnEnemyDamagedEvent += new Game1.EnemyDamageRecall(this.OnEnemyHurt); Program.game.lxCallOnPlayerDamage.Add(new Game1.PlayerDamageRecall(this.OnPlayerHurt)); this.xChatBubble = new ChatbubbleRendercomponent(ChatbubbleRendercomponent.ChatTileSet.Regular, this.xOwner.xTransform, "Let's go!"); Program.GetTheGame().xRenderMaster.RegisterGUIRenderComponent(this.xChatBubble, true); this.xChatBubble.xBubble.iPopupTimer = 180; this.xChatBubble.xBubble.iDisplayTimer = 0; this.xCombatBubble = new ChatbubbleRendercomponent(ChatbubbleRendercomponent.ChatTileSet.Regular, this.xOwner.xTransform, "Let's go!"); Program.GetTheGame().xRenderMaster.RegisterGUIRenderComponent(this.xCombatBubble, true); this.xCombatBubble.xBubble.iPopupTimer = 60; this.xCombatBubble.xBubble.iDisplayTimer = 0; this.xCombatBubble.fAlpha = 0.7f; }