local EventSystem = require('Event/EventSystem') local Tips_Model = {} local private = {} Tips_Model.TipsType = { SingleIDS = 1, FormatText = 2, Item = 3, Text = 4,--文字 } function Tips_Model.OnStartup() private.lastTipMsg = nil Tips_Model.RelationShowUpPanelQueue = {} --羁绊加成激活弹窗队列 private.tipsMessage = {} private.specialTipsMessage = {} end function Tips_Model.GetTipsMsg() return private.tipsMessage end function Tips_Model.RemoveTipsMsg() private.lastTipMsg = table.remove(private.tipsMessage, 1) end function Tips_Model.InsertTipsMsg(tipMsg, type) local msg = {type = type, content = tipMsg} local listLength = #private.tipsMessage if listLength > 1 then if private.tipsMessage[listLength].content == tipMsg then return end end table.insert(private.tipsMessage, msg) end function Tips_Model.ClearTipsMsg() private.tipsMessage = {} end function Tips_Model.GetSpecialTipsMsg() return private.specialTipsMessage end function Tips_Model.RemoveSpecialTipsMsg() table.remove(private.specialTipsMessage, 1) end function Tips_Model.InsertSpecialTipsMsg(tipMsg, type) local msg = {type = type, content = tipMsg} local listLength = #private.specialTipsMessage if listLength > 1 then if private.specialTipsMessage[listLength].content == tipMsg then return end end table.insert(private.specialTipsMessage, msg) end function Tips_Model.ClearSpecialTipsMsg() private.specialTipsMessage = {} end return Tips_Model