Exemplo n.º 1
0
        public override void Format(ScriptWriter sw, IScriptFormatterContext formatterContext, IServices services)
        {
            FormatHelper.FormatMonologue(sw, formatterContext.GetMessage(_messageId));

            sw.Format(formatterContext, services)
            .StaticType(nameof(IMessageService))
            .Method(nameof(IMessageService.Show))
            .Argument("channel", _channel)
            .Argument("messageId", _messageId)
            .Comment(nameof(MES));
        }
Exemplo n.º 2
0
        public override void Format(ScriptWriter sw, IScriptFormatterContext formatterContext, IServices services)
        {
            if (_messageId is IConstExpression message)
            {
                FormatHelper.FormatMonologue(sw, formatterContext.GetMessage(message.Int32()));
            }

            sw.Format(formatterContext, services)
            .StaticType(nameof(IMessageService))
            .Method(nameof(IMessageService.ShowDialog))
            .Argument("channel", _channel)
            .Argument("messageId", _messageId)
            .Argument("posX", _posX)
            .Argument("posY", _posY)
            .Comment(nameof(RAMESW));
        }