X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Feditor.h;h=2b1e839a7fc07fc174ea4742e1853da032b9ccb7;hb=5ed4de42ced8e7dce5b786ba3d5fd1a6f6a7d7f6;hp=b282fe4bb754d65805de1194ee48c7ba433f3972;hpb=823bddb0d9cc63ddda17a2cd20266aa3b82bde38;p=rocksndiamonds.git diff --git a/src/editor.h b/src/editor.h index b282fe4b..2b1e839a 100644 --- a/src/editor.h +++ b/src/editor.h @@ -16,32 +16,17 @@ #include "main.h" -/* positions in the level editor */ -#define ED_WIN_MB_LEFT_XPOS 7 -#define ED_WIN_MB_LEFT_YPOS 6 -#define ED_WIN_LEVELNR_XPOS 77 -#define ED_WIN_LEVELNR_YPOS 7 -#define ED_WIN_MB_MIDDLE_XPOS 7 -#define ED_WIN_MB_MIDDLE_YPOS 258 -#define ED_WIN_MB_RIGHT_XPOS 77 -#define ED_WIN_MB_RIGHT_YPOS 258 - +/* number of element button columns and rows in the edit window */ #define MAX_ELEM_X 4 #define MAX_ELEM_Y 10 -/* other constants for the editor */ -#define ED_SCROLL_NO 0 -#define ED_SCROLL_LEFT 1 -#define ED_SCROLL_RIGHT 2 -#define ED_SCROLL_UP 4 -#define ED_SCROLL_DOWN 8 - extern int element_shift; extern int editor_element[]; extern int elements_in_list; +void InitLevelEditorGadgets(); +void UnmapLevelEditorGadgets(); void DrawLevelEd(void); -void ScrollMiniLevel(int, int, int); void LevelEd(int, int, int); void LevelNameTyping(KeySym);