forked from mirror/OpenTTD
(svn r13501) -Feature(tte): ctrl+click on sign you own to remove it (Osai, planetmaker)
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
#include "textbuf_gui.h"
|
||||
#include "window_gui.h"
|
||||
#include "player_gui.h"
|
||||
#include "player_func.h"
|
||||
#include "signs_base.h"
|
||||
#include "signs_func.h"
|
||||
#include "debug.h"
|
||||
@@ -301,6 +302,15 @@ static const WindowDesc _query_sign_edit_desc = {
|
||||
_query_sign_edit_widgets,
|
||||
};
|
||||
|
||||
void HandleClickOnSign(const Sign *si)
|
||||
{
|
||||
if (_ctrl_pressed && si->owner == _local_player) {
|
||||
RenameSign(si->index, "");
|
||||
return;
|
||||
}
|
||||
ShowRenameSignWindow(si);
|
||||
}
|
||||
|
||||
void ShowRenameSignWindow(const Sign *si)
|
||||
{
|
||||
/* Delete all other edit windows and the save window */
|
||||
|
Reference in New Issue
Block a user