Add mp_pick_kill_type

This commit is contained in:
Alexander Batalov 2023-07-24 08:55:43 +03:00
parent c1258cbb4c
commit e9f3b34888

View File

@ -4,11 +4,14 @@
#include "color.h"
#include "combat_ai.h"
#include "critter.h"
#include "memory.h"
#include "window_manager_private.h"
namespace fallout {
static int mp_pick_kill_type();
// 0x559C60
bool can_modify_protos = false;
@ -18,6 +21,25 @@ void init_mapper_protos()
// TODO: Incomplete.
}
// 0x497520
int mp_pick_kill_type()
{
char* names[KILL_TYPE_COUNT];
int index;
for (index = 0; index < KILL_TYPE_COUNT; index++) {
names[index] = killTypeGetName(index);
}
return _win_list_select("Kill Type",
names,
KILL_TYPE_COUNT,
NULL,
50,
100,
_colorTable[15855]);
}
// 0x497568
int proto_pick_ai_packet(int* value)
{