public void Initialize(SakuraCore.SPropertyData property) { PropertyData = property; ParamName.Text = property.PropName; string val = SakuraCore.GetStringProp(property.SObject, property.PropName, property.SourceType); ValueBox.Text = val; }
public void Initialize(SakuraCore.SPropertyData property) { PropertyData = property; ParamName.Text = property.PropName; SakuraCore.SVector val; SakuraCore.GetSVectorProp(property.SObject, property.PropName, out val, property.SourceType); ValueBoxX.Text = val.x.ToString(); ValueBoxY.Text = val.y.ToString(); ValueBoxZ.Text = val.z.ToString(); }
public ISPropertyInterface RegistSubMember(SakuraCore.SPropertyData submem) { ISPropertyInterface newset = new DetailView(); IntPtr memobj; SakuraCore.GetSubmemberProp(ActiveNode, submem.PropName, out memobj, submem.SourceType); if (memobj != IntPtr.Zero) { (newset as DetailView).RefreshActiveNode(memobj); } return(newset); }
public void RegistNewSetter(SakuraCore.SPropertyData property) { ISPropertyInterface newset; switch (property.PropType) { case "bool": { newset = new BoolSwitch() as ISPropertyInterface; break; } case "float": { newset = new FloatSet() as ISPropertyInterface; break; } case "const SVector&": case "SVector": case "structSakuraMath::SVector": { newset = new SVectorSet() as ISPropertyInterface; break; } case "const std::string&": case "std::string": case "string": case "std:string": { newset = new StringSet() as ISPropertyInterface; break; } default: { // Containers if (SakuraCore.PropIsContainer(property)) { RegistContainer(property); return; } else { // newset = RegistSubMember(property); break; } } } newset.Initialize(property); PropertySetters.Add(newset); DetailsDock.Children.Add(newset as UserControl); (newset as UserControl).SetValue(DockPanel.DockProperty, Dock.Top); }
public void Initialize(SakuraCore.SPropertyData property) { throw new NotImplementedException(); }
public void RegistContainer(SakuraCore.SPropertyData container) { return; }
public void Initialize(SakuraCore.SPropertyData property) { return; }