Add mp_pick_kill_type

This commit is contained in:
Alexander Batalov 2023-07-24 08:55:43 +03:00
parent c1258cbb4c
commit e9f3b34888
1 changed files with 22 additions and 0 deletions

View File

@ -4,11 +4,14 @@
#include "color.h" #include "color.h"
#include "combat_ai.h" #include "combat_ai.h"
#include "critter.h"
#include "memory.h" #include "memory.h"
#include "window_manager_private.h" #include "window_manager_private.h"
namespace fallout { namespace fallout {
static int mp_pick_kill_type();
// 0x559C60 // 0x559C60
bool can_modify_protos = false; bool can_modify_protos = false;
@ -18,6 +21,25 @@ void init_mapper_protos()
// TODO: Incomplete. // 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 // 0x497568
int proto_pick_ai_packet(int* value) int proto_pick_ai_packet(int* value)
{ {