Skip to content

Commit

Permalink
C# PlayerListHandler: add a configurable position.
Browse files Browse the repository at this point in the history
  • Loading branch information
manups4e committed Apr 12, 2024
1 parent 9f9cbf8 commit 580684c
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ public class PlayerListHandler
internal ScaleformWideScreen _sc { get; set; }
private int Index { get; set; } = 0;
public int MaxPages { get; set; } = 1;
public Vector2 Position { get => position; set => position = value; }

public List<PlayerRow> PlayerRows { get; set; }
private int currentPage = 0;
private Vector2 position = new Vector2(0.122f, 0.3f);

public int CurrentPage
{
Expand Down Expand Up @@ -126,7 +128,7 @@ private void UpdateMaxPages()

internal void Update()
{
API.DrawScaleformMovie(_sc.Handle, 0.122f, 0.3f, 0.28f, 0.6f, 255, 255, 255, 255, 0);
API.DrawScaleformMovie(_sc.Handle, Position.X, Position.Y, 0.28f, 0.6f, 255, 255, 255, 255, 0);
if (_start != 0 && Main.GameTime - _start > _timer)
{
CurrentPage = 0;
Expand Down

0 comments on commit 580684c

Please sign in to comment.