コード例 #1
0
ファイル: NodeEditor.cs プロジェクト: andyhebear/likeleon
 public override void GetObjectProperties(Mogre.NameValuePairList retList)
 {
     retList.Clear();
     retList["Name"] = this.name;
     retList["Position"] = Mogre.StringConverter.ToString(this.position);
     retList["Orientation"] = Mogre.StringConverter.ToString(this.orientation);
     retList["Scale"] = Mogre.StringConverter.ToString(this.scale);
     retList["AutoTrackTarget"] = this.autoTrackTarget;
 }
コード例 #2
0
ファイル: MaterialEditor.cs プロジェクト: andyhebear/likeleon
 public override void GetObjectProperties(Mogre.NameValuePairList retList)
 {
     retList.Clear();
     retList["Name"] = this.name;
 }
コード例 #3
0
        public override void GetObjectProperties(Mogre.NameValuePairList retList)
        {
            retList.Clear();
            retList["Name"] = this.name;
            retList["SceneManagerType"] = SceneMangerType;
            retList["Ambient"] = Mogre.StringConverter.ToString(this.ambient);
            retList["SkyBoxActive"] = Mogre.StringConverter.ToString(this.skyBoxActive);
            retList["SkyBoxMaterial"] = this.skyBoxMaterial;
            retList["SkyBoxDistance"] = Mogre.StringConverter.ToString(this.skyBoxDistance);

            switch (this.fogMode)
            {
                case Mogre.FogMode.FOG_NONE:
                    retList["FogMode"] = "None";
                    break;
                case Mogre.FogMode.FOG_LINEAR:
                    retList["FogMode"] = "Linear";
                    break;
                case Mogre.FogMode.FOG_EXP:
                    retList["FogMode"] = "Exp";
                    break;
                case Mogre.FogMode.FOG_EXP2:
                    retList["FogMode"] = "Exp2";
                    break;
            }

            retList["FogColour"] = Mogre.StringConverter.ToString(this.fogColour);
            retList["FogStart"] = Mogre.StringConverter.ToString(this.fogStart);
            retList["FogEnd"] = Mogre.StringConverter.ToString(this.fogEnd);
            retList["FogDensity"] = Mogre.StringConverter.ToString(this.fogDensity);
        }
コード例 #4
0
ファイル: BaseEditor.cs プロジェクト: andyhebear/likeleon
 public virtual void GetObjectProperties(Mogre.NameValuePairList retList)
 {
     retList.Clear();
     retList["Name"] = Name;
 }
コード例 #5
0
ファイル: ViewportEditor.cs プロジェクト: andyhebear/likeleon
        public override void GetObjectProperties(Mogre.NameValuePairList retList)
        {
            retList.Clear();
            retList["Name"] = this.name;
            retList["Colour"] = Mogre.StringConverter.ToString(this.colour);
            retList["Index"] = Mogre.StringConverter.ToString(ViewportIndex);
            retList["Dimensions"] = Mogre.StringConverter.ToString(this.dimensions);
            retList["Overlays"] = Mogre.StringConverter.ToString(this.overlays);
            retList["Skies"] = Mogre.StringConverter.ToString(this.skies);
            retList["Shadows"] = Mogre.StringConverter.ToString(this.shadows);
            retList["CamPosition"] = Mogre.StringConverter.ToString(ViewCamera.Position);
            retList["CamOrientation"] = Mogre.StringConverter.ToString(ViewCamera.Orientation);
            retList["CamFOV"] = Mogre.StringConverter.ToString(ViewCamera.FOV);
            retList["CamPolyMode"] = Mogre.StringConverter.ToString((int)ViewCamera.PolygonMode);
            retList["CamClipDistance"] = Mogre.StringConverter.ToString(ViewCamera.ClipDistance);

            Mogre.CompositorManager comMngr = Mogre.CompositorManager.Singleton;
            if (!comMngr.HasCompositorChain(this.handle))
                return;

            int count = 0;
            Mogre.CompositorChain chain = comMngr.GetCompositorChain(this.handle);
            foreach (Mogre.CompositorInstance compositor in chain.GetCompositors())
            {
                Mogre.Compositor sub = compositor.Compositor;
                if (sub == null)
                    continue;

                if (sub.Name.Substring(1, 7) == "_Hydrax")
                    continue;

                string compId = "Compositor" + Mogre.StringConverter.ToString(count);
                retList[compId + "Name"] = sub.Name;
                retList[compId + "Enabled"] = Mogre.StringConverter.ToString(compositor.Enabled);
                count++;
            }
        }
コード例 #6
0
ファイル: CameraEditor.cs プロジェクト: andyhebear/likeleon
 public override void GetObjectProperties(Mogre.NameValuePairList retList)
 {
     retList.Clear();
     retList["Name"] = Name;
     retList["Position"] = Mogre.StringConverter.ToString(Position);
     retList["Orientation"] = Mogre.StringConverter.ToString(Orientation);
     retList["ClipDistance"] = Mogre.StringConverter.ToString(ClipDistance);
     retList["FOV"] = Mogre.StringConverter.ToString(FOV);
 }