From 8cc48cf52a94e9b8c29fc6ae9f2f6e9d94be57d2 Mon Sep 17 00:00:00 2001 From: Alexander Batalov Date: Sun, 23 Jul 2023 09:55:58 +0300 Subject: [PATCH] Add update_high_obj_name --- src/mapper/mapper.cc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/mapper/mapper.cc b/src/mapper/mapper.cc index a555404..81d7ac7 100644 --- a/src/mapper/mapper.cc +++ b/src/mapper/mapper.cc @@ -13,6 +13,7 @@ namespace fallout { static void redraw_toolname(); static void clear_toolname(); +static void update_high_obj_name(Object* obj); static int mapper_mark_exit_grid(); static void mapper_mark_all_exit_grids(); @@ -43,6 +44,19 @@ void clear_toolname() redraw_toolname(); } +// 0x48B5BC +void update_high_obj_name(Object* obj) +{ + Proto* proto; + + if (protoGetProto(obj->pid, &proto) != -1) { + windowDrawText(tool_win, protoGetName(obj->pid), 120, _scr_size.right - _scr_size.left - 149, 60, 260); + windowDrawText(tool_win, "", 120, _scr_size.right - _scr_size.left - 149, 70, 260); + windowDrawText(tool_win, "", 120, _scr_size.right - _scr_size.left - 149, 80, 260); + redraw_toolname(); + } +} + // 0x48C604 int mapper_inven_unwield(Object* obj, int right_hand) {