mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2026-01-03 06:13:45 +01:00
Add lip opacity migration for Nova.
This commit is contained in:
parent
8a9fa98706
commit
50b1b64141
1 changed files with 9 additions and 0 deletions
|
|
@ -471,6 +471,7 @@ public class DesignBase
|
||||||
design.GetDesignDataRef().Parameters[flag] = new CustomizeParameterValue(r, g, b, a);
|
design.GetDesignDataRef().Parameters[flag] = new CustomizeParameterValue(r, g, b, a);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
MigrateLipOpacity();
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// Load the token and set application.
|
// Load the token and set application.
|
||||||
|
|
@ -488,6 +489,14 @@ public class DesignBase
|
||||||
design.GetDesignDataRef().Parameters[flag] = CustomizeParameterValue.Zero;
|
design.GetDesignDataRef().Parameters[flag] = CustomizeParameterValue.Zero;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void MigrateLipOpacity()
|
||||||
|
{
|
||||||
|
var token = parameters!["LipOpacity"]?["Percentage"]?.ToObject<float>();
|
||||||
|
var actualToken = parameters![CustomizeParameterFlag.LipDiffuse]?["Alpha"];
|
||||||
|
if (token != null && actualToken == null)
|
||||||
|
design.GetDesignDataRef().Parameters.LipDiffuse.W = token.Value;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected static void LoadEquip(ItemManager items, JToken? equip, DesignBase design, string name, bool allowUnknown)
|
protected static void LoadEquip(ItemManager items, JToken? equip, DesignBase design, string name, bool allowUnknown)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue