Skip to content

Commit d4e07a6

Browse files
committed
feat(vehicle): overhaul paint/other rgb capable things and removed useless functions
1 parent 9154152 commit d4e07a6

File tree

3 files changed

+2
-31
lines changed

3 files changed

+2
-31
lines changed

vMenu/menus/MpPedCustomization.cs

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1099,35 +1099,6 @@ private void CreateMenu()
10991099
inheritanceMenu.AddMenuItem(inheritanceShapeMix);
11001100
inheritanceMenu.AddMenuItem(inheritanceSkinMix);
11011101

1102-
// formula from maintransition.#sc
1103-
float GetMinimum()
1104-
{
1105-
return currentCharacter.IsMale ? 0.05f : 0.3f;
1106-
}
1107-
1108-
float GetMaximum()
1109-
{
1110-
return currentCharacter.IsMale ? 0.7f : 0.95f;
1111-
}
1112-
1113-
float ClampMix(int value)
1114-
{
1115-
var sliderFraction = mixValues[value];
1116-
var min = GetMinimum();
1117-
var max = GetMaximum();
1118-
1119-
return min + (sliderFraction * (max - min));
1120-
}
1121-
1122-
int UnclampMix(float value)
1123-
{
1124-
var min = GetMinimum();
1125-
var max = GetMaximum();
1126-
1127-
var origFraction = (value - min) / (max - min);
1128-
return Math.Max(Math.Min((int)(origFraction * 10), 10), 0);
1129-
}
1130-
11311102
inheritanceMenu.OnListIndexChange += (_menu, listItem, oldSelectionIndex, newSelectionIndex, itemIndex) =>
11321103
{
11331104
_parentOne = inheritanceParentOne.ListIndex;

vMenu/vMenuClient.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
<Reference Include="Microsoft.CSharp" />
2222

23-
<PackageReference Include="CitizenFX.Core.Client" Version="1.0.10188">
23+
<PackageReference Include="CitizenFX.Core.Client" Version="1.0.21321">
2424
<ExcludeAssets>runtime</ExcludeAssets>
2525
</PackageReference>
2626

vMenuServer/vMenuServer.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<ItemGroup>
2222
<Reference Include="Microsoft.CSharp" />
2323

24-
<PackageReference Include="CitizenFX.Core.Server" Version="1.0.8883">
24+
<PackageReference Include="CitizenFX.Core.Server" Version="1.0.21314">
2525
<ExcludeAssets>runtime</ExcludeAssets>
2626
</PackageReference>
2727

0 commit comments

Comments
 (0)