GetFieldText() public méthode

public GetFieldText ( string Field ) : string
Field string
Résultat string
Exemple #1
0
 public bool IsMatch(Item I)
 {
     if (this.cmbField.SelectedValue == null) { // Any Field
     foreach (string Field in I.GetFields()) {
       if (this.MatchString(I.GetFieldText(Field)))
     return true;
     }
     return false;
       }
       else
     return this.MatchString(I.GetFieldText(this.cmbField.SelectedValue as string));
 }
Exemple #2
0
 private string GetIconString(Item I)
 {
     string IconString = I.GetFieldText("icon");
     Image Icon = I.GetIcon();
     if (Icon != null)
     {
         MemoryStream MS = new MemoryStream();
         Icon.Save(MS, ImageFormat.Png);
         IconString += Convert.ToBase64String(MS.GetBuffer());
         MS.Close();
     }
     return IconString;
 }
 public static string GetItemName(byte Language, ushort ID)
 {
     foreach (ushort ItemDAT in FFXIResourceManager.ItemDATs) {
       BinaryReader BR = FFXIResourceManager.OpenDATFile(ItemDAT);
     if (BR != null) {
     Item.Type T;
       Item.DeduceType(BR, out T);
     long Offset = (ID & 0xfff) * 0xc00;
       if (BR.BaseStream.Length >= Offset + 0xc00) {
       Item I = new Item();
     BR.BaseStream.Position = Offset;
     if (I.Read(BR, T) && (uint) I.GetFieldValue("id") == ID) {
       BR.Close();
       return I.GetFieldText("name");
     }
       }
       BR.Close();
     }
       }
       return null;
 }