Exemplo n.º 1
0
 //ロードの必要があるファイルを追加
 public void AddLoadGraphic(AdvGraphicInfoList graphic)
 {
     foreach (var item in graphic.InfoList)
     {
         AddLoadGraphic(item);
     }
 }
Exemplo n.º 2
0
 AdvCharacterInfo(string label, string nameText, string pattern, bool isHide, AdvGraphicInfoList graphic)
 {
     this.Label    = label;
     this.NameText = nameText;
     this.Pattern  = pattern;
     this.IsHide   = isHide;
     this.Graphic  = graphic;
 }
Exemplo n.º 3
0
 /// <summary>
 /// 初期化
 /// </summary>
 /// <param name="key">キー(キャラ名を)</param>
 /// <param name="fileName">ファイルネーム</param>
 internal void Init(string name, string pattern, string nameText, StringGridRow row)
 {
     this.name    = name;
     this.pattern = pattern;
     this.RowData = row;
     this.InitKey(AdvCharacterSetting.ToDataKey(name, pattern));
     this.nameText = nameText;
     this.graphic  = new AdvGraphicInfoList(Key);
     if (!AdvParser.IsEmptyCell(row, AdvColumnName.FileName))
     {
         AddGraphicInfo(row);
     }
 }
Exemplo n.º 4
0
        protected AdvCommandBgBase(StringGridRow row, AdvSettingDataManager dataManager)
            : base(row)
        {
            this.label = ParseCell <string>(AdvColumnName.Arg1);
            if (!dataManager.TextureSetting.ContainsLabel(label))
            {
                Debug.LogError(ToErrorString(label + " is not contained in file setting"));
            }

            this.graphic = dataManager.TextureSetting.LabelToGraphic(label);
            AddLoadGraphic(graphic);

            this.layerName = ParseCellOptional <string>(AdvColumnName.Arg3, "");
            if (!string.IsNullOrEmpty(layerName) && !dataManager.LayerSetting.Contains(layerName, AdvLayerSettingData.LayerType.Bg))
            {
                Debug.LogError(ToErrorString(layerName + " is not contained in layer setting"));
            }
            this.fadeTime = ParseCellOptional <float>(AdvColumnName.Arg6, 0.2f);
        }