mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
- Fixing mapeditor move building and improving some related mapeditor stuff. Details: - Change the way exit grids are add, remove, save and load through editor, also add undo option for exit grids and you can place unlimited number of them. - Fix incorrect gridno save in temporary map file for bigmap exit grids. - Increase maximum number of light sprite from 256 to 4096 per map. - Using DEL key for QuickEraseMapTile will now erase ItemPool too, and with improved function DeleteStuffFromMapTile will erase light sprites, exit grids and door locks. - Cliff hang tiles used for middle cliffs are now possible to erase with when erase button is on. - Add support for undo door locks, also you can now erase them if erase button is on. - Move building function is completely rewrite and will properly move exit grids, door locks, lights and items too. - Removing unnecessary tiles during copy building is improved too. - Fix undo function for light sprites which now will also store all three types and undo them properly. - Fix CTD situation if tile elements are deleted and after that items too, then undo will crash mapeditor. - Fix spawning of item pool cursors during when adding items. - Fix text glitches over door locks form. - Fix sticky tooltip when loadsave screen or door locks form is active. - High ground marking cursors will not be drawn in invisible map tiles anymore to increase speed and maybe fix some render problems but I doubt it. - Move GLOCK_17_ForUseWithLOS item generation from init.cpp to los.cpp to avoid potential problems if global world items array not set. git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7004 3b4a5df2-a311-0410-b5c6-a8a6f20db521
100 lines
2.7 KiB
C
100 lines
2.7 KiB
C
#include "BuildDefines.h"
|
|
|
|
#ifdef JA2EDITOR
|
|
#ifndef EDITSCREEN_H
|
|
#define EDITSCREEN_H
|
|
|
|
#include "Button System.h"
|
|
|
|
#define EDITOR_LIGHT_MAX (SHADE_MIN + SHADE_MAX)
|
|
#define EDITOR_LIGHT_FAKE (EDITOR_LIGHT_MAX - SHADE_MAX - 2)
|
|
|
|
extern BOOLEAN gfFakeLights;
|
|
extern GUI_BUTTON *gpPersistantButton;
|
|
|
|
extern UINT16 GenericButtonFillColors[40];
|
|
|
|
// WANNE: 05.10.2010
|
|
extern BOOLEAN fNewMapSaved;
|
|
|
|
void DisplayWayPoints(void);
|
|
|
|
BOOLEAN CheckForSlantRoofs( void );
|
|
BOOLEAN CheckForFences( void );
|
|
|
|
void ShowLightPositionHandles( void );
|
|
void RemoveLightPositionHandles( void );
|
|
|
|
extern BOOLEAN DoWindowSelection( void );
|
|
extern void RemoveTempMouseCursorObject(void);
|
|
extern BOOLEAN DrawTempMouseCursorObject(void);
|
|
extern void ShowCurrentDrawingMode( void );
|
|
extern void ShowCurrentSlotImage( HVOBJECT hVObj, INT32 iWindow );
|
|
extern void ShowCurrentSlotSurface( UINT32 hSurface, INT32 iWindow );
|
|
|
|
void CreateNewMap();
|
|
|
|
void DisplayTilesetPage(void);
|
|
void FindTilesetComments(void);
|
|
void GetMasterList(void);
|
|
|
|
void HandleJA2ToolbarSelection( void );
|
|
void HandleKeyboardShortcuts( );
|
|
UINT32 PerformSelectedAction( void );
|
|
UINT32 WaitForSelectionWindowResponse( void );
|
|
UINT32 WaitForMessageBoxResponse( UINT32 uiCurrentScreen );
|
|
UINT32 WaitForHelpScreenResponse( void );
|
|
|
|
//dnl ch86 210214
|
|
BOOLEAN FindLight(INT32 iGridNo, INT8 bLightType, UINT8 *pubLightRadius, UINT8 *pubLightId, INT32 *piSprite=NULL);
|
|
BOOLEAN PlaceLight(INT16 sRadius, INT16 iMapX, INT16 iMapY, INT16 sType, INT8 bLightType);
|
|
BOOLEAN RemoveLight(INT16 iMapX, INT16 iMapY, INT8 bLightType);
|
|
|
|
extern BOOLEAN gfMercResetUponEditorEntry;
|
|
|
|
void ShowEditorToolbar( INT32 iNewTaskMode );
|
|
void HideEditorToolbar( INT32 iOldTaskMode );
|
|
|
|
void ProcessSelectionArea();
|
|
|
|
void MapOptimize(void);
|
|
|
|
extern UINT16 GenericButtonFillColors[40];
|
|
|
|
//These go together. The taskbar has a specific color scheme.
|
|
extern UINT16 gusEditorTaskbarColor;
|
|
extern UINT16 gusEditorTaskbarHiColor;
|
|
extern UINT16 gusEditorTaskbarLoColor;
|
|
|
|
extern INT32 iOldTaskMode;
|
|
extern INT32 iCurrentTaskbar;
|
|
extern INT32 iTaskMode;
|
|
|
|
void ProcessAreaSelection( BOOLEAN fWithLeftButton );
|
|
|
|
void ShowEntryPoints();
|
|
void HideEntryPoints();
|
|
|
|
extern BOOLEAN gfConfirmExitFirst;
|
|
extern BOOLEAN gfConfirmExitPending;
|
|
extern BOOLEAN gfIntendOnEnteringEditor;
|
|
|
|
extern BOOLEAN gfResizeMapOnLoading;
|
|
extern BOOLEAN gfVanillaMode;//dnl ch33 160909
|
|
extern BOOLEAN fRaiseWorld;//dnl ch3 210909
|
|
extern BOOLEAN fShowHighGround;//dnl ch2 210909
|
|
void ShowHighGround(INT32 iShowHighGroundCommand);//dnl ch2 210909
|
|
|
|
extern BOOLEAN fEditorCreateItemFromKeyboard;
|
|
extern UINT16 usEditorTempItem;
|
|
extern UINT16 gusSavedLightLevel;//dnl ch80 011213
|
|
|
|
#endif
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|