Skip to content

Commit

Permalink
Merge pull request #795 from mrreus/patch-1
Browse files Browse the repository at this point in the history
Retrieve player objects material colors in a ARGB format
  • Loading branch information
Hual authored Dec 3, 2023
2 parents 5490c87 + 49894e3 commit a00777d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Server/Components/Pawn/Scripting/Object/PlayerNatives.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ SCRIPT_API(GetPlayerObjectMaterial, bool(IPlayer& player, IPlayerObject& object,
{
textureLibrary = data->textOrTXD;
textureName = data->fontOrTexture;
materialColour = data->materialColour.RGBA();
materialColour = data->materialColour.ARGB();
}
return result;
}
Expand All @@ -259,8 +259,8 @@ SCRIPT_API(GetPlayerObjectMaterialText, bool(IPlayer& player, IPlayerObject& obj
fontFace = data->fontOrTexture;
fontSize = data->fontSize;
bold = data->bold;
fontColour = data->fontColour.RGBA();
backgroundColour = data->backgroundColour.RGBA();
fontColour = data->fontColour.ARGB();
backgroundColour = data->backgroundColour.ARGB();
textAlignment = data->alignment;
}
return result;
Expand Down

0 comments on commit a00777d

Please sign in to comment.