예제 #1
0
        private static void SendMsg(ConsoleColor msgcolor, string msg)
        {
            ConsoleColor meloncolor  = MelonLogger.DefaultMelonColor;
            string       namesection = null;
            MelonBase    melon       = MelonLogger.GetMelonFromStackTrace();

            if (melon != null)
            {
                namesection = melon.Info.Name.Replace(" ", "_");
                if (melon.Color != null)
                {
                    msgcolor = melon.Color.Color;
                }
            }
            Internal_Msg(meloncolor, msgcolor, namesection, msg);
            MsgCallbackHandler?.Invoke(meloncolor, msgcolor, namesection, msg);
        }