From 913e3fb6422dac9a1a7d5ce4cd02b4afaac31758 Mon Sep 17 00:00:00 2001 From: bigfoot547 Date: Fri, 1 Dec 2023 22:08:31 -0600 Subject: readme --- README.md | 2 ++ src/ui/root.c | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0ed4b5f..578b198 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ # Unnamed Minecraft Protocol Snooper (UMPS) This project aims to be a general purpose program for snooping on the Minecraft Java Edition network protocol. +**NOTE**: This project is very WIP and currently only contains some basic UI code. Come back later for actual stuff maybe. + These are the features that are intended for the future: - Online-mode authentication with a Mojang token - Proxy mode diff --git a/src/ui/root.c b/src/ui/root.c index fd82ea6..eeeb1b9 100644 --- a/src/ui/root.c +++ b/src/ui/root.c @@ -151,8 +151,10 @@ void ui__root_draw_menu(struct ui_window_root *root) text = ui__root_get_menu_text(item); size_t tlen = strlen(text); - if (item == root->menu_selected) + if (item == root->menu_selected) { wattroff(root->menu_cwindow, A_REVERSE); + /* the coordinates of the selected menu item are here, place the window :) */ + } ui__root_scroll_text(root, cursor, text, tlen); -- cgit v1.2.3-70-g09d2