diff options
| author | David Skoland <davidskoland@gmail.com> | 2017-02-02 17:37:47 +0100 |
|---|---|---|
| committer | David Skoland <davidskoland@gmail.com> | 2017-02-02 17:37:47 +0100 |
| commit | de7d25962f62a62ba282c35d1a64c740affd53db (patch) | |
| tree | b783e9da1013a85c6d8194fac6e7f3a4e76e3342 /courtroom.h | |
| parent | 051d9dc4ddde110b3916a7019c0a4e12ad35a245 (diff) | |
added dynamic resolution scaling
Diffstat (limited to 'courtroom.h')
| -rw-r--r-- | courtroom.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/courtroom.h b/courtroom.h index eb660b93..1cb11494 100644 --- a/courtroom.h +++ b/courtroom.h @@ -52,11 +52,6 @@ public: QString get_default_background_path(); int get_cid() {return m_cid;} - int get_vp_x(){return m_viewport_x;} - int get_vp_y(){return m_viewport_y;} - int get_vp_w(){return m_viewport_width;} - int get_vp_h(){return m_viewport_height;} - void enter_courtroom(int p_cid); @@ -88,6 +83,9 @@ private: QSignalMapper *char_button_mapper; + //triggers ping_server() every 60 seconds + QTimer *keepalive_timer; + //determines how fast messages tick onto screen QTimer *chat_tick_timer; int chat_tick_interval = 60; @@ -129,10 +127,13 @@ private: AOImage *ui_background; + //ui_viewport is the parent of all the viewport widgets + QWidget *ui_viewport; AOScene *ui_vp_background; AOCharMovie *ui_vp_player_char; AOScene *ui_vp_desk; AOScene *ui_vp_legacy_desk; + //AOImage *ui_vp_legacy_padding; AOImage *ui_vp_chatbox; QLabel *ui_vp_showname; QPlainTextEdit *ui_vp_message; @@ -244,6 +245,8 @@ private slots: void char_clicked(int n_char); + void ping_server(); + }; #endif // COURTROOM_H |
