(svn r13501) -Feature(tte): ctrl+click on sign you own to remove it (Osai, planetmaker)

This commit is contained in:
smatz
2008-06-12 22:29:42 +00:00
parent 79ad51867a
commit 421a040e89
3 changed files with 14 additions and 3 deletions

View File

@@ -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 */