public void keyboardModifyBrushSize(int amt) { TerrainEditor ETerrainEditor = "ETerrainEditor"; int val = ((GuiTextEditCtrl)((GuiControl)"PaintBrushSizeTextEditContainer").findObjectByInternalName("textEdit", true)).getText().AsInt(); val += amt; ((GuiTextEditCtrl)((GuiControl)"PaintBrushSizeTextEditContainer").findObjectByInternalName("textEdit", true)).setText(val.AsString()); ((GuiTextEditCtrl)((GuiControl)"PaintBrushSizeTextEditContainer").findObjectByInternalName("textEdit", true)).forceValidateText(); ETerrainEditor.setBrushSize(val); }