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 --- csgo_images.qrc | 33 ++++++++++++++-- parse_file.cpp | 44 +++++++++++++++++++++ parse_file.h | 5 +++ stats_display_window.cpp | 63 +++++++++++++++++++++++------- stats_display_window.h | 8 +++- stats_display_window.ui | 82 +++++++++++++++++++++++++++++++--------- user_select_dialog.cpp | 15 ++++++++ user_select_dialog.h | 7 ++++ weapons/ak47.png | Bin 13352 -> 899 bytes weapons/aug.png | Bin 13048 -> 1060 bytes weapons/awp.png | Bin 9509 -> 586 bytes weapons/bizon.png | Bin 16292 -> 1599 bytes weapons/cz75a.png | Bin 0 -> 1637 bytes weapons/deagle.png | Bin 11812 -> 645 bytes weapons/decoy.png | Bin 0 -> 980 bytes weapons/decoy_impact.png | Bin 0 -> 2198 bytes weapons/domination.png | Bin 0 -> 1127 bytes weapons/elite.png | Bin 19207 -> 1001 bytes weapons/famas.png | Bin 13738 -> 868 bytes weapons/fiveseven.png | Bin 10752 -> 562 bytes weapons/flashbang.png | Bin 0 -> 1144 bytes weapons/flashbang_impact.png | Bin 0 -> 2198 bytes weapons/g3sg1.png | Bin 11262 -> 966 bytes weapons/galil.png | Bin 0 -> 896 bytes weapons/galilar.png | Bin 13944 -> 0 bytes weapons/glock.png | Bin 8708 -> 606 bytes weapons/grenade.png | Bin 0 -> 756 bytes weapons/headshot.png | Bin 0 -> 753 bytes weapons/hegrenade.png | Bin 9162 -> 821 bytes weapons/hegrenade_impact.png | Bin 0 -> 2094 bytes weapons/hkp2000.png | Bin 8376 -> 846 bytes weapons/incgreande.png | Bin 0 -> 766 bytes weapons/incgreande_impact.png | Bin 0 -> 2441 bytes weapons/knife.png | Bin 34170 -> 1386 bytes weapons/m249.png | Bin 15132 -> 0 bytes weapons/m4.png | Bin 14944 -> 0 bytes weapons/m4a1.png | Bin 0 -> 1300 bytes weapons/mac10.png | Bin 10180 -> 938 bytes weapons/mag7.png | Bin 8815 -> 1009 bytes weapons/molotov.png | Bin 0 -> 646 bytes weapons/molotov_impact.png | Bin 0 -> 2258 bytes weapons/mp7.png | Bin 10298 -> 996 bytes weapons/mpn.png | Bin 0 -> 1218 bytes weapons/negev.png | Bin 15850 -> 1800 bytes weapons/nova.png | Bin 10379 -> 1154 bytes weapons/p250.png | Bin 11730 -> 841 bytes weapons/p90.png | Bin 16426 -> 814 bytes weapons/penetrate.png | Bin 0 -> 867 bytes weapons/revenge.png | Bin 0 -> 1757 bytes weapons/revolver.png | Bin 0 -> 998 bytes weapons/sawedoff.png | Bin 7111 -> 1100 bytes weapons/scar17.png | Bin 0 -> 1327 bytes weapons/scar20.png | Bin 12024 -> 1750 bytes weapons/scout.png | Bin 0 -> 745 bytes weapons/sg550.png | Bin 0 -> 842 bytes weapons/sg552.png | Bin 0 -> 1019 bytes weapons/sg556.png | Bin 14664 -> 1282 bytes weapons/smokegrenade.png | Bin 0 -> 589 bytes weapons/smokegrenade_impact.png | Bin 0 -> 2287 bytes weapons/ssg08.png | Bin 12112 -> 1391 bytes weapons/suicide.png | Bin 0 -> 1026 bytes weapons/taser.png | Bin 0 -> 1071 bytes weapons/tec9.png | Bin 9724 -> 999 bytes weapons/ump45.png | Bin 12000 -> 949 bytes weapons/usp.png | Bin 0 -> 1009 bytes weapons/xm1014.png | Bin 11950 -> 745 bytes weapons2/ak47.png | Bin 0 -> 13352 bytes weapons2/ak472.png | Bin 0 -> 899 bytes weapons2/aug.png | Bin 0 -> 13048 bytes weapons2/awp.png | Bin 0 -> 9509 bytes weapons2/bizon.png | Bin 0 -> 16292 bytes weapons2/deagle.png | Bin 0 -> 11812 bytes weapons2/elite.png | Bin 0 -> 19207 bytes weapons2/famas.png | Bin 0 -> 13738 bytes weapons2/fiveseven.png | Bin 0 -> 10752 bytes weapons2/g3sg1.png | Bin 0 -> 11262 bytes weapons2/galilar.png | Bin 0 -> 13944 bytes weapons2/glock.png | Bin 0 -> 8708 bytes weapons2/hegrenade.png | Bin 0 -> 9162 bytes weapons2/hkp2000.png | Bin 0 -> 8376 bytes weapons2/knife.png | Bin 0 -> 34170 bytes weapons2/m249.png | Bin 0 -> 15132 bytes weapons2/m4.png | Bin 0 -> 14944 bytes weapons2/mac10.png | Bin 0 -> 10180 bytes weapons2/mag7.png | Bin 0 -> 8815 bytes weapons2/mp7.png | Bin 0 -> 10298 bytes weapons2/negev.png | Bin 0 -> 15850 bytes weapons2/nova.png | Bin 0 -> 10379 bytes weapons2/p250.png | Bin 0 -> 11730 bytes weapons2/p90.png | Bin 0 -> 16426 bytes weapons2/sawedoff.png | Bin 0 -> 7111 bytes weapons2/scar20.png | Bin 0 -> 12024 bytes weapons2/sg556.png | Bin 0 -> 14664 bytes weapons2/ssg08.png | Bin 0 -> 12112 bytes weapons2/tec9.png | Bin 0 -> 9724 bytes weapons2/ump45.png | Bin 0 -> 12000 bytes weapons2/xm1014.png | Bin 0 -> 11950 bytes 97 files changed, 222 insertions(+), 35 deletions(-) create mode 100644 weapons/cz75a.png create mode 100644 weapons/decoy.png create mode 100644 weapons/decoy_impact.png create mode 100644 weapons/domination.png create mode 100644 weapons/flashbang.png create mode 100644 weapons/flashbang_impact.png create mode 100644 weapons/galil.png delete mode 100644 weapons/galilar.png create mode 100644 weapons/grenade.png create mode 100644 weapons/headshot.png create mode 100644 weapons/hegrenade_impact.png create mode 100644 weapons/incgreande.png create mode 100644 weapons/incgreande_impact.png delete mode 100644 weapons/m249.png delete mode 100644 weapons/m4.png create mode 100644 weapons/m4a1.png create mode 100644 weapons/molotov.png create mode 100644 weapons/molotov_impact.png create mode 100644 weapons/mpn.png create mode 100644 weapons/penetrate.png create mode 100644 weapons/revenge.png create mode 100644 weapons/revolver.png create mode 100644 weapons/scar17.png create mode 100644 weapons/scout.png create mode 100644 weapons/sg550.png create mode 100644 weapons/sg552.png create mode 100644 weapons/smokegrenade.png create mode 100644 weapons/smokegrenade_impact.png create mode 100644 weapons/suicide.png create mode 100644 weapons/taser.png create mode 100644 weapons/usp.png create mode 100644 weapons2/ak47.png create mode 100644 weapons2/ak472.png create mode 100644 weapons2/aug.png create mode 100644 weapons2/awp.png create mode 100644 weapons2/bizon.png create mode 100644 weapons2/deagle.png create mode 100644 weapons2/elite.png create mode 100644 weapons2/famas.png create mode 100644 weapons2/fiveseven.png create mode 100644 weapons2/g3sg1.png create mode 100644 weapons2/galilar.png create mode 100644 weapons2/glock.png create mode 100644 weapons2/hegrenade.png create mode 100644 weapons2/hkp2000.png create mode 100644 weapons2/knife.png create mode 100644 weapons2/m249.png create mode 100644 weapons2/m4.png create mode 100644 weapons2/mac10.png create mode 100644 weapons2/mag7.png create mode 100644 weapons2/mp7.png create mode 100644 weapons2/negev.png create mode 100644 weapons2/nova.png create mode 100644 weapons2/p250.png create mode 100644 weapons2/p90.png create mode 100644 weapons2/sawedoff.png create mode 100644 weapons2/scar20.png create mode 100644 weapons2/sg556.png create mode 100644 weapons2/ssg08.png create mode 100644 weapons2/tec9.png create mode 100644 weapons2/ump45.png create mode 100644 weapons2/xm1014.png diff --git a/csgo_images.qrc b/csgo_images.qrc index 6d5f5ae..40362d2 100644 --- a/csgo_images.qrc +++ b/csgo_images.qrc @@ -8,31 +8,56 @@ weapons/aug.png weapons/awp.png weapons/bizon.png + weapons/cz75a.png weapons/deagle.png + weapons/decoy.png + weapons/decoy_impact.png + weapons/domination.png weapons/elite.png weapons/famas.png weapons/fiveseven.png + weapons/flashbang.png + weapons/flashbang_impact.png weapons/g3sg1.png - weapons/galilar.png + weapons/galil.png weapons/glock.png + weapons/grenade.png + weapons/headshot.png weapons/hegrenade.png + weapons/hegrenade_impact.png weapons/hkp2000.png + weapons/incgreande.png + weapons/incgreande_impact.png weapons/knife.png - weapons/m4.png - weapons/m249.png + weapons/m4a1.png weapons/mac10.png weapons/mag7.png + weapons/molotov.png + weapons/molotov_impact.png weapons/mp7.png + weapons/mpn.png weapons/negev.png weapons/nova.png - weapons/p90.png weapons/p250.png + weapons/p90.png + weapons/penetrate.png + weapons/revenge.png + weapons/revolver.png weapons/sawedoff.png + weapons/scar17.png weapons/scar20.png + weapons/scout.png + weapons/sg550.png + weapons/sg552.png weapons/sg556.png + weapons/smokegrenade.png + weapons/smokegrenade_impact.png weapons/ssg08.png + weapons/suicide.png + weapons/taser.png weapons/tec9.png weapons/ump45.png + weapons/usp.png weapons/xm1014.png diff --git a/parse_file.cpp b/parse_file.cpp index b939a7d..2193a04 100644 --- a/parse_file.cpp +++ b/parse_file.cpp @@ -47,3 +47,47 @@ QString parse_file::parse_csgo_data(QString option) } return "null"; } + +void parse_file::parse_users() +{ + /* + * This function populates our dropdown menu with users + * + * example users.dat file: + * + * daniel_j=76561198055087665 + * ScruffyRules=76561198046533376 + * + */ + usernames.clear(); + userids.clear(); + + QFile inputFile("users.dat"); + if (inputFile.open(QIODevice::ReadOnly)) + { + QTextStream in(&inputFile); + while (!in.atEnd()) + { + QString line = in.readLine(); + if (line.contains("=")) + { + usernames.append(line.split("=")[0]); + userids.append(line.split("=")[1]); + } + } + inputFile.close(); + } else + { + qDebug() << "No users loaded."; + } +} + +QStringList parse_file::get_usernames() +{ + return usernames; +} + +QStringList parse_file::get_ids() +{ + return userids; +} diff --git a/parse_file.h b/parse_file.h index 3ee8b0d..e12a66f 100644 --- a/parse_file.h +++ b/parse_file.h @@ -10,6 +10,11 @@ public: parse_file(); QString parse_user_data(QString option, QString split); QString parse_csgo_data(QString option); + void parse_users(); /* parse file */ + QStringList get_usernames(); /* returns pre parsed data */ + QStringList get_ids(); /* returns pre parsed data */ + QStringList usernames; + QStringList userids; }; #endif // PARSE_FILE_H diff --git a/stats_display_window.cpp b/stats_display_window.cpp index 1b71f7e..ffe3569 100644 --- a/stats_display_window.cpp +++ b/stats_display_window.cpp @@ -69,8 +69,8 @@ void stats_display_window::setup_user() void stats_display_window::setup_csgo_data() { /* most of the things in this function are images */ - int w = 100; - int h = 50; + int w = 80; + int h = 40; ui->weapon_table->setColumnCount(2); ui->weapon_table->setRowCount(29); /* mvp */ @@ -83,6 +83,17 @@ void stats_display_window::setup_csgo_data() user.time_ingame = parse.parse_csgo_data("total_time_played"); QString time_in_game = "Hours in CS:GO: " + QString::number(user.time_ingame.toInt() / 3600); ui->time_in_label->setText(time_in_game); + /* total kills */ + user.total_kills = parse.parse_csgo_data("total_kill"); + ui->total_kills_label->setText("Total kills: " + QString::number(user.total_kills.toInt())); + /* total deaths */ + user.total_deaths = parse.parse_csgo_data("total_deaths"); + ui->total_deaths_label->setText("Total deaths: " + QString::number(user.total_deaths.toInt())); + /* k/d ratio */ + user.kd_ratio = QString::number(user.total_kills.toFloat() / user.total_deaths.toFloat()).toFloat(); + ui->kd_ratio_label->setText("K/D Ratio: " + QString::number(user.kd_ratio)); + /* WEAPONS */ + /* awp */ QLabel *awp_label = new QLabel(this); QLabel *awp_kills_label = new QLabel(this); @@ -107,7 +118,7 @@ void stats_display_window::setup_csgo_data() QLabel *deagle_label = new QLabel(this); QLabel *deagle_kills_label = new QLabel(this); QPixmap deagle(":/weapons/weapons/deagle.png"); - deagle_label->setPixmap(deagle.scaled(w / 2, h)); + deagle_label->setPixmap(deagle.scaled(w, h)); user.deagle_kills = parse.parse_csgo_data("total_kills_deagle"); QString deagle_kills_text = user.deagle_kills + " kills"; deagle_kills_label->setText(deagle_kills_text); @@ -116,7 +127,7 @@ void stats_display_window::setup_csgo_data() /* m4 */ QLabel *m4_label = new QLabel(this); QLabel *m4_kills_label = new QLabel(this); - QPixmap m4(":/weapons/weapons/m4.png"); + QPixmap m4(":/weapons/weapons/m4a1.png"); m4_label->setPixmap(m4.scaled(w, h)); user.m4_kills = parse.parse_csgo_data("total_kills_m4"); QString m4_kills_text = user.m4_kills + " kills"; @@ -167,7 +178,7 @@ void stats_display_window::setup_csgo_data() QLabel *fiveseven_label = new QLabel(this); QLabel *fiveseven_kills_label = new QLabel(this); QPixmap fiveseven(":/weapons/weapons/fiveseven.png"); - fiveseven_label->setPixmap(fiveseven.scaled(w / 2, h)); + fiveseven_label->setPixmap(fiveseven.scaled(w , h)); user.fiveseven_kills = parse.parse_csgo_data("total_kills_fiveseven"); QString fiveseven_kills_text = user.fiveseven_kills + " kills"; fiveseven_kills_label->setText(fiveseven_kills_text); @@ -186,7 +197,7 @@ void stats_display_window::setup_csgo_data() /* galilar */ QLabel *galilar_label = new QLabel(this); QLabel *galilar_kills_label = new QLabel(this); - QPixmap galilar(":/weapons/weapons/galilar.png"); + QPixmap galilar(":/weapons/weapons/galil.png"); galilar_label->setPixmap(galilar.scaled(w, h)); user.galilar_kills = parse.parse_csgo_data("total_kills_galilar"); QString galilar_kills_text = user.galilar_kills + " kills"; @@ -197,7 +208,7 @@ void stats_display_window::setup_csgo_data() QLabel *glock_label = new QLabel(this); QLabel *glock_kills_label = new QLabel(this); QPixmap glock(":/weapons/weapons/glock.png"); - glock_label->setPixmap(glock.scaled(w / 2, h)); + glock_label->setPixmap(glock.scaled(w , h)); user.glock_kills = parse.parse_csgo_data("total_kills_glock"); QString glock_kills_text = user.glock_kills + " kills"; glock_kills_label->setText(glock_kills_text); @@ -217,7 +228,7 @@ void stats_display_window::setup_csgo_data() QLabel *hkp2000_label = new QLabel(this); QLabel *hkp2000_kills_label = new QLabel(this); QPixmap hkp2000(":/weapons/weapons/hkp2000.png"); - hkp2000_label->setPixmap(hkp2000.scaled(w / 2, h)); + hkp2000_label->setPixmap(hkp2000.scaled(w , h)); user.hkp2000_kills = parse.parse_csgo_data("total_kills_hkp2000"); QString hkp2000_kills_text = user.hkp2000_kills + " kills"; hkp2000_kills_label->setText(hkp2000_kills_text); @@ -227,7 +238,7 @@ void stats_display_window::setup_csgo_data() QLabel *knife_label = new QLabel(this); QLabel *knife_kills_label = new QLabel(this); QPixmap knife(":/weapons/weapons/knife.png"); - knife_label->setPixmap(knife.scaled(w / 2, h)); + knife_label->setPixmap(knife.scaled(w, h / 2)); user.knife_kills = parse.parse_csgo_data("total_kills_knife"); QString knife_kills_text = user.knife_kills + " kills"; knife_kills_label->setText(knife_kills_text); @@ -237,7 +248,7 @@ void stats_display_window::setup_csgo_data() QLabel *mac10_label = new QLabel(this); QLabel *mac10_kills_label = new QLabel(this); QPixmap mac10(":/weapons/weapons/mac10.png"); - mac10_label->setPixmap(mac10.scaled(w / 2, h)); + mac10_label->setPixmap(mac10.scaled(w , h)); user.mac10_kills = parse.parse_csgo_data("total_kills_mac10"); QString mac10_kills_text = user.mac10_kills + " kills"; mac10_kills_label->setText(mac10_kills_text); @@ -257,7 +268,7 @@ void stats_display_window::setup_csgo_data() QLabel *mp7_label = new QLabel(this); QLabel *mp7_kills_label = new QLabel(this); QPixmap mp7(":/weapons/weapons/mp7.png"); - mp7_label->setPixmap(mp7.scaled(w / 2, h)); + mp7_label->setPixmap(mp7.scaled(w , h)); user.mp7_kills = parse.parse_csgo_data("total_kills_mp7"); QString mp7_kills_text = user.mp7_kills + " kills"; mp7_kills_label->setText(mp7_kills_text); @@ -287,7 +298,7 @@ void stats_display_window::setup_csgo_data() QLabel *p250_label = new QLabel(this); QLabel *p250_kills_label = new QLabel(this); QPixmap p250(":/weapons/weapons/p250.png"); - p250_label->setPixmap(p250.scaled(w / 2, h)); + p250_label->setPixmap(p250.scaled(w , h)); user.p250_kills = parse.parse_csgo_data("total_kills_p250"); QString p250_kills_text = user.p250_kills + " kills"; p250_kills_label->setText(p250_kills_text); @@ -347,7 +358,7 @@ void stats_display_window::setup_csgo_data() QLabel *tec9_label = new QLabel(this); QLabel *tec9_kills_label = new QLabel(this); QPixmap tec9(":/weapons/weapons/tec9.png"); - tec9_label->setPixmap(tec9.scaled(w / 2, h)); + tec9_label->setPixmap(tec9.scaled(w , h)); user.tec9_kills = parse.parse_csgo_data("total_kills_tec9"); QString tec9_kills_text = user.tec9_kills + " kills"; tec9_kills_label->setText(tec9_kills_text); @@ -373,6 +384,7 @@ void stats_display_window::setup_csgo_data() xm1014_kills_label->setText(xm1014_kills_text); ui->weapon_table->setCellWidget(28, 0, xm1014_label); ui->weapon_table->setCellWidget(28, 1, xm1014_kills_label); + /* holy shit, find a better way to do this */ } void stats_display_window::reload_profile() @@ -398,6 +410,21 @@ void stats_display_window::reload_profile() } } +void stats_display_window::load_players() +{ + /* fill our lists and dropdown box with user data */ + ui->users_dropdown->clear(); + usernames.clear(); + userids.clear(); + parse.parse_users(); + usernames = parse.get_usernames(); + userids = parse.get_ids(); + for (int x = 0; x < usernames.length(); x++) + { + ui->users_dropdown->addItem(usernames.at(x)); + } +} + void stats_display_window::showEvent(QShowEvent *ev) { emit window_loaded(); @@ -409,18 +436,28 @@ void stats_display_window::window_open() * this slot is called when our stats window is opened * we will call our user setup function * we will then call our csgo data setup function + * we then need to load our players into the drop down box and lists */ setup_user(); setup_csgo_data(); + load_players(); } void stats_display_window::on_refresh_button_clicked() { reload_profile(); + load_players(); } void stats_display_window::on_new_id_button_clicked() { user.user_64id = ui->new_steam_id->text(); reload_profile(); + load_players(); +} + +void stats_display_window::on_users_dropdown_currentIndexChanged(int index) +{ + if (!usernames.isEmpty() && index != -1) + ui->new_steam_id->setText(userids.at(index)); } 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 diff --git a/stats_display_window.ui b/stats_display_window.ui index dcbace5..9023077 100644 --- a/stats_display_window.ui +++ b/stats_display_window.ui @@ -24,13 +24,30 @@ - + - New steam account ID here + New Steam account ID here + + + + Close + + + + + + + New ID + + + + + + @@ -69,13 +86,6 @@ - - - - MVP_IMAGE - - - @@ -90,6 +100,34 @@ + + + + total kills + + + + + + + total deaths + + + + + + + K/D ratio + + + + + + + MVP_IMAGE + + + @@ -165,15 +203,25 @@ - - - - New ID - - - - + + + close_button + clicked() + stats_display_window + close() + + + 259 + 382 + + + 177 + 386 + + + + diff --git a/user_select_dialog.cpp b/user_select_dialog.cpp index 6a6f4b2..1ba0593 100644 --- a/user_select_dialog.cpp +++ b/user_select_dialog.cpp @@ -6,6 +6,7 @@ user_select_dialog::user_select_dialog(QWidget *parent) : ui(new Ui::user_select_dialog) { ui->setupUi(this); + load_players(); } user_select_dialog::~user_select_dialog() @@ -49,6 +50,8 @@ void user_select_dialog::download_info() { qDebug() << "Downloaded everything"; /* file could be ANYTHING or empty! */ n_window.show(); + usernames.clear(); + userids.clear(); this->hide(); } else @@ -63,5 +66,17 @@ void user_select_dialog::download_info() void user_select_dialog::load_players() { + parse.parse_users(); + usernames = parse.get_usernames(); + userids = parse.get_ids(); + for (int x = 0; x < usernames.length(); x++) + { + ui->player_dropdown->addItem(usernames.at(x)); + } +} +void user_select_dialog::on_player_dropdown_currentIndexChanged(int index) +{ + if (!usernames.isEmpty()) + ui->steam_url_text->setText(userids.at(index)); } diff --git a/user_select_dialog.h b/user_select_dialog.h index 3420bad..5e8253f 100644 --- a/user_select_dialog.h +++ b/user_select_dialog.h @@ -3,8 +3,10 @@ #include #include +#include #include "file_download.h" #include "stats_display_window.h" +#include "parse_file.h" namespace Ui { class user_select_dialog; @@ -21,12 +23,17 @@ public: private slots: void on_select_account_button_clicked(); + void on_player_dropdown_currentIndexChanged(int index); + private: Ui::user_select_dialog *ui; file_download download; stats_display_window n_window; + parse_file parse; void download_info(); void load_players(); + QStringList usernames; + QStringList userids; }; #endif // USER_SELECT_DIALOG_H diff --git a/weapons/ak47.png b/weapons/ak47.png index 2f42900..9c95e48 100644 Binary files a/weapons/ak47.png and b/weapons/ak47.png differ diff --git a/weapons/aug.png b/weapons/aug.png index dc36dc8..b6e5be2 100644 Binary files a/weapons/aug.png and b/weapons/aug.png differ diff --git a/weapons/awp.png b/weapons/awp.png index 35f7218..b61853c 100644 Binary files a/weapons/awp.png and b/weapons/awp.png differ diff --git a/weapons/bizon.png b/weapons/bizon.png index 2c6787b..f0bbc7d 100644 Binary files a/weapons/bizon.png and b/weapons/bizon.png differ diff --git a/weapons/cz75a.png b/weapons/cz75a.png new file mode 100644 index 0000000..d5a8ba9 Binary files /dev/null and b/weapons/cz75a.png differ diff --git a/weapons/deagle.png b/weapons/deagle.png index 7242a50..91cc1cd 100644 Binary files a/weapons/deagle.png and b/weapons/deagle.png differ diff --git a/weapons/decoy.png b/weapons/decoy.png new file mode 100644 index 0000000..78077ef Binary files /dev/null and b/weapons/decoy.png differ diff --git a/weapons/decoy_impact.png b/weapons/decoy_impact.png new file mode 100644 index 0000000..dd58723 Binary files /dev/null and b/weapons/decoy_impact.png differ diff --git a/weapons/domination.png b/weapons/domination.png new file mode 100644 index 0000000..9c9e8b5 Binary files /dev/null and b/weapons/domination.png differ diff --git a/weapons/elite.png b/weapons/elite.png index ad54d7b..b7752e3 100644 Binary files a/weapons/elite.png and b/weapons/elite.png differ diff --git a/weapons/famas.png b/weapons/famas.png index 5765214..0881cf2 100644 Binary files a/weapons/famas.png and b/weapons/famas.png differ diff --git a/weapons/fiveseven.png b/weapons/fiveseven.png index fc686b9..1a56666 100644 Binary files a/weapons/fiveseven.png and b/weapons/fiveseven.png differ diff --git a/weapons/flashbang.png b/weapons/flashbang.png new file mode 100644 index 0000000..b8439ce Binary files /dev/null and b/weapons/flashbang.png differ diff --git a/weapons/flashbang_impact.png b/weapons/flashbang_impact.png new file mode 100644 index 0000000..dd58723 Binary files /dev/null and b/weapons/flashbang_impact.png differ diff --git a/weapons/g3sg1.png b/weapons/g3sg1.png index 74fdb23..1e28143 100644 Binary files a/weapons/g3sg1.png and b/weapons/g3sg1.png differ diff --git a/weapons/galil.png b/weapons/galil.png new file mode 100644 index 0000000..e45807f Binary files /dev/null and b/weapons/galil.png differ diff --git a/weapons/galilar.png b/weapons/galilar.png deleted file mode 100644 index 1ef8a5c..0000000 Binary files a/weapons/galilar.png and /dev/null differ diff --git a/weapons/glock.png b/weapons/glock.png index 5cebb4a..fff7fc6 100644 Binary files a/weapons/glock.png and b/weapons/glock.png differ diff --git a/weapons/grenade.png b/weapons/grenade.png new file mode 100644 index 0000000..6b0fb26 Binary files /dev/null and b/weapons/grenade.png differ diff --git a/weapons/headshot.png b/weapons/headshot.png new file mode 100644 index 0000000..38fc625 Binary files /dev/null and b/weapons/headshot.png differ diff --git a/weapons/hegrenade.png b/weapons/hegrenade.png index ad175be..f37d5de 100644 Binary files a/weapons/hegrenade.png and b/weapons/hegrenade.png differ diff --git a/weapons/hegrenade_impact.png b/weapons/hegrenade_impact.png new file mode 100644 index 0000000..4c2793b Binary files /dev/null and b/weapons/hegrenade_impact.png differ diff --git a/weapons/hkp2000.png b/weapons/hkp2000.png index 6891efa..43665ad 100644 Binary files a/weapons/hkp2000.png and b/weapons/hkp2000.png differ diff --git a/weapons/incgreande.png b/weapons/incgreande.png new file mode 100644 index 0000000..2aa1b07 Binary files /dev/null and b/weapons/incgreande.png differ diff --git a/weapons/incgreande_impact.png b/weapons/incgreande_impact.png new file mode 100644 index 0000000..1ae4ad4 Binary files /dev/null and b/weapons/incgreande_impact.png differ diff --git a/weapons/knife.png b/weapons/knife.png index f614ed7..28329b7 100644 Binary files a/weapons/knife.png and b/weapons/knife.png differ diff --git a/weapons/m249.png b/weapons/m249.png deleted file mode 100644 index 6095922..0000000 Binary files a/weapons/m249.png and /dev/null differ diff --git a/weapons/m4.png b/weapons/m4.png deleted file mode 100644 index 2fe2db7..0000000 Binary files a/weapons/m4.png and /dev/null differ diff --git a/weapons/m4a1.png b/weapons/m4a1.png new file mode 100644 index 0000000..700e301 Binary files /dev/null and b/weapons/m4a1.png differ diff --git a/weapons/mac10.png b/weapons/mac10.png index d05c3c2..c862676 100644 Binary files a/weapons/mac10.png and b/weapons/mac10.png differ diff --git a/weapons/mag7.png b/weapons/mag7.png index 5fa1541..d88324b 100644 Binary files a/weapons/mag7.png and b/weapons/mag7.png differ diff --git a/weapons/molotov.png b/weapons/molotov.png new file mode 100644 index 0000000..983e33f Binary files /dev/null and b/weapons/molotov.png differ diff --git a/weapons/molotov_impact.png b/weapons/molotov_impact.png new file mode 100644 index 0000000..051a40e Binary files /dev/null and b/weapons/molotov_impact.png differ diff --git a/weapons/mp7.png b/weapons/mp7.png index 4bbf199..ef27b31 100644 Binary files a/weapons/mp7.png and b/weapons/mp7.png differ diff --git a/weapons/mpn.png b/weapons/mpn.png new file mode 100644 index 0000000..908dcf7 Binary files /dev/null and b/weapons/mpn.png differ diff --git a/weapons/negev.png b/weapons/negev.png index 3dc15dc..453f03d 100644 Binary files a/weapons/negev.png and b/weapons/negev.png differ diff --git a/weapons/nova.png b/weapons/nova.png index c85a1d5..a759e4a 100644 Binary files a/weapons/nova.png and b/weapons/nova.png differ diff --git a/weapons/p250.png b/weapons/p250.png index 1013168..a005908 100644 Binary files a/weapons/p250.png and b/weapons/p250.png differ diff --git a/weapons/p90.png b/weapons/p90.png index 6eceaa3..2b1d5d0 100644 Binary files a/weapons/p90.png and b/weapons/p90.png differ diff --git a/weapons/penetrate.png b/weapons/penetrate.png new file mode 100644 index 0000000..5fc0073 Binary files /dev/null and b/weapons/penetrate.png differ diff --git a/weapons/revenge.png b/weapons/revenge.png new file mode 100644 index 0000000..f4618aa Binary files /dev/null and b/weapons/revenge.png differ diff --git a/weapons/revolver.png b/weapons/revolver.png new file mode 100644 index 0000000..b945557 Binary files /dev/null and b/weapons/revolver.png differ diff --git a/weapons/sawedoff.png b/weapons/sawedoff.png index 4335ef5..a440e24 100644 Binary files a/weapons/sawedoff.png and b/weapons/sawedoff.png differ diff --git a/weapons/scar17.png b/weapons/scar17.png new file mode 100644 index 0000000..3faf47d Binary files /dev/null and b/weapons/scar17.png differ diff --git a/weapons/scar20.png b/weapons/scar20.png index 1cda9f9..c71ecac 100644 Binary files a/weapons/scar20.png and b/weapons/scar20.png differ diff --git a/weapons/scout.png b/weapons/scout.png new file mode 100644 index 0000000..9437ebe Binary files /dev/null and b/weapons/scout.png differ diff --git a/weapons/sg550.png b/weapons/sg550.png new file mode 100644 index 0000000..65bcfc0 Binary files /dev/null and b/weapons/sg550.png differ diff --git a/weapons/sg552.png b/weapons/sg552.png new file mode 100644 index 0000000..483ffac Binary files /dev/null and b/weapons/sg552.png differ diff --git a/weapons/sg556.png b/weapons/sg556.png index b777b98..0fcae10 100644 Binary files a/weapons/sg556.png and b/weapons/sg556.png differ diff --git a/weapons/smokegrenade.png b/weapons/smokegrenade.png new file mode 100644 index 0000000..ed12214 Binary files /dev/null and b/weapons/smokegrenade.png differ diff --git a/weapons/smokegrenade_impact.png b/weapons/smokegrenade_impact.png new file mode 100644 index 0000000..107687a Binary files /dev/null and b/weapons/smokegrenade_impact.png differ diff --git a/weapons/ssg08.png b/weapons/ssg08.png index 1992ef1..cae430a 100644 Binary files a/weapons/ssg08.png and b/weapons/ssg08.png differ diff --git a/weapons/suicide.png b/weapons/suicide.png new file mode 100644 index 0000000..0468e5a Binary files /dev/null and b/weapons/suicide.png differ diff --git a/weapons/taser.png b/weapons/taser.png new file mode 100644 index 0000000..64a4442 Binary files /dev/null and b/weapons/taser.png differ diff --git a/weapons/tec9.png b/weapons/tec9.png index a3f2717..e73e3e1 100644 Binary files a/weapons/tec9.png and b/weapons/tec9.png differ diff --git a/weapons/ump45.png b/weapons/ump45.png index 9e3ede9..3075ad4 100644 Binary files a/weapons/ump45.png and b/weapons/ump45.png differ diff --git a/weapons/usp.png b/weapons/usp.png new file mode 100644 index 0000000..db7a44c Binary files /dev/null and b/weapons/usp.png differ diff --git a/weapons/xm1014.png b/weapons/xm1014.png index fc41286..6dbe910 100644 Binary files a/weapons/xm1014.png and b/weapons/xm1014.png differ diff --git a/weapons2/ak47.png b/weapons2/ak47.png new file mode 100644 index 0000000..2f42900 Binary files /dev/null and b/weapons2/ak47.png differ diff --git a/weapons2/ak472.png b/weapons2/ak472.png new file mode 100644 index 0000000..9c95e48 Binary files /dev/null and b/weapons2/ak472.png differ diff --git a/weapons2/aug.png b/weapons2/aug.png new file mode 100644 index 0000000..dc36dc8 Binary files /dev/null and b/weapons2/aug.png differ diff --git a/weapons2/awp.png b/weapons2/awp.png new file mode 100644 index 0000000..35f7218 Binary files /dev/null and b/weapons2/awp.png differ diff --git a/weapons2/bizon.png b/weapons2/bizon.png new file mode 100644 index 0000000..2c6787b Binary files /dev/null and b/weapons2/bizon.png differ diff --git a/weapons2/deagle.png b/weapons2/deagle.png new file mode 100644 index 0000000..7242a50 Binary files /dev/null and b/weapons2/deagle.png differ diff --git a/weapons2/elite.png b/weapons2/elite.png new file mode 100644 index 0000000..ad54d7b Binary files /dev/null and b/weapons2/elite.png differ diff --git a/weapons2/famas.png b/weapons2/famas.png new file mode 100644 index 0000000..5765214 Binary files /dev/null and b/weapons2/famas.png differ diff --git a/weapons2/fiveseven.png b/weapons2/fiveseven.png new file mode 100644 index 0000000..fc686b9 Binary files /dev/null and b/weapons2/fiveseven.png differ diff --git a/weapons2/g3sg1.png b/weapons2/g3sg1.png new file mode 100644 index 0000000..74fdb23 Binary files /dev/null and b/weapons2/g3sg1.png differ diff --git a/weapons2/galilar.png b/weapons2/galilar.png new file mode 100644 index 0000000..1ef8a5c Binary files /dev/null and b/weapons2/galilar.png differ diff --git a/weapons2/glock.png b/weapons2/glock.png new file mode 100644 index 0000000..5cebb4a Binary files /dev/null and b/weapons2/glock.png differ diff --git a/weapons2/hegrenade.png b/weapons2/hegrenade.png new file mode 100644 index 0000000..ad175be Binary files /dev/null and b/weapons2/hegrenade.png differ diff --git a/weapons2/hkp2000.png b/weapons2/hkp2000.png new file mode 100644 index 0000000..6891efa Binary files /dev/null and b/weapons2/hkp2000.png differ diff --git a/weapons2/knife.png b/weapons2/knife.png new file mode 100644 index 0000000..f614ed7 Binary files /dev/null and b/weapons2/knife.png differ diff --git a/weapons2/m249.png b/weapons2/m249.png new file mode 100644 index 0000000..6095922 Binary files /dev/null and b/weapons2/m249.png differ diff --git a/weapons2/m4.png b/weapons2/m4.png new file mode 100644 index 0000000..2fe2db7 Binary files /dev/null and b/weapons2/m4.png differ diff --git a/weapons2/mac10.png b/weapons2/mac10.png new file mode 100644 index 0000000..d05c3c2 Binary files /dev/null and b/weapons2/mac10.png differ diff --git a/weapons2/mag7.png b/weapons2/mag7.png new file mode 100644 index 0000000..5fa1541 Binary files /dev/null and b/weapons2/mag7.png differ diff --git a/weapons2/mp7.png b/weapons2/mp7.png new file mode 100644 index 0000000..4bbf199 Binary files /dev/null and b/weapons2/mp7.png differ diff --git a/weapons2/negev.png b/weapons2/negev.png new file mode 100644 index 0000000..3dc15dc Binary files /dev/null and b/weapons2/negev.png differ diff --git a/weapons2/nova.png b/weapons2/nova.png new file mode 100644 index 0000000..c85a1d5 Binary files /dev/null and b/weapons2/nova.png differ diff --git a/weapons2/p250.png b/weapons2/p250.png new file mode 100644 index 0000000..1013168 Binary files /dev/null and b/weapons2/p250.png differ diff --git a/weapons2/p90.png b/weapons2/p90.png new file mode 100644 index 0000000..6eceaa3 Binary files /dev/null and b/weapons2/p90.png differ diff --git a/weapons2/sawedoff.png b/weapons2/sawedoff.png new file mode 100644 index 0000000..4335ef5 Binary files /dev/null and b/weapons2/sawedoff.png differ diff --git a/weapons2/scar20.png b/weapons2/scar20.png new file mode 100644 index 0000000..1cda9f9 Binary files /dev/null and b/weapons2/scar20.png differ diff --git a/weapons2/sg556.png b/weapons2/sg556.png new file mode 100644 index 0000000..b777b98 Binary files /dev/null and b/weapons2/sg556.png differ diff --git a/weapons2/ssg08.png b/weapons2/ssg08.png new file mode 100644 index 0000000..1992ef1 Binary files /dev/null and b/weapons2/ssg08.png differ diff --git a/weapons2/tec9.png b/weapons2/tec9.png new file mode 100644 index 0000000..a3f2717 Binary files /dev/null and b/weapons2/tec9.png differ diff --git a/weapons2/ump45.png b/weapons2/ump45.png new file mode 100644 index 0000000..9e3ede9 Binary files /dev/null and b/weapons2/ump45.png differ diff --git a/weapons2/xm1014.png b/weapons2/xm1014.png new file mode 100644 index 0000000..fc41286 Binary files /dev/null and b/weapons2/xm1014.png differ -- cgit v1.2.3