
Due to a countless number of changes made to the core that were not fully understood, tested, or documented, it was decided to roll everything back to the last known stable version (2.6.2). Changes dropped include: - Witness needed - Shake - Frame SFX - Multiple custom objections - Multithreaded thumbnail generation - Looping - Various translation additions - "Mirror IC" - Color in IC log - An invocation of clang-format Next time, work together and split your big fork into independently testable feature branches.
96 lines
2.0 KiB
C++
96 lines
2.0 KiB
C++
#ifndef LOBBY_H
|
|
#define LOBBY_H
|
|
|
|
#include "aoimage.h"
|
|
#include "aobutton.h"
|
|
#include "aopacket.h"
|
|
#include "aotextarea.h"
|
|
|
|
#include <QMainWindow>
|
|
#include <QListWidget>
|
|
#include <QLabel>
|
|
#include <QPlainTextEdit>
|
|
#include <QLineEdit>
|
|
#include <QProgressBar>
|
|
#include <QTextBrowser>
|
|
|
|
#include <QDebug>
|
|
#include <QScrollBar>
|
|
|
|
class AOApplication;
|
|
|
|
class Lobby : public QMainWindow
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
Lobby(AOApplication *p_ao_app);
|
|
|
|
void set_widgets();
|
|
void list_servers();
|
|
void list_favorites();
|
|
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_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;
|
|
|
|
~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;
|
|
|
|
QListWidget *ui_server_list;
|
|
|
|
QLabel *ui_player_count;
|
|
AOTextArea *ui_description;
|
|
|
|
AOTextArea *ui_chatbox;
|
|
|
|
QLineEdit *ui_chatname;
|
|
QLineEdit *ui_chatmessage;
|
|
|
|
AOImage *ui_loading_background;
|
|
QTextEdit *ui_loading_text;
|
|
QProgressBar *ui_progress_bar;
|
|
AOButton *ui_cancel;
|
|
|
|
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_server_list_clicked(QModelIndex p_model);
|
|
void on_chatfield_return_pressed();
|
|
};
|
|
|
|
#endif // LOBBY_H
|