rconService.getUsers() will get and parse the userdata

PlayerInfo displays Info and provide a link to steam profile
Dropdown in the Playerlist offers more options the selected Player
This commit is contained in:
alexfriesen
2016-05-18 14:10:03 +02:00
parent 7a6a1e13fc
commit 172ee95216
5 changed files with 107 additions and 10 deletions
+3 -3
View File
@@ -3,14 +3,14 @@ app.controller( 'PlayerListController', PlayerListController );
function PlayerListController( $scope, rconService, $interval )
{
$scope.Output = new Array();
$scope.Output = [];
$scope.OrderBy = '-ConnectedSeconds';
$scope.Refresh = function ()
{
rconService.Request( "playerlist", $scope, function ( msg )
rconService.getUsers($scope, function ( users )
{
$scope.Players = JSON.parse( msg.Message );
$scope.Players = users;
});
}