public void PopulateUI(CathodeString cString, cGUID paramID) { stringVal = cString; STRING_VARIABLE_DUMMY.Text = NodeDBEx.GetParameterName(paramID) + " (" + paramID.ToString() + ")"; textBox1.Text = cString.value; //textBox1.DataBindings.Add("Text", cString.value, ""); }
public void PopulateUI_Int(CathodeInteger cInt, cGUID paramID) { isIntInput = true; intVal = cInt; NUMERIC_VARIABLE_DUMMY.Text = NodeDBEx.GetParameterName(paramID) + " (" + paramID.ToString() + ")"; textBox1.Text = cInt.value.ToString(); }
public void PopulateUI(CathodeBool cBool, cGUID paramID) { boolVal = cBool; BOOL_VARIABLE_DUMMY.Text = NodeDBEx.GetParameterName(paramID) + " (" + paramID.ToString() + ")"; checkBox1.Checked = cBool.value; //checkBox1.DataBindings.Add("Checked", cBool.value, ""); }
public void PopulateUI(CathodeEnum cEnum, cGUID paramID) { enumVal = cEnum; ENUM_VARIABLE_DUMMY.Text = NodeDBEx.GetParameterName(paramID) + " (" + paramID.ToString() + ")"; comboBox1.Text = NodeDB.GetEnum(cEnum.enumID).Name; //comboBox1.Enabled = false; //numericUpDown8.Value = cEnum.enumIndex; textBox1.Text = cEnum.enumIndex.ToString(); //numericUpDown8.DataBindings.Add("Value", cEnum.enumIndex, ""); }
public void PopulateUI(CathodeVector3 cVec, cGUID paramID) { vectorVal = cVec; VECTOR_VARIABLE_DUMMY.Text = NodeDBEx.GetParameterName(paramID) + " (" + paramID.ToString() + ")"; POS_X_1.Value = (decimal)cVec.value.x; POS_Y_1.Value = (decimal)cVec.value.y; POS_Z_1.Value = (decimal)cVec.value.z; //POS_X_1.DataBindings.Add("Value", (decimal)cVec.value.X, ""); //POS_Y_1.DataBindings.Add("Value", (decimal)cVec.value.Y, ""); //POS_Z_1.DataBindings.Add("Value", (decimal)cVec.value.Z, ""); }
public void PopulateUI(CathodeTransform cTrans, cGUID paramID) { transformVal = cTrans; POSITION_VARIABLE_DUMMY.Text = NodeDBEx.GetParameterName(paramID) + " (" + paramID.ToString() + ")"; POS_X.Value = (decimal)cTrans.position.x; POS_Y.Value = (decimal)cTrans.position.y; POS_Z.Value = (decimal)cTrans.position.z; ROT_X.Value = (decimal)cTrans.rotation.x; ROT_Y.Value = (decimal)cTrans.rotation.y; ROT_Z.Value = (decimal)cTrans.rotation.z; //POS_X.DataBindings.Add("Value", (decimal)cTrans.position.X, ""); //POS_Y.DataBindings.Add("Value", (decimal)cTrans.position.Y, ""); //POS_Z.DataBindings.Add("Value", (decimal)cTrans.position.Z, ""); //ROT_X.DataBindings.Add("Value", (decimal)cTrans.rotation.X, ""); //ROT_Y.DataBindings.Add("Value", (decimal)cTrans.rotation.Y, ""); //ROT_Z.DataBindings.Add("Value", (decimal)cTrans.rotation.Z, ""); }
public void PopulateUI(CathodeResource cResource, cGUID paramID, CathodeFlowgraph selected_flowgraph) { GUID_VARIABLE_DUMMY.Text = NodeDBEx.GetParameterName(paramID) + " (" + paramID.ToString() + ")"; resRef = cResource; if (cResource.resourceID.val != null) { textBox2.Text = BitConverter.ToString(new byte[] { cResource.resourceID.val[0] }); textBox3.Text = BitConverter.ToString(new byte[] { cResource.resourceID.val[1] }); textBox5.Text = BitConverter.ToString(new byte[] { cResource.resourceID.val[2] }); textBox4.Text = BitConverter.ToString(new byte[] { cResource.resourceID.val[3] }); } /* * List<RenderableElement> redsList = new List<RenderableElement>(); * CathodeResourceReference resRef = selected_flowgraph.resources.FirstOrDefault(o => o.resourceRefID == cResource.resourceID); * if (resRef == null || resRef.entryType != CathodeResourceReferenceType.RENDERABLE_INSTANCE) return; * for (int p = 0; p < resRef.entryCountREDS; p++) redsList.Add(redsBIN.GetRenderableElement(resRef.entryIndexREDS + p)); * if (resRef.entryCountREDS != redsList.Count || redsList.Count == 0) return; //TODO: handle this nicer * CathodeEditorGUI_EditResource res_editor = new CathodeEditorGUI_EditResource(modelPAK.GetCS2s(), redsList); * res_editor.Show(); * res_editor.EditComplete += new FinishedEditingIndexes(res_editor_submitted); */ }
public void PopulateUI_Float(CathodeFloat cFloat, cGUID paramID) { floatVal = cFloat; NUMERIC_VARIABLE_DUMMY.Text = NodeDBEx.GetParameterName(paramID) + " (" + paramID.ToString() + ")"; textBox1.Text = cFloat.value.ToString(); }
public void PopulateUI(CathodeSpline cSpline, cGUID paramID) { UNIMPLEMENTED_VARIABLE_TYPE.Text = NodeDBEx.GetParameterName(paramID) + " (" + paramID.ToString() + ")"; //todo: dynamically populate UI }