record dialogue and shop help buttons

This commit is contained in:
2024-08-29 21:06:36 -05:00
committed by Celtic Minstrel
parent 18d7bb2508
commit 9b862d848f
3 changed files with 5 additions and 3 deletions

View File

@@ -1778,7 +1778,7 @@ void show_inventory() {
// Most give_help() calls don't need to be recorded, because
// they are triggered incidentally by other recorded actions.
static void give_help_and_record(short help1, short help2) {
void give_help_and_record(short help1, short help2) {
if(recording){
std::map<std::string,std::string> info;
std::ostringstream sstr;

View File

@@ -94,5 +94,6 @@ void handle_print_pc_sp(int which_pc);
void handle_trade_places(int which_pc);
void handle_begin_talk(bool& need_reprint);
void handle_talk(location destination, bool& did_something, bool& need_redraw, bool& need_reprint);
void give_help_and_record(short help1, short help2);
#endif

View File

@@ -59,6 +59,7 @@ extern sf::RenderWindow mini_map;
extern cUniverse univ;
extern sf::Texture pc_gworld;
extern std::map<eSkill,short> skill_max;
extern void give_help_and_record(short help1, short help2);
short sign_mode,person_graphic,store_person_graphic,store_sign_mode;
long num_talk_entries;
@@ -213,7 +214,7 @@ void handle_shop_event(location p, cFramerateLimiter& fps_limiter) {
if(p.in(talk_help_rect)) {
if(!help_btn->handleClick(p, fps_limiter))
return;
give_help(226,27);
give_help_and_record(226,27);
return;
}
@@ -719,7 +720,7 @@ void handle_talk_event(location p, cFramerateLimiter& fps_limiter) {
if(p.in(talk_help_rect)) {
if(!help_btn->handleClick(p, fps_limiter))
return;
give_help(205,6);
give_help_and_record(205,6);
return;
}