X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Feditor.h;h=b39d676552900e6d43c9f15c59c0269f54324abb;hp=b4ebfed2e03d6324d2e11226eebb45c50a3392c3;hb=14801844faf14be284c590b66f030c6bf7cea5c2;hpb=c3d03cdffce070695ba0520d00667b42b8460087 diff --git a/src/editor.h b/src/editor.h index b4ebfed2..b39d6765 100644 --- a/src/editor.h +++ b/src/editor.h @@ -1,49 +1,30 @@ -/*********************************************************** -* Rocks'n'Diamonds -- McDuffin Strikes Back! * -*----------------------------------------------------------* -* ©1995 Artsoft Development * -* Holger Schemel * -* 33659 Bielefeld-Senne * -* Telefon: (0521) 493245 * -* eMail: aeglos@valinor.owl.de * -* aeglos@uni-paderborn.de * -* q99492@pbhrzx.uni-paderborn.de * -*----------------------------------------------------------* -* editor.h * -***********************************************************/ +// ============================================================================ +// Rocks'n'Diamonds - McDuffin Strikes Back! +// ---------------------------------------------------------------------------- +// (c) 1995-2014 by Artsoft Entertainment +// Holger Schemel +// info@artsoft.org +// http://www.artsoft.org/ +// ---------------------------------------------------------------------------- +// editor.h +// ============================================================================ #ifndef EDITOR_H #define EDITOR_H #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 - -#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 CreateLevelEditorGadgets(); +void FreeLevelEditorGadgets(); +void UnmapLevelEditorGadgets(); void DrawLevelEd(void); -void ScrollMiniLevel(int, int, int); -void LevelEd(int, int, int); -void LevelNameTyping(KeySym); +void HandleLevelEditorKeyInput(Key); +void HandleLevelEditorIdle(); +void HandleEditorGadgetInfoText(void *ptr); +void RequestExitLevelEditor(boolean, boolean); +void PrintEditorElementList(); + +void DumpBrush(); +void DumpBrush_Small(); #endif