Skip to content

Commit

Permalink
Merge pull request #75430 from ehughsbaird/show-om-tileset-id
Browse files Browse the repository at this point in the history
Show tileset id along with debug overmap info
  • Loading branch information
Maleclypse authored Aug 4, 2024
2 parents 60a8ba0 + 20bd503 commit 5dca8af
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/overmap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1081,6 +1081,7 @@ nc_color oter_t::get_color( om_vision_level vision, const bool from_land_use_cod

std::string oter_t::get_tileset_id( om_vision_level vision ) const
{
// If this changes, be sure to change the debug display on the overmap ui to not strip the prefix!
if( type->vision_levels->viewed( vision ) != nullptr ) {
return string_format( "vl#%s$%s", type->vision_levels.str(), io::enum_to_string( vision ) );
}
Expand Down
3 changes: 3 additions & 0 deletions src/overmap_ui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1060,6 +1060,9 @@ static void draw_om_sidebar(
oter.get_rotation() );
mvwprintz( wbar, point( 1, ++lines ), c_white,
"oter_type: %s", oter.get_type_id().str() );
// tileset ids come with a prefix that must be stripped
mvwprintz( wbar, point( 1, ++lines ), c_white,
"tileset id: '%s'", oter.get_tileset_id( center_vision ).substr( 3 ) );
std::vector<oter_id> predecessors = overmap_buffer.predecessors( center );
if( !predecessors.empty() ) {
mvwprintz( wbar, point( 1, ++lines ), c_white, "predecessors:" );
Expand Down

0 comments on commit 5dca8af

Please sign in to comment.