Exemple #1
0
        public static void CreateTerminalControls()
        {
            if (controls_created)
            {
                return;
            }
            controls_created = true;
            if (ComboListBox == null)
            {
                ComboListBox                        = MyAPIGateway.TerminalControls.CreateControl <IMyTerminalControlCombobox, IMyTextPanel>("Script List");
                ComboListBox.Enabled                = ControlEnabled;
                ComboListBox.Title                  = MyStringId.GetOrCompute("Channel List");
                ComboListBox.Visible                = ControlVisible;
                ComboListBox.ComboBoxContent        = (x) => GetContent(x);
                ComboListBox.SupportsMultipleBlocks = SupportsMultipleBlocks;
                ComboListBox.Setter                 = Setter;
                ComboListBox.Getter                 = (x) => Getter(x);
                MyAPIGateway.TerminalControls.AddControl <IMyTextPanel>(ComboListBox);

                var LineItem = new MyTerminalControlComboBoxItem();
                LineItem.Key   = 0;
                LineItem.Value = None;
                Obj.Add(LineItem);
                SteamIdGetter.Add(LineItem.Key, 0);
                LineGetter.Add(0, LineItem.Key);
            }
        }
Exemple #2
0
 /// <summary>
 /// Creates a new <see cref="PhpIniParser"/> operating on a given input stream.
 /// </summary>
 /// <param name="text">The input INI file content.</param>
 /// <param name="callbacks">Implementation of the parser callbacks invoked during parsing.</param>
 private PhpIniParser(string text, IParserCallbacks callbacks)
 {
     this.lineGetter = new LineGetterString(text);
     this.callbacks  = callbacks;
 }
Exemple #3
0
 /// <summary>
 /// Creates a new <see cref="PhpIniParser"/> operating on a given input stream.
 /// </summary>
 /// <param name="stream">The input stream. Should be open in binary mode.</param>
 /// <param name="callbacks">Implementation of the parser callbacks invoked during parsing.</param>
 private PhpIniParser(PhpStream stream, IParserCallbacks callbacks)
 {
     this.lineGetter = new LineGetterStream(stream);
     this.callbacks  = callbacks;
 }
Exemple #4
0
 /// <summary>
 /// Creates a new <see cref="PhpIniParser"/> operating on a given input stream.
 /// </summary>
 /// <param name="text">The input INI file content.</param>
 /// <param name="callbacks">Implementation of the parser callbacks invoked during parsing.</param>
 private PhpIniParser(string text, IParserCallbacks callbacks)
 {
     this.lineGetter = new LineGetterString(text);
     this.callbacks = callbacks;
 }
Exemple #5
0
		/// <summary>
		/// Creates a new <see cref="PhpIniParser"/> operating on a given input stream.
		/// </summary>
		/// <param name="stream">The input stream. Should be open in binary mode.</param>
		/// <param name="callbacks">Implementation of the parser callbacks invoked during parsing.</param>
		private PhpIniParser(PhpStream stream, IParserCallbacks callbacks)
		{
            this.lineGetter = new LineGetterStream(stream);
			this.callbacks = callbacks;
		}
Exemple #6
0
 private PhpIniParser(LineGetter lineGetter, IParserCallbacks callbacks, ScannerMode scanner_mode)
 {
     this.lineGetter   = lineGetter;
     this.callbacks    = callbacks;
     this.scanner_mode = scanner_mode;
 }