/// <summary> /// Get an editor utils object that can be used for common Editor stuff - DO make sure to Dispose() the instance. /// </summary> /// <param name="editorObj">The class that uses the utils. Just pass in "this".</param> /// <param name="customUpdateMethod">(Optional) The method to be called when the GUI needs to be updated. (Repaint will always be called.)</param> /// <returns>Editor Utils</returns> public static EditorUtils GetEditorUtils(IPWEditor editorObj, System.Action customUpdateMethod = null) { return(new EditorUtils(CONF, editorObj, customUpdateMethod)); }
/// <summary> /// Get an editor utils object that can be used for common Editor stuff - DO make sure to Dispose() the instance. /// </summary> /// <param name="editorObj">The class that uses the utils. Just pass in "this".</param> /// <param name="customUpdateMethod">(Optional) The method to be called when the GUI needs to be updated. (Repaint will always be called.)</param> /// <param name="customNewsURL">(Optional) Custom News URL to fetch the news messages from (will default to the News URL in app config if none provided)</param> /// <param name="overrideParameters">A custom set of URL Parameters to use when fetching news data. If left empty, the default set of parameters will be used</param> /// <returns>Editor Utils</returns> public static EditorUtils GetEditorUtils(IPWEditor editorObj, System.Action customUpdateMethod = null, string customNewsURL = null, URLParameters overrideParameters = null) { return new EditorUtils(CONF, editorObj, null, customUpdateMethod, customNewsURL, overrideParameters); }