From: Holger Schemel Date: Fri, 17 Feb 2006 01:54:52 +0000 (+0100) Subject: rnd-20060217-1-src X-Git-Tag: 3.2.0^2~68 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=70b6d1af1a18c70b698cac732ec04e69ac32315c;p=rocksndiamonds.git rnd-20060217-1-src * added use of "Home" and "End" keys to handle element list in editor --- diff --git a/ChangeLog b/ChangeLog index 915e1ba5..2bf75b8e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2006-02-16 + * added use of "Home" and "End" keys to handle element list in editor + 2006-02-15 * fixed bug with adding score when playing tape with EMC game engine * added steel wall border for levels using EMC engine without border diff --git a/src/conftime.h b/src/conftime.h index efe090e5..5349a28b 100644 --- a/src/conftime.h +++ b/src/conftime.h @@ -1 +1 @@ -#define COMPILE_DATE_STRING "[2006-02-15 23:26]" +#define COMPILE_DATE_STRING "[2006-02-17 02:49]" diff --git a/src/editor.c b/src/editor.c index 6c51c6dc..0dc86233 100644 --- a/src/editor.c +++ b/src/editor.c @@ -9890,6 +9890,19 @@ void HandleLevelEditorKeyInput(Key key) button = MB_RIGHTBUTTON; break; + case KSYM_Home: + case KSYM_End: + element_shift = (key == KSYM_Home ? 0 : + num_editor_elements - ED_NUM_ELEMENTLIST_BUTTONS); + + ModifyGadget(level_editor_gadget[GADGET_ID_SCROLL_LIST_VERTICAL], + GDI_SCROLLBAR_ITEM_POSITION, + element_shift / ED_ELEMENTLIST_BUTTONS_HORIZ, GDI_END); + + ModifyEditorElementList(); + + break; + case KSYM_Escape: if (edit_mode == ED_MODE_DRAWING) {