@ -40,6 +40,7 @@ All rights reserved.
# include "MenuComponent.h"
# include "MenuComponent.h"
# include "LoadingScreen.h"
# include "LoadingScreen.h"
# include "Key.h"
# include "Key.h"
# include "Menu.h"
using A = Attribute ;
using A = Attribute ;
@ -271,12 +272,14 @@ public:
private :
private :
virtual inline void OnActivate ( ) override final {
virtual inline void OnActivate ( ) override final {
Component < MenuComponent > ( SHERMAN , " Leave Button " ) - > SetGrayedOut ( true ) ;
Component < MenuComponent > ( SHERMAN , " Leave Button " ) - > SetGrayedOut ( true ) ;
Component < MenuComponent > ( MenuType : : PAUSE , " Return to Camp Button " ) - > SetGrayedOut ( true ) ;
}
}
virtual inline bool CompleteCondition ( ) override final {
virtual inline bool CompleteCondition ( ) override final {
return I ( A : : ITEM_USE_COUNT ) > = 1 ;
return Menu : : IsMenuOpen ( ) & & Menu : : stack . back ( ) = = Menu : : menus [ MenuType : : BLACKSMITH ] ;
}
}
virtual inline void OnComplete ( ) override final {
virtual inline void OnComplete ( ) override final {
Component < MenuComponent > ( SHERMAN , " Leave Button " ) - > SetGrayedOut ( false ) ;
Component < MenuComponent > ( SHERMAN , " Leave Button " ) - > SetGrayedOut ( false ) ;
Component < MenuComponent > ( MenuType : : PAUSE , " Return to Camp Button " ) - > SetGrayedOut ( false ) ;
}
}
virtual inline void Draw ( ) const override final {
virtual inline void Draw ( ) const override final {
std : : string helpText = " Visit #00FFD0 \" Greg \" the Blacksmith#FFFFFF to browse craftable gear. " ;
std : : string helpText = " Visit #00FFD0 \" Greg \" the Blacksmith#FFFFFF to browse craftable gear. " ;