public void validateSlopeMinAngle() { TerrainEditor ETerrainEditor = "ETerrainEditor"; float maxVal = ETerrainEditor.getSlopeLimitMinAngle(); ((GuiTextEditCtrl)((GuiControl)"PaintBrushSlopeControl").findObjectByInternalName("SlopeMinAngle", true)).setText(maxVal.AsString()); }
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);"); }