Exemplo n.º 1
0
        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;
        }
Exemplo n.º 2
0
 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();
 }
Exemplo n.º 3
0
        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);
        }
Exemplo n.º 4
0
        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);
        }
Exemplo n.º 5
0
 public void Initialize(SakuraCore.SPropertyData property)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 6
0
 public void RegistContainer(SakuraCore.SPropertyData container)
 {
     return;
 }
Exemplo n.º 7
0
 public void Initialize(SakuraCore.SPropertyData property)
 {
     return;
 }