Ejemplo n.º 1
0
        public void validateSlopeMaxAngle()
        {
            TerrainEditor ETerrainEditor = "ETerrainEditor";
            float         maxVal         = ETerrainEditor.getSlopeLimitMaxAngle();

            ((GuiTextEditCtrl)((GuiControl)"PaintBrushSlopeControl").findObjectByInternalName("SlopeMaxAngle", true)).setText(maxVal.AsString());
        }
Ejemplo n.º 2
0
        public void syncBrushInfo()
        {
            // Update gui brush info
            GuiControl    PaintBrushSizeTextEditContainer     = "PaintBrushSizeTextEditContainer";
            GuiControl    PaintBrushSlopeControl              = "PaintBrushSlopeControl";
            GuiControl    PaintBrushPressureTextEditContainer = "PaintBrushPressureTextEditContainer";
            TerrainEditor ETerrainEditor = "ETerrainEditor";

            ((GuiTextEditCtrl)PaintBrushSizeTextEditContainer.findObjectByInternalName("textEdit", true)).text =
                Util.getWord(ETerrainEditor.getBrushSize(), 0);
            ((GuiTextEditCtrl)PaintBrushSlopeControl.findObjectByInternalName("SlopeMinAngle", true)).text =
                ETerrainEditor.getSlopeLimitMinAngle().AsString();
            ((GuiTextEditCtrl)PaintBrushSlopeControl.findObjectByInternalName("SlopeMaxAngle", true)).text =
                ETerrainEditor.getSlopeLimitMaxAngle().AsString();
            ((GuiTextEditCtrl)PaintBrushPressureTextEditContainer.findObjectByInternalName("textEdit", true)).text =
                (ETerrainEditor.getBrushPressure() * 100).AsString();

            string brushType = ETerrainEditor.getBrushType();

            Util.eval("EWTerrainPainterToolbar-->" + brushType + ".setStateOn(1);");
        }