Skip to content

Utilities.SetStateChanged doesn't update UI #1190

@soilin

Description

@soilin

Seems that something is still not working correctly in Utilities.SetStateChanged.
It's not throwing an error, but it's not updating the ui either.

An easy way to test this is

public static void SetMoney(this CCSPlayerController player, int amount)
{
    var moneyServices = player.InGameMoneyServices;
    if (moneyServices == null)
        return;

    moneyServices.Account = amount;
    Utilities.SetStateChanged(player, "CCSPlayerController", "m_pInGameMoneyServices");
}

The Offset is wrong, it should be 28 for Linux instead of 26

Metadata

Metadata

Assignees

No one assigned

    Labels

    untriagedNew issue has not been triaged

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions