@ -1062,7 +1062,7 @@ public:
{
{
df : : unit * selected_unit = ( selected_column = = 1 ) ? dwarf_activity_column . getFirstSelectedElem ( ) : nullptr ;
df : : unit * selected_unit = ( selected_column = = 1 ) ? dwarf_activity_column . getFirstSelectedElem ( ) : nullptr ;
Screen : : dismiss ( this ) ;
Screen : : dismiss ( this ) ;
Screen : : show ( new ViewscreenDwarfStats ( selected_unit ) , plugin_self ) ;
Screen : : show ( dts : : make_unique < ViewscreenDwarfStats > ( selected_unit ) , plugin_self ) ;
}
}
else if ( input - > count ( interface_key : : CUSTOM_SHIFT_Z ) )
else if ( input - > count ( interface_key : : CUSTOM_SHIFT_Z ) )
{
{
@ -1643,7 +1643,7 @@ public:
{
{
auto unitscr = df : : allocate < df : : viewscreen_unitst > ( ) ;
auto unitscr = df : : allocate < df : : viewscreen_unitst > ( ) ;
unitscr - > unit = unit ;
unitscr - > unit = unit ;
Screen : : show ( unitscr) ;
Screen : : show ( std: : unique_ptr < df : : viewscreen > ( unitscr) ) ;
}
}
}
}
else if ( input - > count ( interface_key : : CUSTOM_SHIFT_Z ) )
else if ( input - > count ( interface_key : : CUSTOM_SHIFT_Z ) )
@ -1737,7 +1737,7 @@ private:
static void open_stats_screen ( )
static void open_stats_screen ( )
{
{
Screen : : show ( new ViewscreenFortStats ( ) , plugin_self ) ;
Screen : : show ( dts : : make_unique < ViewscreenFortStats > ( ) , plugin_self ) ;
}
}
static void add_work_history ( df : : unit * unit , activity_type type )
static void add_work_history ( df : : unit * unit , activity_type type )
@ -1977,12 +1977,12 @@ static command_result dwarfmonitor_cmd(color_ostream &out, vector <string> & par
else if ( cmd = = ' s ' | | cmd = = ' S ' )
else if ( cmd = = ' s ' | | cmd = = ' S ' )
{
{
if ( Maps : : IsValid ( ) )
if ( Maps : : IsValid ( ) )
Screen : : show ( new ViewscreenFortStats ( ) , plugin_self ) ;
Screen : : show ( dts : : make_unique < ViewscreenFortStats > ( ) , plugin_self ) ;
}
}
else if ( cmd = = ' p ' | | cmd = = ' P ' )
else if ( cmd = = ' p ' | | cmd = = ' P ' )
{
{
if ( Maps : : IsValid ( ) )
if ( Maps : : IsValid ( ) )
Screen : : show ( new ViewscreenPreferences ( ) , plugin_self ) ;
Screen : : show ( dts : : make_unique < ViewscreenPreferences > ( ) , plugin_self ) ;
}
}
else if ( cmd = = ' r ' | | cmd = = ' R ' )
else if ( cmd = = ' r ' | | cmd = = ' R ' )
{
{