Add redraw_toolname

This commit is contained in:
Alexander Batalov 2023-07-23 09:49:22 +03:00
parent 1366b050b0
commit 480094a3eb
2 changed files with 20 additions and 0 deletions

View File

@ -6,15 +6,33 @@
#include "inventory.h"
#include "object.h"
#include "proto.h"
#include "svga.h"
#include "window_manager.h"
namespace fallout {
static void redraw_toolname();
static int mapper_mark_exit_grid();
static void mapper_mark_all_exit_grids();
// 0x559748
MapTransition mapInfo = { -1, -1, 0, 0 };
// 0x6EC4AC
int tool_win;
// 0x48B230
void redraw_toolname()
{
Rect rect;
rect.left = _scr_size.right - _scr_size.left - 149;
rect.top = 60;
rect.right = _scr_size.right - _scr_size.left + 1;
rect.bottom = 95;
windowRefreshRect(tool_win, &rect);
}
// 0x48C604
int mapper_inven_unwield(Object* obj, int right_hand)
{

View File

@ -8,6 +8,8 @@ namespace fallout {
extern MapTransition mapInfo;
extern int tool_win;
int mapper_inven_unwield(Object* obj, int right_hand);
} // namespace fallout