Exemplo n.º 1
0
    public static ContractTargetImageForm Init()
    {
        ContractTargetImageForm editor = (ContractTargetImageForm)GetWindow(typeof(ContractTargetImageForm));

        editor.minSize          = new Vector2(300, 100);
        editor.replacementIndex = -1;
        editor.Show();

        return(editor);
    }
Exemplo n.º 2
0
    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);
    }