public static ContractTargetImageForm Init() { ContractTargetImageForm editor = (ContractTargetImageForm)GetWindow(typeof(ContractTargetImageForm)); editor.minSize = new Vector2(300, 100); editor.replacementIndex = -1; editor.Show(); return(editor); }
public static ContractTargetImageForm Init(ContractTargetImage targetImage, int replacementIndex) { ContractTargetImageForm editor = (ContractTargetImageForm)GetWindow(typeof(ContractTargetImageForm)); editor.minSize = new Vector2(300, 100); editor.Tier = targetImage.Tier; editor.TargetImagePath = targetImage.TargetImagePath; editor.replacementIndex = replacementIndex; editor.closeButtonText = "Save"; editor.Show(); return(editor); }