summaryrefslogtreecommitdiff
path: root/src/widgets
diff options
context:
space:
mode:
authorNiels Martin Hansen <nielsm@indvikleren.dk>2019-01-12 22:27:19 +0100
committerNiels Martin Hansen <nielsm@indvikleren.dk>2019-04-24 17:40:11 +0200
commitdcb2571888f58aee2e5aa3512f36707a3adde472 (patch)
tree7259a829d22a76db084e07aa4d66b157e2704638 /src/widgets
parent66cd32a252ee0edab11448b560371878b2189223 (diff)
downloadopenttd-dcb2571888f58aee2e5aa3512f36707a3adde472.tar.xz
Add: Warn players that company passwords are not truly secure
Diffstat (limited to 'src/widgets')
-rw-r--r--src/widgets/misc_widget.h12
-rw-r--r--src/widgets/network_widget.h1
2 files changed, 8 insertions, 5 deletions
diff --git a/src/widgets/misc_widget.h b/src/widgets/misc_widget.h
index a6dd081a9..9fbd9f2f1 100644
--- a/src/widgets/misc_widget.h
+++ b/src/widgets/misc_widget.h
@@ -30,11 +30,13 @@ enum AboutWidgets {
/** Widgets of the #QueryStringWindow class. */
enum QueryStringWidgets {
- WID_QS_CAPTION, ///< Caption of the window.
- WID_QS_TEXT, ///< Text of the query.
- WID_QS_DEFAULT, ///< Default button.
- WID_QS_CANCEL, ///< Cancel button.
- WID_QS_OK, ///< OK button.
+ WID_QS_CAPTION, ///< Caption of the window.
+ WID_QS_TEXT, ///< Text of the query.
+ WID_QS_WARNING, ///< Warning label about password security
+ WID_QS_WARNINGBOX, ///< Container for warning label
+ WID_QS_DEFAULT, ///< Default button.
+ WID_QS_CANCEL, ///< Cancel button.
+ WID_QS_OK, ///< OK button.
};
/** Widgets of the #QueryWindow class. */
diff --git a/src/widgets/network_widget.h b/src/widgets/network_widget.h
index f5773b8ea..4cb5cc92c 100644
--- a/src/widgets/network_widget.h
+++ b/src/widgets/network_widget.h
@@ -122,6 +122,7 @@ enum NetworkCompanyPasswordWidgets {
WID_NCP_LABEL, ///< Label in front of the password field.
WID_NCP_PASSWORD, ///< Input field for the password.
WID_NCP_SAVE_AS_DEFAULT_PASSWORD, ///< Toggle 'button' for saving the current password as default password.
+ WID_NCP_WARNING, ///< Warning text about password security
WID_NCP_CANCEL, ///< Close the window without changing anything.
WID_NCP_OK, ///< Safe the password etc.
};