|
| #define | UNIT_ICON_X (IconWidth + 7) |
| |
| #define | UNIT_ICON_Y (0) |
| |
| #define | TILE_ICON_X (IconWidth * 2 + 16) |
| |
| #define | TILE_ICON_Y (2) |
| |
| #define | START_ICON_X (IconWidth * 3 + 16) |
| |
| #define | START_ICON_Y (2) |
| |
| enum | _mode_buttons_ { SelectButton = 201,
UnitButton,
TileButton,
StartButton
} |
| |
| enum | EditorActionType { EditorActionTypePlaceUnit,
EditorActionTypeRemoveUnit
} |
| |
| static int | IconWidth |
| |
| static int | IconHeight |
| | Icon width in panels. More...
|
| |
| static int | ButtonPanelWidth |
| | Icon height in panels. More...
|
| |
| static int | ButtonPanelHeight |
| |
| bool | TileToolNoFixup = false |
| |
| char | TileToolRandom |
| | Allow setting every tile, no fixups. More...
|
| |
| static char | TileToolDecoration |
| | Tile tool draws random. More...
|
| |
| static int | TileCursorSize |
| | Tile tool draws with decorations. More...
|
| |
| static bool | UnitPlacedThisPress = false |
| | Tile cursor size 1x1 2x2 ... 4x4. More...
|
| |
| static bool | UpdateMinimap = false |
| | Only allow one unit per press. More...
|
| |
| static int | MirrorEdit = 0 |
| | Update units on the minimap. More...
|
| |
| static int | VisibleUnitIcons = 0 |
| | Mirror editing enabled. More...
|
| |
| static int | VisibleTileIcons = 0 |
| | Number of icons that are visible at a time. More...
|
| |
| static std::deque< EditorAction > | EditorUndoActions |
| |
| static std::deque< EditorAction > | EditorRedoActions |
| |
| gcn::Gui * | Gui |
| |
| static gcn::Container * | editorContainer |
| |
| static gcn::Slider * | editorSlider |
| |
| static gcn::DropDown * | toolDropdown |
| |
| void | DoScrollArea (int state, bool fast, bool isKeyboard) |
| | Editor callbacks. More...
|
| |
| void | DrawGuichanWidgets () |
| |
| void | CleanGame () |
| |
| void | CreateGame (const std::string &filename, CMap *map) |
| | forward declaration More...
|
| |
| static void | EditorUndoAction () |
| |
| static void | EditorRedoAction () |
| |
| static void | EditorAddUndoAction (EditorAction action) |
| |
| static void | EditTile (const Vec2i &pos, int tile) |
| |
| static void | EditTilesInternal (const Vec2i &pos, int tile, int size) |
| |
| static void | EditTiles (const Vec2i &pos, int tile, int size) |
| |
| static void | EditorActionPlaceUnit (const Vec2i &pos, const CUnitType &type, CPlayer *player) |
| |
| static void | EditorPlaceUnit (const Vec2i &pos, CUnitType &type, CPlayer *player) |
| |
| static void | EditorActionRemoveUnit (CUnit &unit) |
| |
| static void | EditorRemoveUnit (CUnit &unit) |
| |
| static void | CalculateMaxIconSize () |
| |
| static void | RecalculateShownUnits (size_t start=0, size_t stop=INT_MAX) |
| |
| static int | getPlayerButtonSize () |
| |
| static std::vector< int > | getSelectionArea () |
| |
| static std::vector< int > | getButtonArea () |
| |
| static bool | forEachPlayerSelectionBoxArea (std::function< bool(int, int, int, int, int)> forEach) |
| |
| static void | DrawPlayers () |
| |
| static bool | forEachUnitIconArea (std::function< bool(int, ButtonStyle *, int, int, int, int)> forEach) |
| |
| static void | DrawUnitIcons () |
| |
| static bool | forEachTileOptionArea (std::function< bool(bool, std::string, int, int, int, int, int)> forEach) |
| |
| static void | DrawTileOptions () |
| |
| static bool | forEachTileIconArea (std::function< bool(int, int, int, int, int)> forEach) |
| |
| static void | DrawTileIcons () |
| |
| static void | DrawIntoSelectionArea () |
| |
| static void | DrawIntoButtonArea () |
| |
| static void | DrawEditorPanel () |
| |
| static void | DrawMapCursor () |
| |
| static void | DrawCross (const PixelPos &topleft_pos, const PixelSize &size, Uint32 color) |
| |
| static void | DrawStartLocations () |
| |
| static void | DrawEditorInfo () |
| |
| static void | ShowUnitInfo (const CUnit &unit) |
| |
| void | EditorUpdateDisplay () |
| | Update editor display. More...
|
| |
| static void | EditorCallbackButtonUp (unsigned button) |
| |
| static void | EditorCallbackButtonDown (unsigned button) |
| |
| static void | EditorCallbackKeyDown (unsigned key, unsigned keychar) |
| |
| static void | EditorCallbackKeyUp (unsigned key, unsigned keychar) |
| |
| static void | EditorCallbackKeyRepeated (unsigned key, unsigned) |
| |
| static bool | EditorCallbackMouse_EditUnitArea (const PixelPos &screenPos) |
| |
| static bool | EditorCallbackMouse_EditTileArea (const PixelPos &screenPos) |
| |
| static void | EditorCallbackMouse (const PixelPos &pos) |
| |
| static void | EditorCallbackExit () |
| |
| int | EditorSaveMap (const std::string &file) |
| | Save a map from editor. More...
|
| |
| int | EditorSaveMapWithResize (const std::string &file, Vec2i newSize, Vec2i offset) |
| |
| void | EditorMainLoop () |
| | Editor main event loop. More...
|
| |
| void | StartEditor (const char *filename) |
| | Start the editor. More...
|
| |
| static bool forEachPlayerSelectionBoxArea |
( |
std::function< bool(int, int, int, int, int)> |
forEach | ) |
|
|
static |
Call the forEach callback with each player icon's <playerNum,x,y,w,h>. Return false to cancel iteration.
Returns the last value returned by forEach. This can be used to detect if an early cancellation of the iteration was requested.
| static bool forEachTileIconArea |
( |
std::function< bool(int, int, int, int, int)> |
forEach | ) |
|
|
static |
Call the forEach callback with each tile's <EditorTileIndex,x,y,w,h>. Return false to cancel iteration.
Returns the last value returned by forEach. This can be used to detect if an early cancellation of the iteration was requested.
| static bool forEachTileOptionArea |
( |
std::function< bool(bool, std::string, int, int, int, int, int)> |
forEach | ) |
|
|
static |
Call the forEach callback with each tile option buttons's <is-active boolean,label string,i,x,y,w,h>. Return false to cancel iteration.
Returns the last value returned by forEach. This can be used to detect if an early cancellation of the iteration was requested.
| static bool forEachUnitIconArea |
( |
std::function< bool(int, ButtonStyle *, int, int, int, int)> |
forEach | ) |
|
|
static |
Call the forEach callback with each unit icon's <EditorUnitIndex,ButtonStyle,x,y,w,h>. Return false to cancel iteration;
Returns the last value returned by forEach. This can be used to detect if an early cancellation of the iteration was requested.