FML/Script/Features/GraphSettings.php
protected function getOnInitScriptText()
    {
        $scriptText = "";
        if ($this->minimumCoordinates) {
            $minimumCoordinatesValue = Builder::getVec2($this->minimumCoordinates);
            $scriptText              .= "
Graph.CoordsMin = {$minimumCoordinatesValue};";
        }
        if ($this->maximumCoordinates) {
            $maximumCoordinatesValue = Builder::getVec2($this->maximumCoordinates);
            $scriptText              .= "
Graph.CoordsMax = {$maximumCoordinatesValue};";
        }
        return $scriptText;
    }
protected function getOnInitScriptText()
    {
        $scriptText = "";
        if ($this->minimumCoordinates) {
            $minimumCoordinatesValue = Builder::getVec2($this->minimumCoordinates);
            $scriptText              .= "
Graph.CoordsMin = {$minimumCoordinatesValue};";
        }
        if ($this->maximumCoordinates) {
            $maximumCoordinatesValue = Builder::getVec2($this->maximumCoordinates);
            $scriptText              .= "
Graph.CoordsMax = {$maximumCoordinatesValue};";
        }
        return $scriptText;
    }
protected function getOnInitScriptText ( ) { $ scriptText = "" ; if ( $ this -> minimumCoordinates ) { $ minimumCoordinatesValue = Builder :: getVec2 ( $ this -> minimumCoordinates ) ; $ scriptText .= "
Graph.CoordsMin = {$minimumCoordinatesValue};" ; } if ( $ this -> maximumCoordinates ) { $ maximumCoordinatesValue = Builder :: getVec2 ( $ this -> maximumCoordinates ) ; $ scriptText .= "
Graph.CoordsMax = {$maximumCoordinatesValue};" ; } return $ scriptText ; }
Get the on init event script text

@return string
Get the on init event script text