From 9eab8eeed7512f24fbcf4444a07ce63ab721cb53 Mon Sep 17 00:00:00 2001 From: Brian Miyaji Date: Thu, 17 Sep 2015 12:26:58 +1000 Subject: [PATCH] Update presets --- presets/team-sports/baseball.json | 1 - presets/team-sports/cricket.json | 1 - presets/team-sports/ice-hockey.json | 1 - presets/team-sports/soccer.json | 36 ++++++++++++++++++----------- presets/team-sports/softball.json | 1 - 5 files changed, 23 insertions(+), 17 deletions(-) diff --git a/presets/team-sports/baseball.json b/presets/team-sports/baseball.json index b761bd59..c88ed7d8 100644 --- a/presets/team-sports/baseball.json +++ b/presets/team-sports/baseball.json @@ -79,7 +79,6 @@ "event_teams" : "2", "sportspress_event_hide_child_positions" : "yes", "event_show_players" : "yes", - "event_show_extras" : "no", "event_show_total" : "yes", "sportspress_event_results_reverse_teams" : "yes", "sportspress_event_performance_mode" : "values", diff --git a/presets/team-sports/cricket.json b/presets/team-sports/cricket.json index 2100f86b..d42ac2bf 100644 --- a/presets/team-sports/cricket.json +++ b/presets/team-sports/cricket.json @@ -50,7 +50,6 @@ "options": { "event_teams" : "2", "event_show_players" : "yes", - "event_show_extras" : "yes", "event_show_total" : "yes", "sportspress_event_performance_mode" : "values", "event_show_player_numbers" : "no", diff --git a/presets/team-sports/ice-hockey.json b/presets/team-sports/ice-hockey.json index 94365324..a4350462 100644 --- a/presets/team-sports/ice-hockey.json +++ b/presets/team-sports/ice-hockey.json @@ -59,7 +59,6 @@ "options": { "event_teams" : "2", "event_show_players" : "yes", - "event_show_extras" : "no", "event_show_total" : "yes", "sportspress_event_performance_mode" : "values", "event_show_player_numbers" : "yes", diff --git a/presets/team-sports/soccer.json b/presets/team-sports/soccer.json index e50cfd7f..0415b2b0 100644 --- a/presets/team-sports/soccer.json +++ b/presets/team-sports/soccer.json @@ -7,9 +7,9 @@ "Forward" ], "outcomes": [ - { "name" : "Win", "condition" : ">" }, - { "name" : "Draw", "condition" : "=" }, - { "name" : "Loss", "condition" : "<" } + { "name" : "Win", "condition" : ">", "description" : "Wins" }, + { "name" : "Draw", "condition" : "=", "description" : "Draws" }, + { "name" : "Loss", "condition" : "<", "description" : "Losses" } ], "results": [ { "name" : "1st Half", "description" : "1st half goals" }, @@ -17,10 +17,10 @@ { "name" : "Goals", "description" : "Total goals", "primary" : 1 } ], "performance": [ - "Goals", - "Assists", - "Yellow Cards", - "Red Cards" + { "name" : "Goals", "description" : "Goals", "icon" : "soccerball", "color" : "#222222" }, + { "name" : "Assists", "description" : "Assists", "icon" : "shoe", "color" : "#222222" }, + { "name" : "Yellow Cards", "description" : "Yellow cards", "icon" : "card", "color" : "#f4d014" }, + { "name" : "Red Cards", "description" : "Red cards", "icon" : "card", "color" : "#d4000f" } ], "columns": [ { "name" : "P", "equation" : "$eventsplayed", "description" : "Matches played" }, @@ -33,13 +33,23 @@ { "name" : "Pts", "equation" : "$win * 3 + $draw", "priority" : 1, "description" : "Team points" } ], "metrics": [ - "Height", - "Weight" + { "name" : "Height", "description" : "Player height" }, + { "name" : "Weight", "description" : "Player weight" } ], "statistics": [ { "name" : "Appearances", "equation" : "$eventsplayed", "description" : "Matches played" }, - { "name" : "Win Ratio", "equation" : "$win / $eventsplayed * 100", "precision" : 2 }, - { "name" : "Draw Ratio", "equation" : "$draw / $eventsplayed * 100", "precision" : 2 }, - { "name" : "Loss Ratio", "equation" : "$loss / $eventsplayed * 100", "precision" : 2 } - ] + { "name" : "Win Ratio", "equation" : "$win / $eventsplayed * 100", "precision" : 2, "description" : "Win ratio" }, + { "name" : "Draw Ratio", "equation" : "$draw / $eventsplayed * 100", "precision" : 2, "description" : "Draw ratio" }, + { "name" : "Loss Ratio", "equation" : "$loss / $eventsplayed * 100", "precision" : 2, "description" : "Loss ratio" } + ], + "options": { + "event_teams" : "2", + "event_show_players" : "yes", + "event_show_total" : "no", + "sportspress_event_performance_mode" : "icons", + "event_show_player_numbers" : "yes", + "event_split_players_by_team" : "yes", + "event_split_players_by_position" : "no", + "sportspress_event_total_performance" : "all" + } } \ No newline at end of file diff --git a/presets/team-sports/softball.json b/presets/team-sports/softball.json index fa94ad2b..d6558d13 100644 --- a/presets/team-sports/softball.json +++ b/presets/team-sports/softball.json @@ -77,7 +77,6 @@ "event_teams" : "2", "sportspress_event_hide_child_positions" : "yes", "event_show_players" : "yes", - "event_show_extras" : "no", "event_show_total" : "yes", "sportspress_event_results_reverse_teams" : "yes", "sportspress_event_performance_mode" : "values",