
* try this matrix thing * syntax error * use my own qt installer so it actually works * allow changing path * whoops cant have it twice * get the right version of discord rpc * get correct bass * try to fix windows * overwrite bass files * forgot to delete these * here's your version bro * what did we even use catch2 for?? * linux doesnt have a c folder * android bass * switch from cmake to qmake * opus dylib * we don't install * put bass in a subfolder so we don't build the stupid examples * was using wrong arch for android * fix up gitignore * get correct artifact folder * lets hope qmake will ignore the ABI for all the other platforms * use platform name for artifact * copy dlls into bin folder * lmao i yeeted the folder * create folder * use more recent mingw * windows uses dlls * 2017 doesn't work * our libs are 64 bit * install msvc * shitty ms documentation * ok ms * wrong directory for deploy * copy apng * use correct image for msvc2019 * deploy android * 32bit windows it is * adroideploy * try this * Update build.yml * move libs * armeabi-v7a * fix android build files * only get linux bass for linux * don't try to install discord on android * deploy mac * get rid of double permission warning * define filename for APK * add mac dependencies * put android bass in the correct folder * mac apng * android apng * remove old CI * ask for storage permissions * qt bug .......... * update clang-tidy-review * update everything * fuck you lukka * fuck you jurplel for merging that shitty PR that broke everything * give it what it wants * Update clang-tidy-review.yml * github is failing it because it's too big * wait for the user and request a proper permission string * underscore moment * use write external storage instead * try this instead * 082 fails with docker again
111 lines
2.5 KiB
C++
111 lines
2.5 KiB
C++
#ifndef LOBBY_H
|
|
#define LOBBY_H
|
|
|
|
#include "aobutton.h"
|
|
#include "aoimage.h"
|
|
#include "aopacket.h"
|
|
#include "aotextarea.h"
|
|
|
|
#include <QLabel>
|
|
#include <QLineEdit>
|
|
#include <QListWidget>
|
|
#include <QMainWindow>
|
|
#include <QPlainTextEdit>
|
|
#include <QProgressBar>
|
|
#include <QTextBrowser>
|
|
#include <QTreeWidget>
|
|
#include <QDebug>
|
|
#include <QScrollBar>
|
|
#include <QHeaderView>
|
|
#ifdef ANDROID
|
|
#include <QtAndroidExtras/QtAndroid>
|
|
#endif
|
|
|
|
class AOApplication;
|
|
|
|
class Lobby : public QMainWindow {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
Lobby(AOApplication *p_ao_app);
|
|
|
|
void set_widgets();
|
|
void list_servers();
|
|
void list_favorites();
|
|
void get_motd();
|
|
void check_for_updates();
|
|
void append_chatmessage(QString f_name, QString f_message);
|
|
void append_error(QString f_message);
|
|
void set_player_count(int players_online, int max_players);
|
|
void set_server_description(const QString& server_description);
|
|
void set_stylesheet(QWidget *widget);
|
|
void set_stylesheets();
|
|
void set_fonts();
|
|
void set_font(QWidget *widget, QString p_identifier);
|
|
void set_loading_text(QString p_text);
|
|
void show_loading_overlay() { ui_loading_background->show(); }
|
|
void hide_loading_overlay() { ui_loading_background->hide(); }
|
|
QString get_chatlog();
|
|
int get_selected_server();
|
|
void enable_connect_button();
|
|
|
|
void set_loading_value(int p_value);
|
|
|
|
bool public_servers_selected = true;
|
|
bool doubleclicked = false;
|
|
|
|
~Lobby();
|
|
|
|
private:
|
|
AOApplication *ao_app;
|
|
|
|
AOImage *ui_background;
|
|
|
|
AOButton *ui_public_servers;
|
|
AOButton *ui_favorites;
|
|
|
|
AOButton *ui_refresh;
|
|
AOButton *ui_add_to_fav;
|
|
AOButton *ui_connect;
|
|
|
|
QLabel *ui_version;
|
|
AOButton *ui_about;
|
|
|
|
AOButton *ui_settings;
|
|
|
|
QTreeWidget *ui_server_list;
|
|
QLineEdit *ui_server_search;
|
|
|
|
QLabel *ui_player_count;
|
|
AOTextArea *ui_description;
|
|
|
|
AOTextArea *ui_chatbox;
|
|
|
|
AOImage *ui_loading_background;
|
|
QTextEdit *ui_loading_text;
|
|
QProgressBar *ui_progress_bar;
|
|
AOButton *ui_cancel;
|
|
|
|
int last_index = -1;
|
|
|
|
void set_size_and_pos(QWidget *p_widget, QString p_identifier);
|
|
|
|
private slots:
|
|
void on_public_servers_clicked();
|
|
void on_favorites_clicked();
|
|
|
|
void on_refresh_pressed();
|
|
void on_refresh_released();
|
|
void on_add_to_fav_pressed();
|
|
void on_add_to_fav_released();
|
|
void on_connect_pressed();
|
|
void on_connect_released();
|
|
void on_about_clicked();
|
|
void on_settings_clicked();
|
|
void on_server_list_clicked(QTreeWidgetItem *p_item, int column);
|
|
void on_server_list_doubleclicked(QTreeWidgetItem *p_item, int column);
|
|
void on_server_search_edited(QString p_text);
|
|
};
|
|
|
|
#endif // LOBBY_H
|