Пример #1
0
    public static ContractTargetShipImageForm Init()
    {
        ContractTargetShipImageForm editor = (ContractTargetShipImageForm)GetWindow(typeof(ContractTargetShipImageForm));

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

        return(editor);
    }
Пример #2
0
    public static ContractTargetShipImageForm Init(ContractTargetShipImage targetShipImage, int replacementIndex)
    {
        ContractTargetShipImageForm editor = (ContractTargetShipImageForm)GetWindow(typeof(ContractTargetShipImageForm));

        editor.minSize             = new Vector2(300, 100);
        editor.Tier                = targetShipImage.Tier;
        editor.TargetShipImagePath = targetShipImage.TargetShipImagePath;
        editor.replacementIndex    = replacementIndex;
        editor.Show();

        return(editor);
    }