public override void defineButton2(DefineButton tag) { if (tag.condActions.Length > 0) { for (int i = 0; i < tag.condActions.Length; i++) { ButtonCondAction cond = tag.condActions[i]; recordActions(cond.actionList); } } }
public override void defineButton2(DefineButton tag) { if (Debug) { debug.adjust = writer.Pos + 6; } int id = dict.add(tag); tagw.writeUI16(id); tagw.writeUBits(0, 7); // reserved tagw.writeBit(tag.trackAsMenu); int offsetPos = tagw.Pos; tagw.writeUI16(0); // actionOffset for (int i = 0; i < tag.buttonRecords.Length; i++) { encodeButtonRecord(tag.buttonRecords[i], tagw, tag.code); } tagw.writeUI8(0); // charEndFlag if (tag.condActions.Length > 0) { tagw.writeUI16at(offsetPos, tagw.Pos - offsetPos); for (int i = 0; i < tag.condActions.Length; i++) { bool isLast = i + 1 == tag.condActions.Length; encodeButtonCondAction(tag.condActions[i], tagw, isLast); } } encodeTag(tag); if (Debug) { debug.adjust = 0; } }
public override void defineButton(DefineButton tag) { recordActions(tag.condActions[0].actionList); }
public override void defineButton2(DefineButton tag) { tags.Add(tag); }
public override void defineButton(DefineButton tag) { int id = dict.add(tag); tagw.writeUI16(id); if (Debug) { debug.adjust = writer.Pos + 6; } for (int i = 0; i < tag.buttonRecords.Length; i++) { encodeButtonRecord(tag.buttonRecords[i], tagw, tag.code); } tagw.writeUI8(0); // no more button records // assume there is only one condition we will handle new ActionEncoder(tagw, debug).encode(tag.condActions[0].actionList); tagw.writeUI8(0); // write action end flag, must be zero encodeTag(tag); if (Debug) { debug.adjust = 0; } }
public override void defineButton2(DefineButton tag) { collectCondActions(tag.condActions); }
public override void defineButton(DefineButton tag) { String[] temp = pool; collectActions(tag.condActions[0].actionList); pool = temp; }
public override void defineButton(DefineButton tag) { open(tag); out_Renamed.Write(" id='" + id(tag) + "'"); end(); if (showActions) { openCDATA(); // todo print button records printActions(tag.condActions[0].actionList); closeCDATA(); } else { //UPGRADE_TODO: Method 'java.io.PrintWriter.println' was converted to 'System.IO.TextWriter.WriteLine' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaioPrintWriterprintln_javalangString'" out_Renamed.WriteLine("<!-- " + tag.condActions[0].actionList.size() + " action(s) elided -->"); } close(tag); }
public override void defineButton2(DefineButton tag) { open(tag); out_Renamed.Write(" id='" + id(tag) + "'"); out_Renamed.Write(" trackAsMenu='" + tag.trackAsMenu + "'"); end(); for (int i = 0; i < tag.buttonRecords.Length; i++) { ButtonRecord record = tag.buttonRecords[i]; indent(); //UPGRADE_TODO: Method 'java.io.PrintWriter.println' was converted to 'System.IO.TextWriter.WriteLine' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaioPrintWriterprintln_javalangString'" out_Renamed.WriteLine("<buttonRecord " + "idref='" + idRef(record.characterRef) + "' " + "depth='" + record.placeDepth + "' " + "matrix='" + record.placeMatrix + "' " + "states='" + record.Flags + "'/>"); // todo print optional cxforma } // print conditional actions if (tag.condActions.Length > 0 && showActions) { indent(); //UPGRADE_TODO: Method 'java.io.PrintWriter.println' was converted to 'System.IO.TextWriter.WriteLine' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaioPrintWriterprintln_javalangString'" out_Renamed.WriteLine("<buttonCondAction>"); openCDATA(); for (int i = 0; i < tag.condActions.Length; i++) { ButtonCondAction cond = tag.condActions[i]; indent(); //UPGRADE_TODO: Method 'java.io.PrintWriter.println' was converted to 'System.IO.TextWriter.WriteLine' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaioPrintWriterprintln_javalangString'" out_Renamed.WriteLine("on(" + cond + ") {"); indent_Renamed_Field++; printActions(cond.actionList); indent_Renamed_Field--; indent(); //UPGRADE_TODO: Method 'java.io.PrintWriter.println' was converted to 'System.IO.TextWriter.WriteLine' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaioPrintWriterprintln_javalangString'" out_Renamed.WriteLine("}"); } closeCDATA(); indent(); //UPGRADE_TODO: Method 'java.io.PrintWriter.println' was converted to 'System.IO.TextWriter.WriteLine' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaioPrintWriterprintln_javalangString'" out_Renamed.WriteLine("</buttonCondAction>"); } close(tag); }
public virtual void defineButton(DefineButton tag) { }