You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ui_interface.cpp 823B

1234567891011121314151617181920212223242526272829
  1. // Copyright (c) 2010-2016 The Starwels developers
  2. // Distributed under the MIT software license, see the accompanying
  3. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
  4. #include "ui_interface.h"
  5. #include "util.h"
  6. CClientUIInterface uiInterface;
  7. bool InitError(const std::string& str)
  8. {
  9. uiInterface.ThreadSafeMessageBox(str, "", CClientUIInterface::MSG_ERROR);
  10. return false;
  11. }
  12. void InitWarning(const std::string& str)
  13. {
  14. uiInterface.ThreadSafeMessageBox(str, "", CClientUIInterface::MSG_WARNING);
  15. }
  16. std::string AmountHighWarn(const std::string& optname)
  17. {
  18. return strprintf(_("%s is set very high!"), optname);
  19. }
  20. std::string AmountErrMsg(const char* const optname, const std::string& strValue)
  21. {
  22. return strprintf(_("Invalid amount for -%s=<amount>: '%s'"), optname, strValue);
  23. }