コード例 #1
0
 public InitializeMotecsCommand(LocationModel location, MotecParser parser, CollectionModel <MotecModel> collection, R3eDatabase r3eDatabase, GraphicalAssetFactory assetFactory)
 {
     this.location     = location;
     this.parser       = parser;
     this.collection   = collection;
     r3EDatabase       = r3eDatabase;
     this.assetFactory = assetFactory;
 }
コード例 #2
0
 public LayoutIOModel(HudOptionsParser parser, LocationModel location, PlaceHolderCollectionModel collection, ScreenModel screenModel, GraphicalAssetFactory assetFactory)
 {
     this.parser       = parser;
     this.location     = location;
     this.collection   = collection;
     this.screenModel  = screenModel;
     this.assetFactory = assetFactory;
     saveStatus        = new SaveStatus();
     currentR3eLayout  = new SourceLayout(LayoutSourceType.R3E, location.HudOptionsFile, parser.Parse(location.HudOptionsFile), -1, -1);
 }
コード例 #3
0
 public SaveProfileCommand(SelectedProfileModel profileSelection, PlaceHolderCollectionModel placeholderCollection,
                           LocationModel location, ScreenModel screen, Database database, LayoutIOModel layoutIO, GraphicalAssetFactory assetFactory)
 {
     this.profileSelection      = profileSelection;
     this.placeholderCollection = placeholderCollection;
     this.location     = location;
     this.screen       = screen;
     this.database     = database;
     this.layoutIO     = layoutIO;
     this.assetFactory = assetFactory;
 }
コード例 #4
0
 public CreateProfileCommand(StringEventArgs args, CollectionModel <ProfileModel> profileCollection, Database database,
                             LocationModel location, ScreenModel screen, PlaceHolderCollectionModel placeholderCollection,
                             SelectedProfileModel selectedProfile, LayoutIOModel layoutIO, GraphicalAssetFactory assetsFactory)
 {
     this.args = args;
     this.profileCollection     = profileCollection;
     this.database              = database;
     this.location              = location;
     this.screen                = screen;
     this.placeholderCollection = placeholderCollection;
     this.selectedProfile       = selectedProfile;
     this.layoutIO              = layoutIO;
     this.assetsFactory         = assetsFactory;
 }
コード例 #5
0
 public SelectProfileCommand(MenuButtonEventArgs args, CollectionModel <ProfileModel> profileCollection, SelectedProfileModel selectedProfile,
                             CollectionModel <BackgroundModel> backgroundCollection, ScreenModel screen, LocationModel location,
                             PlaceHolderCollectionModel placeholderCollection, SelectionModel selectionModel,
                             LayoutIOModel layoutIO, GraphicalAssetFactory assetFactory, CollectionModel <MotecModel> motecCollection)
 {
     this.args = args;
     this.profileCollection    = profileCollection;
     this.selectedProfile      = selectedProfile;
     this.backgroundCollection = backgroundCollection;
     this.screen   = screen;
     this.location = location;
     this.placeholderCollection = placeholderCollection;
     this.selectionModel        = selectionModel;
     this.layoutIO        = layoutIO;
     this.assetFactory    = assetFactory;
     this.motecCollection = motecCollection;
 }
コード例 #6
0
 public SettingsMenuView(GraphicalAssetFactory assetsFactory)
 {
     this.assetsFactory = assetsFactory;
     InitializeUI();
 }
コード例 #7
0
 public BackgroundMenuView(GraphicalAssetFactory assetsFactory)
 {
     this.assetsFactory = assetsFactory;
     Width = 200;
 }
コード例 #8
0
 public PlaceholderModel(SupportRuleValidator layoutValidator, ScreenModel screenModel, GraphicalAssetFactory assetsFactory)
 {
     this.layoutValidator = layoutValidator;
     this.screenModel     = screenModel;
     this.assetsFactory   = assetsFactory;
 }
コード例 #9
0
 public ProfileMenuView(CollectionModel <BackgroundModel> backgroundCollection, GraphicalAssetFactory assetsFactory)
 {
     Width = 200;
     this.backgroundCollection = backgroundCollection;
     this.assetsFactory        = assetsFactory;
 }
コード例 #10
0
 public ScreenModel(LocationModel locationModel, GraphicalAssetFactory assetsFactory)
 {
     this.locationModel = locationModel;
     this.assetsFactory = assetsFactory;
 }
コード例 #11
0
 public SelectMotecCommand(IntEventArgs args, CollectionModel <MotecModel> collection, GraphicalAssetFactory assetsFactory)
 {
     this.args          = args;
     this.collection    = collection;
     this.assetsFactory = assetsFactory;
 }
コード例 #12
0
 public PlaceholderView(GraphicalAssetFactory assetsFactory)
 {
     this.assetsFactory = assetsFactory;
     InitializeUI();
 }
コード例 #13
0
 public bool IsSaved(List <PlaceholderModel> currentLayout, SourceLayout source, SourceLayout r3eLayout, ScreenModel screenModel, GraphicalAssetFactory assetFactory)
 {
     if (source == null)
     {
         return(true);
     }
     if (source.SourceType == LayoutSourceType.PROFILE && (source.BackgroundId != screenModel.Background.Id || source.MotecId != assetFactory.SelectedMotec.Id))
     {
         return(false);
     }
     if (source.SourceType == LayoutSourceType.BACKUP)
     {
         return(AreLayoutEquals(currentLayout, source.Layout) || AreLayoutEquals(currentLayout, r3eLayout.Layout));
     }
     if (source.SourceType == LayoutSourceType.R3E)
     {
         return(AreLayoutEquals(currentLayout, source.Layout)); // TODO ici on pourrait éventuellement comparer avec le backup
     }
     return(AreLayoutEquals(currentLayout, source.Layout));
 }