private void Textbox_TextChanged(object sender, System.EventArgs e) { TextBox tb = sender as TextBox; UITexture2DParam p = tb.Tag as UITexture2DParam; p.Value = tb.Text; }
void Parse_Texture2DParam(string _inputs, string _value) { UITexture2DParam p = UITexture2DParam.FromString(_inputs, _value); if (p != null) { m_game.Parameters.Add(p); } }
public static UITexture2DParam FromString(string _inputs, string _value) { //Inputs => display name //ex. "xAmbiantTex" string name = _inputs.Replace("\"", ""); //Value //ex. "0" -> slotIdx string value = _value; //Create instance var param = new UITexture2DParam(value); param.Name = name; param.Value = value; return(param); }
public static UITexture2DParam FromString(string _inputs, string _value) { //Inputs => display name //ex. "xAmbiantTex" string name = _inputs.Replace("\"", ""); //Value //ex. "0" -> slotIdx string value = _value; //Create instance var param = new UITexture2DParam(value); param.Name = name; param.Value = value; return param; }