Beispiel #1
0
        // TODO: sortKey, warnings

        public override string DataToValue(ValueElement element, dynamic data)
        {
            int index       = data;
            var actor       = element?.GetElement("^Record");
            var female      = actor?.GetFlag(@"ACBS\Flags", "Female");
            var race        = (MainRecord)actor?.GetElement("@RNAM");
            var tintEntries = tintCache.Get(race, female);

            if (tintEntries == null)
            {
                return(index.ToString());
            }
            var entryName = tintEntries.GetEntryName(index) ??
                            $"<Tint layer index not found in {race.name}>";

            return($"{index} {entryName}");
        }
Beispiel #2
0
 internal override ValueElement GetParamElement(ValueElement element)
 {
     return(element?.GetElement(@"..\..\CIS2") as ValueElement);
 }