From 536bc6c7a1ea06769566f0558071ed92afaf57cd Mon Sep 17 00:00:00 2001 From: daniel-Jones Date: Wed, 27 Jul 2016 17:27:44 +0930 Subject: Added the ability to select users from file - see source code for file example. you can dynamically refresh the stats and info to any person on the list/with a new ID. Added weapon icons from the games iconlibs.swf file; the images were ugly. added a few new stats etc --- stats_display_window.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'stats_display_window.h') diff --git a/stats_display_window.h b/stats_display_window.h index 2784e6f..6504d7f 100644 --- a/stats_display_window.h +++ b/stats_display_window.h @@ -27,6 +27,7 @@ private: void setup_user(); void setup_csgo_data(); void reload_profile(); + void load_players(); struct user_info { /* contains our user data for both steam and csgo */ QString username; @@ -36,6 +37,9 @@ private: QString status; QString time_ingame; QString mvp_count; + QString total_kills; + QString total_deaths; + float kd_ratio; /* weapon stats */ QString ak47_kills; QString deagle_kills; @@ -68,9 +72,10 @@ private: QString ump45_kills; QString xm1014_kills; } user; - file_download download; parse_file parse; + QStringList usernames; + QStringList userids; signals: void window_loaded(); @@ -78,6 +83,7 @@ private slots: void window_open(); void on_refresh_button_clicked(); void on_new_id_button_clicked(); + void on_users_dropdown_currentIndexChanged(int index); }; #endif // STATS_DISPLAY_WINDOW_H -- cgit v1.2.3