Skip to content

Commit 8e234de

Browse files
committed
feat(ecs): Stop showing a gametext style for all players
1 parent c09a54e commit 8e234de

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

src/SampSharp.Entities/SAMP/Services/IWorldService.cs

+9
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,15 @@ PlayerTextLabel CreatePlayerTextLabel(EntityId player, string text, Color color,
211211
/// <param name="style">The style of text to be displayed.</param>
212212
void GameText(string text, int time, int style);
213213

214+
/// <summary>
215+
/// Stop showing a gametext style for all players.
216+
/// </summary>
217+
/// <param name="style">The style of text to hide.</param>
218+
/// <remarks>
219+
/// This function was added in <c>omp v1.1.0.2612</c> and will not work in earlier versions!
220+
/// </remarks>
221+
void HideGameText(int style);
222+
214223
/// <summary>Creates an explosion for all players.</summary>
215224
/// <param name="position">The position of the explosion.</param>
216225
/// <param name="type">The explosion type.</param>

src/SampSharp.Entities/SAMP/Services/WorldService.cs

+6
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,12 @@ public void GameText(string text, int time, int style)
323323
_native.GameTextForAll(text, time, style);
324324
}
325325

326+
/// <inheritdoc />
327+
public void HideGameText(int style)
328+
{
329+
_native.HideGameTextForAll(style);
330+
}
331+
326332
/// <inheritdoc />
327333
public void CreateExplosion(Vector3 position, ExplosionType type, float radius)
328334
{

src/SampSharp.Entities/SAMP/Services/WorldServiceNative.cs

+6
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,12 @@ public virtual bool GameTextForAll(string text, int time, int style)
138138
throw new NativeNotImplementedException();
139139
}
140140

141+
[NativeMethod]
142+
public virtual void HideGameTextForAll(int style)
143+
{
144+
throw new NativeNotImplementedException();
145+
}
146+
141147
[NativeMethod]
142148
public virtual bool CreateExplosion(float x, float y, float z, int type, float radius)
143149
{

0 commit comments

Comments
 (0)