Quintiq file version 2.0 #parent: #root Method New ( FormTransitionTypes formTransitionTypes ) id:Method_DialogCreateEditTransitionType_New { #keys: '[139394.0.1557815518]' Body: [* // New campaign type // Randomly select a unit owner := select( DataHolderUnit.Data(), Elements, u, u.CampaignType_MP( relsize ) > 0 ); data := owner.TransitionType_MP( relshadow, UnitID :=owner.ID(), Name := "" );// Temporary set Name to empty, will be set in Create method // Bind input type to default value ( quantity ) data.InputType( TransitionType_MP::GetInputType( data.DefaultMinQuantity(), data.HasInputMaxQuantity(), data.DefaultMinDuration(), data.HasInputMaxDuration() ) ); DataHolderForm.Data( formTransitionTypes ); DataHolderDialogData.Data( &data ); DataHolderSelectedUnit.Data( owner ); ApplicationMacroPlanner.ShowFormModal( this ); *] }