Incorporating review comments. Adding nativeUI setting for launchers.
This commit is contained in:
@@ -27,8 +27,8 @@ namespace AZ::NativeUI
|
||||
|
||||
enum class Mode
|
||||
{
|
||||
CONSOLE = 0,
|
||||
UI,
|
||||
DISABLED = 0,
|
||||
ENABLED,
|
||||
};
|
||||
|
||||
class NativeUIRequests
|
||||
@@ -77,8 +77,8 @@ namespace AZ::NativeUI
|
||||
m_mode = mode;
|
||||
}
|
||||
|
||||
protected:
|
||||
NativeUI::Mode m_mode = NativeUI::Mode::CONSOLE;
|
||||
protected:
|
||||
NativeUI::Mode m_mode = NativeUI::Mode::DISABLED;
|
||||
};
|
||||
|
||||
class NativeUIEBusTraits
|
||||
|
||||
@@ -29,7 +29,7 @@ namespace AZ::NativeUI
|
||||
|
||||
AssertAction NativeUISystem::DisplayAssertDialog(const AZStd::string& message) const
|
||||
{
|
||||
if (m_mode == NativeUI::Mode::CONSOLE)
|
||||
if (m_mode == NativeUI::Mode::DISABLED)
|
||||
{
|
||||
return AssertAction::NONE;
|
||||
}
|
||||
@@ -56,7 +56,7 @@ namespace AZ::NativeUI
|
||||
|
||||
AZStd::string NativeUISystem::DisplayOkDialog(const AZStd::string& title, const AZStd::string& message, bool showCancel) const
|
||||
{
|
||||
if (m_mode == NativeUI::Mode::CONSOLE)
|
||||
if (m_mode == NativeUI::Mode::DISABLED)
|
||||
{
|
||||
return {};
|
||||
}
|
||||
@@ -73,7 +73,7 @@ namespace AZ::NativeUI
|
||||
|
||||
AZStd::string NativeUISystem::DisplayYesNoDialog(const AZStd::string& title, const AZStd::string& message, bool showCancel) const
|
||||
{
|
||||
if (m_mode == NativeUI::Mode::CONSOLE)
|
||||
if (m_mode == NativeUI::Mode::DISABLED)
|
||||
{
|
||||
return {};
|
||||
}
|
||||
|
||||
+1
-1
@@ -247,7 +247,7 @@ namespace AZ
|
||||
{
|
||||
AZStd::string NativeUISystem::DisplayBlockingDialog(const AZStd::string& title, const AZStd::string& message, const AZStd::vector<AZStd::string>& options) const
|
||||
{
|
||||
if (m_mode == NativeUI::Mode::CONSOLE)
|
||||
if (m_mode == NativeUI::Mode::DISABLED)
|
||||
{
|
||||
return {};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user