summaryrefslogtreecommitdiff
path: root/src/signs_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2011-05-01 19:51:52 +0000
committerrubidium <rubidium@openttd.org>2011-05-01 19:51:52 +0000
commit5a620d1c6592057b500f0889eef8949dc1e95e4b (patch)
treedabae6247490fdea860bea292bb8eee49ce46fe4 /src/signs_gui.cpp
parent1a515e6344028854c855671c19f49d8f869eb18f (diff)
downloadopenttd-5a620d1c6592057b500f0889eef8949dc1e95e4b.tar.xz
(svn r22406) -Document: some more "random-ish" tidbits
Diffstat (limited to 'src/signs_gui.cpp')
-rw-r--r--src/signs_gui.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/signs_gui.cpp b/src/signs_gui.cpp
index 2c189d705..d64be87e1 100644
--- a/src/signs_gui.cpp
+++ b/src/signs_gui.cpp
@@ -638,6 +638,10 @@ static const WindowDesc _query_sign_edit_desc(
_nested_query_sign_edit_widgets, lengthof(_nested_query_sign_edit_widgets)
);
+/**
+ * Handle clicking on a sign.
+ * @param si The sign that was clicked on.
+ */
void HandleClickOnSign(const Sign *si)
{
if (_ctrl_pressed && si->owner == _local_company) {
@@ -647,6 +651,10 @@ void HandleClickOnSign(const Sign *si)
ShowRenameSignWindow(si);
}
+/**
+ * Show the window to change the text of a sign.
+ * @param si The sign to show the window for.
+ */
void ShowRenameSignWindow(const Sign *si)
{
/* Delete all other edit windows */
@@ -655,6 +663,10 @@ void ShowRenameSignWindow(const Sign *si)
new SignWindow(&_query_sign_edit_desc, si);
}
+/**
+ * Close the sign window associated with the given sign.
+ * @param sign The sign to close the window for.
+ */
void DeleteRenameSignWindow(SignID sign)
{
SignWindow *w = dynamic_cast<SignWindow *>(FindWindowById(WC_QUERY_STRING, 0));