Example #1
0
    public static Color GetStateColor(SteamKit2.EPersonaState state)
    {
        switch (state)
        {
        case SteamKit2.EPersonaState.Online:
            return(ONLINE_COLOR);

        case SteamKit2.EPersonaState.Away:
            return(AWAY_COLOR);

        case SteamKit2.EPersonaState.Busy:
            return(BUSY_COLOR);

        case SteamKit2.EPersonaState.Snooze:
            return(SNOOZE_COLOR);

        case SteamKit2.EPersonaState.Invisible:
            return(INVISIBLE_COLOR);

        case SteamKit2.EPersonaState.Offline:
            return(OFFLINE_COLOR);

        default:
            return(Color.white);
        }
    }
Example #2
0
 public void SetPersonaState(IntPtr _, SteamKit2.EPersonaState state)
 {
     var result = Client.ClientPipe.CallSerializedFunction(PipeId, new Core.IPC.SerializedFunction()
     {
         ClientId    = ClientId,
         InterfaceId = InterfaceId,
         Name        = "SetPersonaState",
         Args        = new object[] { state },
     });
 }
Example #3
0
 public void SetPersonaState(SteamKit2.EPersonaState state) => f.SetLocalState(state);