equal
deleted
inserted
replaced
6 #include "openttd.h" |
6 #include "openttd.h" |
7 #include "gui.h" |
7 #include "gui.h" |
8 #include "textbuf_gui.h" |
8 #include "textbuf_gui.h" |
9 #include "window_gui.h" |
9 #include "window_gui.h" |
10 #include "player_gui.h" |
10 #include "player_gui.h" |
|
11 #include "player_func.h" |
11 #include "signs_base.h" |
12 #include "signs_base.h" |
12 #include "signs_func.h" |
13 #include "signs_func.h" |
13 #include "debug.h" |
14 #include "debug.h" |
14 #include "variables.h" |
15 #include "variables.h" |
15 #include "command_func.h" |
16 #include "command_func.h" |
299 WC_QUERY_STRING, WC_NONE, |
300 WC_QUERY_STRING, WC_NONE, |
300 WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET, |
301 WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET, |
301 _query_sign_edit_widgets, |
302 _query_sign_edit_widgets, |
302 }; |
303 }; |
303 |
304 |
|
305 void HandleClickOnSign(const Sign *si) |
|
306 { |
|
307 if (_ctrl_pressed && si->owner == _local_player) { |
|
308 RenameSign(si->index, ""); |
|
309 return; |
|
310 } |
|
311 ShowRenameSignWindow(si); |
|
312 } |
|
313 |
304 void ShowRenameSignWindow(const Sign *si) |
314 void ShowRenameSignWindow(const Sign *si) |
305 { |
315 { |
306 /* Delete all other edit windows and the save window */ |
316 /* Delete all other edit windows and the save window */ |
307 DeleteWindowById(WC_QUERY_STRING, 0); |
317 DeleteWindowById(WC_QUERY_STRING, 0); |
308 DeleteWindowById(WC_SAVELOAD, 0); |
318 DeleteWindowById(WC_SAVELOAD, 0); |