public static void ShowDialog(VMStackFrame context, VMDialogStringsOperand operand, STR source) { string MessageBody = ParseDialogString(context, source.GetString(operand.MessageStringID - 1)); System.Diagnostics.Debug.Print(MessageBody); }
public static void ShowDialog(VMStackFrame context, VMDialogStringsOperand operand, STR source) { VMDialogInfo info = new VMDialogInfo { Caller = context.Caller, Icon = context.StackObject, Operand = operand, Message = ParseDialogString(context, source.GetString(operand.MessageStringID - 1), source), Title = (operand.TitleStringID == 0) ? "" : ParseDialogString(context, source.GetString(operand.TitleStringID - 1), source), IconName = (operand.IconNameStringID == 0) ? "" : ParseDialogString(context, source.GetString(operand.IconNameStringID - 1), source), Yes = (operand.YesStringID == 0) ? "Yes" : ParseDialogString(context, source.GetString(operand.YesStringID - 1), source), }; context.VM.SignalDialog(info); }