summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-05-24 18:38:58 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-05-24 18:38:58 (GMT)
commit5a117c2d27f513942d7621980a79d357af122ba4 (patch)
tree0dd04f6be777da93315224d87ea87c9c65f14808 /src/main.c
parenta1b7b02f81500e0707cf4c98a943c17351c5505d (diff)
downloadpowder-5a117c2d27f513942d7621980a79d357af122ba4.zip
powder-5a117c2d27f513942d7621980a79d357af122ba4.tar.gz
Element search interface by pressing 'e'
First search is for element names, second search looks at the description, pressing enter will give you the first result the the left button selection, left click and right click can also be used to select.
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index b616273..4cbef1c 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1389,6 +1389,10 @@ int main(int argc, char *argv[])
it = 50;
save_mode = 1;
}
+ if(sdl_key=='e')
+ {
+ element_search_ui(vid_buf, &sl, &sr);
+ }
//TODO: Superseded by new display mode switching, need some keyboard shortcuts
if (sdl_key=='1')
{