private void Start()
 {
     m_StuffModel = ConfigManager.GetConfigModel(configFolderName);
     m_StuffModel.AddInitializedAction(() =>
     {
         List <StuffData> stuffDatas = new List <StuffData>();
         foreach (var item in m_StuffModel.GetAllTitles())
         {
             stuffDatas.Add(new StuffData
             {
                 fileName = item,
                 texture  = (Texture)m_StuffModel.GetConfig(item)
             });
         }
         //SetContentParentHeight(stuffDatas.Count);
         foreach (var item in CreateStuffImages(stuffDatas.ToArray()))
         {
             item.ScreenRatio = stuffScreenRatio;
         }
     });
 }
Пример #2
0
 protected virtual void Visit(IConfigModel m)
 {
 }
 public HomeController(CodeLoader codeLoader, IConvertService convertService, IConfigModel configModel)
 {
     this.codeLoader     = codeLoader;
     this.convertService = convertService;
     this.configModel    = configModel;
 }
Пример #4
0
 public ConfigVM()
 {
     model = new ConfigModel();
     model.PropertyChanged += NotifyPropertyChanged;
     this.RemoveButtonCmd   = new DelegateCommand(RemoveHandler, () => { return(CanRemove); });
 }