1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-12-06 21:16:34 +01:00

Add groupchat side panel & add new callback

This commit is contained in:
Jfreegman
2013-11-23 21:19:59 -05:00
parent d8da80914d
commit f84ece13de
8 changed files with 88 additions and 30 deletions

View File

@@ -2,4 +2,18 @@
* Toxic -- Tox Curses Client
*/
/* The sidebar will take up y/n of the window width where x is the full width of the window */
#define SIDEBAR_WIDTH 16
#define CHATBOX_HEIGHT 4
/* Limits # of peers in sidepanel (make this go away) */
#define MAX_GROUP_PEERS 100
typedef struct {
int chatwin;
bool active;
int num_peers;
uint8_t peer_names[MAX_GROUP_PEERS][TOX_MAX_NAME_LENGTH];
} GroupChat;
int init_groupchat_win(ToxWindow *prompt, Tox *m, int groupnum);