├── BuildProcessTemplates ├── DefaultTemplate.11.1.xaml ├── DefaultTemplate.xaml ├── LabDefaultTemplate.11.xaml └── UpgradeTemplate.xaml ├── TileMapEditor ├── Assets │ ├── Maps │ │ ├── Map01.tide │ │ └── Map02.tide │ └── TileSheets │ │ ├── AutoTiles01.png │ │ ├── Background.pdn │ │ ├── Background01.png │ │ ├── Background02.png │ │ ├── Background03.png │ │ ├── TileSheet01.pdn │ │ └── TileSheet01.png ├── Demo │ ├── Background.png │ ├── Content │ │ ├── Content.contentproj │ │ ├── Content.contentproj.vspscc │ │ ├── DemoContent.contentproj.vspscc │ │ ├── Fonts │ │ │ └── Demo.spritefont │ │ ├── Graphics │ │ │ └── Leaf.png │ │ ├── Maps │ │ │ └── Map01.tide │ │ └── TileSheets │ │ │ ├── Background01.png │ │ │ ├── Background02.png │ │ │ ├── Background03.png │ │ │ └── TileSheet01.png │ ├── Demo360.csproj │ ├── Demo360.csproj.vspscc │ ├── DemoGame.cs │ ├── DemoPC.csproj │ ├── DemoPC.csproj.vspscc │ ├── DemoWP7.csproj │ ├── DemoWP7.csproj.vspscc │ ├── Game.ico │ ├── GameThumbnail.png │ ├── PhoneGameThumb.png │ ├── Program.cs │ └── Properties │ │ ├── AppManifest.xml │ │ ├── AssemblyInfo.cs │ │ └── WMAppManifest.xml ├── Plugin │ ├── ApplicationRegistry.cs │ ├── IPlugin.cs │ ├── Interface │ │ ├── IApplication.cs │ │ ├── ICommand.cs │ │ ├── IEditor.cs │ │ ├── IElement.cs │ │ ├── IMenuItem.cs │ │ ├── IMenuItemCollection.cs │ │ ├── IMenuStrip.cs │ │ ├── IToolBar.cs │ │ ├── IToolBarButton.cs │ │ ├── IToolBarButtonCollection.cs │ │ └── IToolBarCollection.cs │ ├── Plugin.csproj │ ├── Plugin.csproj.vspscc │ ├── Properties │ │ └── AssemblyInfo.cs │ └── Resources │ │ └── tIDE.ico ├── TestPlugin │ ├── MyTestPlugin.cs │ ├── Properties │ │ ├── AssemblyInfo.cs │ │ ├── Resources.Designer.cs │ │ └── Resources.resx │ ├── Resources │ │ ├── Action.png │ │ ├── LargeIcon.png │ │ ├── Menu.png │ │ └── SmallIcon.png │ ├── TestPlugin.csproj │ └── TestPlugin.csproj.vspscc ├── TileMapEditor.sln ├── TileMapEditor.vssscc ├── TileMapEditor │ ├── GdiPlusDisplayDevice.cs │ ├── History │ │ ├── HistoryEntry.cs │ │ ├── LayerHistoryEntry.cs │ │ ├── MapHistoryEntry.cs │ │ └── TileHistoryEntry.cs │ ├── Plugin │ │ ├── IPlugin.cs │ │ └── Interface │ │ │ ├── IApplication.cs │ │ │ ├── IElement.cs │ │ │ ├── IMenuItem.cs │ │ │ ├── IMenuItemCollection.cs │ │ │ └── IMenuStrip.cs │ ├── Plugins │ │ ├── IPlugin.cs │ │ └── Interface │ │ │ ├── IApplication.cs │ │ │ ├── IElement.cs │ │ │ ├── IMenuItem.cs │ │ │ ├── IMenuItemCollection.cs │ │ │ └── IMenuStrip.cs │ ├── Properties │ │ └── DataSources │ │ │ └── TileBrush.datasource │ └── Resources │ │ ├── EditDropper.png │ │ ├── EditDropperCursor.cur │ │ ├── EditEraser.png │ │ ├── EditEraserCursor.cur │ │ ├── EditSelect.png │ │ ├── EditSingleTile.png │ │ ├── EditSingleTileCursor.cur │ │ ├── EditTileBlock.png │ │ ├── EditTileBlockCursor.cur │ │ ├── EditTileBrush.png │ │ ├── MapZoom.png │ │ ├── MapZoomIn.png │ │ ├── MapZoomOut.png │ │ ├── TileGuide.png │ │ └── ViewViewPort.png ├── XTile │ ├── Content │ │ ├── Content.contentproj │ │ └── Content.contentproj.vspscc │ ├── Dimensions │ │ ├── Location.cs │ │ ├── Rectangle.cs │ │ └── Size.cs │ ├── Display │ │ ├── IDisplayDevice.cs │ │ └── XnaDisplayDevice.cs │ ├── Format │ │ ├── CompatibilityNote.cs │ │ ├── CompatibilityReport.cs │ │ ├── CompatibilityResults.cs │ │ ├── FormatManager.cs │ │ ├── IMapFormat.cs │ │ ├── TideFormat.cs │ │ ├── TiledTmxFormat.cs │ │ └── XmlHelper.cs │ ├── Layers │ │ ├── Layer.cs │ │ └── LayerEventArgs.cs │ ├── Map.cs │ ├── ObjectModel │ │ ├── Component.cs │ │ ├── DescribedComponent.cs │ │ ├── PropertyCollection.cs │ │ └── PropertyValue.cs │ ├── Pipeline │ │ └── TideReader.cs │ ├── Properties │ │ └── AssemblyInfo.cs │ ├── Tiles │ │ ├── AnimatedTile.cs │ │ ├── StaticTile.cs │ │ ├── Tile.cs │ │ ├── TileArray.cs │ │ └── TileSheet.cs │ ├── XTile360.csproj │ ├── XTile360.csproj.vspscc │ ├── XTilePC.csproj │ ├── XTilePC.csproj.vspscc │ ├── XTileZune.csproj │ ├── XTileZune.csproj.vspscc │ ├── xTile.ico │ ├── xTilePC.csproj │ └── xTilePC.csproj.vspscc ├── tIDE │ ├── AutoTiles │ │ ├── AutoTile.cs │ │ └── AutoTileManager.cs │ ├── ClipBoardManager.cs │ ├── Commands │ │ ├── Command.cs │ │ ├── CommandHistory.cs │ │ ├── CustomPropertiesCommand.cs │ │ ├── EditChangeSelectionCommand.cs │ │ ├── EditCopyCommand.cs │ │ ├── EditCutCommand.cs │ │ ├── EditDeleteCommand.cs │ │ ├── EditPasteCommand.cs │ │ ├── EditTileBrushesCommand.cs │ │ ├── LayerDeleteCommand.cs │ │ ├── LayerNewCommand.cs │ │ ├── LayerOffsetCommand.cs │ │ ├── LayerOrderCommand.cs │ │ ├── LayerPropertiesCommand.cs │ │ ├── LayerVisibilityCommand.cs │ │ ├── MapPropertiesCommand.cs │ │ ├── TileAnimationCommand.cs │ │ ├── TilePropertiesCommand.cs │ │ ├── TileSheetAutoTilesCommand.cs │ │ ├── TileSheetDeleteCommand.cs │ │ ├── TileSheetNewCommand.cs │ │ ├── TileSheetPropertiesCommand.cs │ │ ├── TileSheetRemoveDependencyCommand.cs │ │ ├── TileSheetSwapTilesCommand.cs │ │ ├── ToolsEraseTileCommand.cs │ │ ├── ToolsFloodFillCommand.cs │ │ ├── ToolsPlaceTileCommand.cs │ │ ├── ToolsSelectCommand.cs │ │ └── ToolsTileBlockCommand.cs │ ├── Compression │ │ └── Zlib │ │ │ ├── Adler32.cs │ │ │ ├── Deflate.cs │ │ │ ├── InfBlocks.cs │ │ │ ├── InfCodes.cs │ │ │ ├── InfTree.cs │ │ │ ├── Inflate.cs │ │ │ ├── StaticTree.cs │ │ │ ├── SupportClass.cs │ │ │ ├── Tree.cs │ │ │ ├── ZInputStream.cs │ │ │ ├── ZOutputStream.cs │ │ │ ├── ZStream.cs │ │ │ ├── ZStreamException.cs │ │ │ └── Zlib.cs │ ├── Controls │ │ ├── AlignmentButton.Designer.cs │ │ ├── AlignmentButton.cs │ │ ├── AlignmentButton.resx │ │ ├── CustomListView.cs │ │ ├── CustomMessageBox.Designer.cs │ │ ├── CustomMessageBox.cs │ │ ├── CustomPanel.cs │ │ ├── CustomPropertyEventArgs.cs │ │ ├── CustomPropertyGrid.Designer.cs │ │ ├── CustomPropertyGrid.cs │ │ ├── CustomPropertyGrid.es-ES.resx │ │ ├── CustomPropertyGrid.fr-FR.resx │ │ ├── CustomPropertyGrid.it-IT.resx │ │ ├── CustomPropertyGrid.resx │ │ ├── CustomRichTextBox.cs │ │ ├── CustomTabControl.cs │ │ ├── CustomToolStripSplitButton.cs │ │ ├── MapPanel.Designer.cs │ │ ├── MapPanel.cs │ │ ├── MapPanel.es-ES.resx │ │ ├── MapPanel.fr-FR.resx │ │ ├── MapPanel.it-IT.resx │ │ ├── MapPanel.resx │ │ ├── MapPanelEventArgs.cs │ │ ├── MapTreeView.Designer.cs │ │ ├── MapTreeView.cs │ │ ├── MapTreeView.es-ES.resx │ │ ├── MapTreeView.fr-FR.resx │ │ ├── MapTreeView.it-IT.resx │ │ ├── MapTreeView.resx │ │ ├── TabControlNativeMethods.cs │ │ ├── TabStyle.cs │ │ ├── TabStyleProvider.cs │ │ ├── TabStyleProviders │ │ │ ├── TabStyleAngledProvider.cs │ │ │ ├── TabStyleChromeProvider.cs │ │ │ ├── TabStyleDefaultProvider.cs │ │ │ ├── TabStyleIE8Provider.cs │ │ │ ├── TabStyleNoneProvider.cs │ │ │ ├── TabStyleRoundedProvider.cs │ │ │ ├── TabStyleVS2010Provider.cs │ │ │ └── TabStyleVisualStudioProvider.cs │ │ ├── ThemedColors.cs │ │ ├── TilePicker.Designer.cs │ │ ├── TilePicker.cs │ │ ├── TilePicker.es-ES.resx │ │ ├── TilePicker.fr-FR.resx │ │ ├── TilePicker.it-IT.resx │ │ ├── TilePicker.resx │ │ └── TilePickerEventArgs.cs │ ├── Dialogs │ │ ├── AboutDialog.Designer.cs │ │ ├── AboutDialog.cs │ │ ├── AboutDialog.it-IT.resx │ │ ├── AboutDialog.resx │ │ ├── AutoTileDialog.Designer.cs │ │ ├── AutoTileDialog.cs │ │ ├── AutoTileDialog.es-ES.resx │ │ ├── AutoTileDialog.fr-FR.resx │ │ ├── AutoTileDialog.it-IT.resx │ │ ├── AutoTileDialog.resx │ │ ├── CommandHistoryDialog.Designer.cs │ │ ├── CommandHistoryDialog.cs │ │ ├── CommandHistoryDialog.es-ES.resx │ │ ├── CommandHistoryDialog.fr-FR.resx │ │ ├── CommandHistoryDialog.it-IT.resx │ │ ├── CommandHistoryDialog.resx │ │ ├── CustomPropertiesDialog.Designer.cs │ │ ├── CustomPropertiesDialog.cs │ │ ├── CustomPropertiesDialog.es-ES.resx │ │ ├── CustomPropertiesDialog.fr-FR.resx │ │ ├── CustomPropertiesDialog.it-IT.resx │ │ ├── CustomPropertiesDialog.resx │ │ ├── FormatCompatibilityDialog.Designer.cs │ │ ├── FormatCompatibilityDialog.cs │ │ ├── FormatCompatibilityDialog.es-ES.resx │ │ ├── FormatCompatibilityDialog.fr-FR.resx │ │ ├── FormatCompatibilityDialog.it-IT.resx │ │ ├── FormatCompatibilityDialog.resx │ │ ├── IconInfo.cs │ │ ├── LayerOffsetDialog.Designer.cs │ │ ├── LayerOffsetDialog.cs │ │ ├── LayerOffsetDialog.es-ES.resx │ │ ├── LayerOffsetDialog.fr-FR.resx │ │ ├── LayerOffsetDialog.it-IT.resx │ │ ├── LayerOffsetDialog.resx │ │ ├── LayerPropertiesDialog.Designer.cs │ │ ├── LayerPropertiesDialog.cs │ │ ├── LayerPropertiesDialog.es-ES.resx │ │ ├── LayerPropertiesDialog.fr-FR.resx │ │ ├── LayerPropertiesDialog.it-IT.resx │ │ ├── LayerPropertiesDialog.resx │ │ ├── MapPropertiesDialog.Designer.cs │ │ ├── MapPropertiesDialog.cs │ │ ├── MapPropertiesDialog.es-ES.resx │ │ ├── MapPropertiesDialog.fr-FR.resx │ │ ├── MapPropertiesDialog.it-IT.resx │ │ ├── MapPropertiesDialog.resx │ │ ├── MapStatisticsDialog.Designer.cs │ │ ├── MapStatisticsDialog.cs │ │ ├── MapStatisticsDialog.es-ES.resx │ │ ├── MapStatisticsDialog.fr-FR.resx │ │ ├── MapStatisticsDialog.it-IT.resx │ │ ├── MapStatisticsDialog.resx │ │ ├── OptonsDialog.Designer.cs │ │ ├── OptonsDialog.cs │ │ ├── OptonsDialog.es-ES.resx │ │ ├── OptonsDialog.fr-FR.resx │ │ ├── OptonsDialog.it-IT.resx │ │ ├── OptonsDialog.resx │ │ ├── PluginInfoDialog.Designer.cs │ │ ├── PluginInfoDialog.cs │ │ ├── PluginInfoDialog.it-IT.resx │ │ ├── PluginInfoDialog.resx │ │ ├── TileAnimationDialog.Designer.cs │ │ ├── TileAnimationDialog.cs │ │ ├── TileAnimationDialog.es-ES.resx │ │ ├── TileAnimationDialog.fr-FR.resx │ │ ├── TileAnimationDialog.it-IT.resx │ │ ├── TileAnimationDialog.resx │ │ ├── TileBrushDialog.Designer.cs │ │ ├── TileBrushDialog.cs │ │ ├── TileBrushDialog.es-ES.resx │ │ ├── TileBrushDialog.fr-FR.resx │ │ ├── TileBrushDialog.it-IT.resx │ │ ├── TileBrushDialog.resx │ │ ├── TilePropertiesDialog.Designer.cs │ │ ├── TilePropertiesDialog.cs │ │ ├── TilePropertiesDialog.es-ES.resx │ │ ├── TilePropertiesDialog.fr-FR.resx │ │ ├── TilePropertiesDialog.it-IT.resx │ │ ├── TilePropertiesDialog.resx │ │ ├── TileSheetPropertiesDialog.Designer.cs │ │ ├── TileSheetPropertiesDialog.cs │ │ ├── TileSheetPropertiesDialog.es-ES.resx │ │ ├── TileSheetPropertiesDialog.fr-FR.resx │ │ ├── TileSheetPropertiesDialog.it-IT.resx │ │ ├── TileSheetPropertiesDialog.resx │ │ ├── TiledFormatOptionsDialog.Designer.cs │ │ ├── TiledFormatOptionsDialog.cs │ │ ├── TiledFormatOptionsDialog.es-ES.resx │ │ ├── TiledFormatOptionsDialog.fr-FR.resx │ │ ├── TiledFormatOptionsDialog.it-IT.resx │ │ └── TiledFormatOptionsDialog.resx │ ├── Format │ │ ├── FlixelLayerFormat.cs │ │ ├── FlixelMapFormat.cs │ │ ├── MappyFmapFormat.cs │ │ ├── PathHelper.cs │ │ └── TiledTmxFormat.cs │ ├── Help │ │ ├── HelpForm.Designer.cs │ │ ├── HelpForm.cs │ │ ├── HelpForm.es-ES.resx │ │ ├── HelpForm.fr-FR.resx │ │ ├── HelpForm.it-IT.resx │ │ └── HelpForm.resx │ ├── Installer │ │ ├── CustomInstaller.Designer.cs │ │ ├── CustomInstaller.cs │ │ ├── RunApplicationDialog.Designer.cs │ │ ├── RunApplicationDialog.cs │ │ ├── RunApplicationDialog.es-ES.resx │ │ ├── RunApplicationDialog.fr-FR.resx │ │ ├── RunApplicationDialog.it-IT.resx │ │ └── RunApplicationDialog.resx │ ├── Localisation │ │ ├── Language.cs │ │ └── LanguageManager.cs │ ├── MainForm.Designer.cs │ ├── MainForm.cs │ ├── MainForm.es-ES.resx │ ├── MainForm.fr-FR.resx │ ├── MainForm.it-IT.resx │ ├── MainForm.resx │ ├── Plugin │ │ ├── Bridge │ │ │ ├── ApplicationBridge.cs │ │ │ ├── CommandBridge.cs │ │ │ ├── EditorBridge.cs │ │ │ ├── ElementBridge.cs │ │ │ ├── MenuItemBridge.cs │ │ │ ├── MenuStripBridge.cs │ │ │ ├── ToolBarBridge.cs │ │ │ └── ToolBarButtonBridge.cs │ │ ├── PluginManager.cs │ │ └── Version.cs │ ├── PrintManager.cs │ ├── Program.cs │ ├── Properties │ │ ├── AssemblyInfo.cs │ │ ├── Resources.Designer.cs │ │ ├── Resources.resx │ │ ├── Settings.Designer.cs │ │ ├── Settings.settings │ │ └── app.manifest │ ├── RecentFilesManager.cs │ ├── Resources │ │ ├── ..svnbridge │ │ │ └── ToolsFloodFill.png │ │ ├── AboutBackground.png │ │ ├── AboutPluginBackground.png │ │ ├── AboutSide.png │ │ ├── AnchorDown.png │ │ ├── AnchorDownLeft.png │ │ ├── AnchorDownRight.png │ │ ├── AnchorLeft.png │ │ ├── AnchorRight.png │ │ ├── AnchorUp.png │ │ ├── AnchorUpLeft.png │ │ ├── AnchorUpRight.png │ │ ├── AutoTileTemplate.png │ │ ├── CustomProperties.png │ │ ├── DefaultButtonImage.png │ │ ├── Edit.png │ │ ├── EditClearSelection.png │ │ ├── EditClipboard.png │ │ ├── EditCopy.png │ │ ├── EditCut.png │ │ ├── EditDelete.png │ │ ├── EditHistory.png │ │ ├── EditInvertSelection.png │ │ ├── EditMakeTileBrush.png │ │ ├── EditManageTileBrushes.png │ │ ├── EditPaste.png │ │ ├── EditRedo.png │ │ ├── EditSelectAll.png │ │ ├── EditUndo.png │ │ ├── File.png │ │ ├── FileNew.png │ │ ├── FileOpen.png │ │ ├── FileOpenRecent.png │ │ ├── FileOptions.png │ │ ├── FilePageSetup.png │ │ ├── FilePrint.png │ │ ├── FilePrintPreview.png │ │ ├── FileSave.png │ │ ├── FileSaveAs.png │ │ ├── Help.png │ │ ├── Help │ │ │ ├── AboutDialog.rtf │ │ │ ├── AutoTileDialog.rtf │ │ │ ├── CommandHistoryDialog.rtf │ │ │ ├── CommandReference.rtf │ │ │ ├── DialogBoxReference.rtf │ │ │ ├── EditCommandReference.rtf │ │ │ ├── EditingToolbox.rtf │ │ │ ├── Features.rtf │ │ │ ├── FileCommandReference.rtf │ │ │ ├── GettingStarted.rtf │ │ │ ├── HelpCommandReference.rtf │ │ │ ├── KeywordBlacklist.txt │ │ │ ├── LayerCommandReference.rtf │ │ │ ├── LayerOffsetDialog.rtf │ │ │ ├── LayerPropertiesDialog.rtf │ │ │ ├── MapCommandReference.rtf │ │ │ ├── MapPropertiesDialog.rtf │ │ │ ├── MapStatisticsDialog.rtf │ │ │ ├── OpenFileDialog.rtf │ │ │ ├── OptionsDialog.rtf │ │ │ ├── PluginCommandReference.rtf │ │ │ ├── PluginInfoDialog.rtf │ │ │ ├── SampledTileTool.rtf │ │ │ ├── SaveFileDialog.rtf │ │ │ ├── TileAnimationDialog.rtf │ │ │ ├── TileBlockTool.rtf │ │ │ ├── TileBrushDialog.rtf │ │ │ ├── TileBrushTool.rtf │ │ │ ├── TileEraserTool.rtf │ │ │ ├── TilePickingTool.rtf │ │ │ ├── TilePlacementTool.rtf │ │ │ ├── TilePropertiesDialog.rtf │ │ │ ├── TileSelectionTool.rtf │ │ │ ├── TileSheetCommandReference.rtf │ │ │ ├── TileSheetPropertiesDialog.rtf │ │ │ ├── ViewCommandReference.rtf │ │ │ ├── XnaTutorial.rtf │ │ │ └── tIDE.rtf │ │ ├── HelpAbout.png │ │ ├── HelpContents.png │ │ ├── HelpIndex.png │ │ ├── HelpSearch.png │ │ ├── ImageBackground.png │ │ ├── Layer.png │ │ ├── LayerBringForward.png │ │ ├── LayerDelete.png │ │ ├── LayerInvisible.png │ │ ├── LayerNew.png │ │ ├── LayerOffset.png │ │ ├── LayerProperties.png │ │ ├── LayerSendBackward.png │ │ ├── LayerVisible.png │ │ ├── Legal.txt │ │ ├── Map.png │ │ ├── MapCompatibilityFull.png │ │ ├── MapCompatibilityNone.png │ │ ├── MapCompatibilityPartial.png │ │ ├── MapProperties.png │ │ ├── MapStatistics.png │ │ ├── OptionsLanguage.png │ │ ├── Plugin.png │ │ ├── PluginReload.png │ │ ├── TileAnimation.png │ │ ├── TileAnimationFrameDelete.png │ │ ├── TileAnimationFrameProperties.png │ │ ├── TileOrderImage.png │ │ ├── TileOrderIndexed.png │ │ ├── TileOrderMru.png │ │ ├── TileProperties.png │ │ ├── TilePropertiesIndicator.png │ │ ├── TileSheet.png │ │ ├── TileSheetAlignment.png │ │ ├── TileSheetAutoTiles.png │ │ ├── TileSheetAutoUpdateDisable.png │ │ ├── TileSheetAutoUpdateEnable.png │ │ ├── TileSheetDelete.png │ │ ├── TileSheetEditImageSource.png │ │ ├── TileSheetNew.png │ │ ├── TileSheetProperties.png │ │ ├── TileSheetRemoveDependencies.png │ │ ├── ToolsDropper.png │ │ ├── ToolsDropperCursor.cur │ │ ├── ToolsEraser.png │ │ ├── ToolsEraserCursor.cur │ │ ├── ToolsFloodFill.png │ │ ├── ToolsFloodFillCursor.cur │ │ ├── ToolsSelect.png │ │ ├── ToolsSingleTile.png │ │ ├── ToolsSingleTileCursor.cur │ │ ├── ToolsTexture.png │ │ ├── ToolsTileBlock.png │ │ ├── ToolsTileBlockCursor.cur │ │ ├── ToolsTileBrush.png │ │ ├── VewTileGuides.png │ │ ├── VewTileGuidesHide.png │ │ ├── VewTileGuidesShow.png │ │ ├── View.png │ │ ├── ViewFullScreen.png │ │ ├── ViewLayerCompositing.png │ │ ├── ViewLayerCompositingDimUnselected.png │ │ ├── ViewLayerCompositingShowAll.png │ │ ├── ViewViewport.png │ │ ├── ViewWindowed.png │ │ ├── ViewZoom.png │ │ ├── ViewZoomIn.png │ │ ├── ViewZoomOut.png │ │ ├── help.ico │ │ └── tIDE.ico │ ├── TileBrushes │ │ ├── TileBrush.cs │ │ ├── TileBrushCollection.cs │ │ └── TileBrushElement.cs │ ├── TileImageCache.cs │ ├── TileSelection.cs │ ├── app.config │ ├── tIDE.csproj │ └── tIDE.csproj.vspscc ├── tIDESetup │ ├── BannerBitmap.bmp │ ├── BannerBitmap.pdn │ ├── License.rtf │ ├── tBIN.ico │ ├── tIDE.ico │ ├── tIDESetup.vdproj │ └── tIDESetup.vdproj.vspscc ├── xTile │ ├── Background.png │ ├── Dimensions │ │ ├── Location.cs │ │ ├── Rectangle.cs │ │ └── Size.cs │ ├── Display │ │ └── IDisplayDevice.cs │ ├── Format │ │ ├── FormatManager.cs │ │ ├── IMapFormat.cs │ │ ├── TbinFormat.cs │ │ ├── TideFormat.cs │ │ └── XmlHelper.cs │ ├── Layers │ │ ├── Layer.cs │ │ ├── LayerEventArgs.cs │ │ └── LayerEventHandler.cs │ ├── Map.cs │ ├── ObjectModel │ │ ├── Component.cs │ │ ├── DescribedComponent.cs │ │ ├── IPropertyCollection.cs │ │ ├── PropertyCollection.cs │ │ └── PropertyValue.cs │ ├── PhoneGameThumb.png │ ├── Properties │ │ ├── AppManifest.xml │ │ ├── AssemblyInfo.cs │ │ └── WMAppManifest.xml │ ├── Tiles │ │ ├── AnimatedTile.cs │ │ ├── StaticTile.cs │ │ ├── Tile.cs │ │ ├── TileArray.cs │ │ ├── TileIndexPropertyAccessor.cs │ │ ├── TileIndexPropertyCollection.cs │ │ └── TileSheet.cs │ ├── XTile360.csproj │ ├── XTile360.csproj.vspscc │ ├── XTilePC.csproj │ ├── XTilePC.csproj.vspscc │ ├── XTileZune.csproj │ ├── XTileZune.csproj.vspscc │ ├── xTile.ico │ ├── xTile360.csproj │ ├── xTile360.csproj.vspscc │ ├── xTileWP7.csproj │ └── xTileWP7.csproj.vspscc └── xTilePipeline │ ├── MapImport.cs │ ├── Properties │ └── AssemblyInfo.cs │ ├── TideImporter.cs │ ├── TideProcessor.cs │ ├── TideWriter.cs │ ├── xTile.ico │ ├── xTilePipeline.csproj │ ├── xTilePipeline.csproj.vspscc │ └── xTilePipeline.pfx └── docs ├── bin ├── TutorialContent120.zip ├── tIDESetup207.msi ├── xTile125.zip ├── xTile207.zip └── xTileDemo207.zip ├── google341d62e5c6f26784.html ├── images ├── AutoTiling.gif ├── GitHub.png ├── PlatformPC.png ├── PlatformWP7.png ├── PlatformX360.png ├── PlatformZune.png ├── Tutorial01.png ├── Tutorial01GS4.png ├── Tutorial02.png ├── Tutorial02GS4.png ├── Tutorial03.png ├── Tutorial03GS4.png ├── Tutorial04.png ├── Tutorial04GS4.png ├── Tutorial05.png ├── Tutorial05GS4.png ├── Tutorial06.png ├── Tutorial06GS4.png ├── Tutorial07.png ├── Tutorial07GS4.png ├── Tutorial08.png ├── Tutorial09.png ├── Tutorial10.png ├── Tutorial11.png ├── Tutorial12.png ├── Tutorial13.png ├── Tutorial14.png ├── Twitter.png ├── favicon.ico ├── tIDE01.png ├── tIDE02.png ├── tIDE03.png ├── tIDE04.png ├── tIDE05.png ├── tIDE06.png ├── tIDE64.png ├── xTile32.png ├── xTile40Demo.png ├── xTileDemoWP7.png ├── xTileDemoX360.png └── xTileInGame.png ├── index.html └── xTileTutorial.pdf /TileMapEditor/Assets/TileSheets/AutoTiles01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/Assets/TileSheets/AutoTiles01.png -------------------------------------------------------------------------------- /TileMapEditor/Assets/TileSheets/Background.pdn: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/Assets/TileSheets/Background.pdn -------------------------------------------------------------------------------- /TileMapEditor/Assets/TileSheets/Background01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/Assets/TileSheets/Background01.png -------------------------------------------------------------------------------- /TileMapEditor/Assets/TileSheets/Background02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/Assets/TileSheets/Background02.png -------------------------------------------------------------------------------- /TileMapEditor/Assets/TileSheets/Background03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/Assets/TileSheets/Background03.png -------------------------------------------------------------------------------- /TileMapEditor/Assets/TileSheets/TileSheet01.pdn: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/Assets/TileSheets/TileSheet01.pdn -------------------------------------------------------------------------------- /TileMapEditor/Assets/TileSheets/TileSheet01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/Assets/TileSheets/TileSheet01.png -------------------------------------------------------------------------------- /TileMapEditor/Demo/Background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/Demo/Background.png -------------------------------------------------------------------------------- /TileMapEditor/Demo/Content/Content.contentproj.vspscc: -------------------------------------------------------------------------------- 1 | "" 2 | { 3 | "FILE_VERSION" = "9237" 4 | "ENLISTMENT_CHOICE" = "NEVER" 5 | "PROJECT_FILE_RELATIVE_PATH" = "" 6 | "NUMBER_OF_EXCLUDED_FILES" = "0" 7 | "ORIGINAL_PROJECT_FILE_PATH" = "" 8 | "NUMBER_OF_NESTED_PROJECTS" = "0" 9 | "SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER" 10 | } 11 | -------------------------------------------------------------------------------- /TileMapEditor/Demo/Content/DemoContent.contentproj.vspscc: -------------------------------------------------------------------------------- 1 | "" 2 | { 3 | "FILE_VERSION" = "9237" 4 | "ENLISTMENT_CHOICE" = "NEVER" 5 | "PROJECT_FILE_RELATIVE_PATH" = "" 6 | "NUMBER_OF_EXCLUDED_FILES" = "0" 7 | "ORIGINAL_PROJECT_FILE_PATH" = "" 8 | "NUMBER_OF_NESTED_PROJECTS" = "0" 9 | "SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER" 10 | } 11 | -------------------------------------------------------------------------------- /TileMapEditor/Demo/Content/Fonts/Demo.spritefont: -------------------------------------------------------------------------------- 1 |  2 | 8 | 9 | 10 | 11 | 14 | Lucida Console 15 | 16 | 20 | 12 21 | 22 | 26 | 0 27 | 28 | 32 | true 33 | 34 | 38 | 39 | 40 | 44 | 45 | 46 | 53 | 54 | 55 | 56 | ~ 57 | 58 | 59 | 60 | 61 | -------------------------------------------------------------------------------- /TileMapEditor/Demo/Content/Graphics/Leaf.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/Demo/Content/Graphics/Leaf.png -------------------------------------------------------------------------------- /TileMapEditor/Demo/Content/TileSheets/Background01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/Demo/Content/TileSheets/Background01.png -------------------------------------------------------------------------------- /TileMapEditor/Demo/Content/TileSheets/Background02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/Demo/Content/TileSheets/Background02.png -------------------------------------------------------------------------------- /TileMapEditor/Demo/Content/TileSheets/Background03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/Demo/Content/TileSheets/Background03.png -------------------------------------------------------------------------------- /TileMapEditor/Demo/Content/TileSheets/TileSheet01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/Demo/Content/TileSheets/TileSheet01.png -------------------------------------------------------------------------------- /TileMapEditor/Demo/Demo360.csproj.vspscc: -------------------------------------------------------------------------------- 1 | "" 2 | { 3 | "FILE_VERSION" = "9237" 4 | "ENLISTMENT_CHOICE" = "NEVER" 5 | "PROJECT_FILE_RELATIVE_PATH" = "" 6 | "NUMBER_OF_EXCLUDED_FILES" = "0" 7 | "ORIGINAL_PROJECT_FILE_PATH" = "" 8 | "NUMBER_OF_NESTED_PROJECTS" = "0" 9 | "SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER" 10 | } 11 | -------------------------------------------------------------------------------- /TileMapEditor/Demo/DemoPC.csproj.vspscc: -------------------------------------------------------------------------------- 1 | "" 2 | { 3 | "FILE_VERSION" = "9237" 4 | "ENLISTMENT_CHOICE" = "NEVER" 5 | "PROJECT_FILE_RELATIVE_PATH" = "" 6 | "NUMBER_OF_EXCLUDED_FILES" = "0" 7 | "ORIGINAL_PROJECT_FILE_PATH" = "" 8 | "NUMBER_OF_NESTED_PROJECTS" = "0" 9 | "SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER" 10 | } 11 | -------------------------------------------------------------------------------- /TileMapEditor/Demo/DemoWP7.csproj.vspscc: -------------------------------------------------------------------------------- 1 | "" 2 | { 3 | "FILE_VERSION" = "9237" 4 | "ENLISTMENT_CHOICE" = "NEVER" 5 | "PROJECT_FILE_RELATIVE_PATH" = "" 6 | "NUMBER_OF_EXCLUDED_FILES" = "0" 7 | "ORIGINAL_PROJECT_FILE_PATH" = "" 8 | "NUMBER_OF_NESTED_PROJECTS" = "0" 9 | "SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER" 10 | } 11 | -------------------------------------------------------------------------------- /TileMapEditor/Demo/Game.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/Demo/Game.ico -------------------------------------------------------------------------------- /TileMapEditor/Demo/GameThumbnail.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/Demo/GameThumbnail.png -------------------------------------------------------------------------------- /TileMapEditor/Demo/PhoneGameThumb.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/Demo/PhoneGameThumb.png -------------------------------------------------------------------------------- /TileMapEditor/Demo/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Demo 4 | { 5 | static class Program 6 | { 7 | /// 8 | /// The main entry point for the application. 9 | /// 10 | static void Main(string[] args) 11 | { 12 | using (DemoGame game = new DemoGame()) 13 | { 14 | game.Run(); 15 | } 16 | } 17 | } 18 | } 19 | 20 | -------------------------------------------------------------------------------- /TileMapEditor/Demo/Properties/AppManifest.xml: -------------------------------------------------------------------------------- 1 |  4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /TileMapEditor/Demo/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("xTile Demo")] 9 | [assembly: AssemblyProduct("xTile Demo")] 10 | [assembly: AssemblyDescription("Demo of the xTile Engine")] 11 | [assembly: AssemblyCompany("Microsoft")] 12 | 13 | [assembly: AssemblyCopyright("Copyright © Colin Vella 2010-2013")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("ea216fe3-a424-4486-b719-bebcfe420ef8")] 24 | 25 | 26 | // Version information for an assembly consists of the following four values: 27 | // 28 | // Major Version 29 | // Minor Version 30 | // Build Number 31 | // Revision 32 | // 33 | [assembly: AssemblyVersion("2.0.7.0")] 34 | [assembly: AssemblyFileVersionAttribute("2.0.7.0")] 35 | -------------------------------------------------------------------------------- /TileMapEditor/Demo/Properties/WMAppManifest.xml: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 0 32 | 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /TileMapEditor/Plugin/IPlugin.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Drawing; 4 | using System.Linq; 5 | using System.Text; 6 | 7 | using tIDE.Plugin.Interface; 8 | 9 | namespace tIDE.Plugin 10 | { 11 | public interface IPlugin 12 | { 13 | string Name { get; } 14 | Version Version { get; } 15 | string Author { get; } 16 | string Description { get; } 17 | Bitmap SmallIcon { get; } 18 | Bitmap LargeIcon { get; } 19 | 20 | void Initialise(IApplication application); 21 | void Shutdown(IApplication application); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /TileMapEditor/Plugin/Interface/IApplication.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | using xTile; 7 | 8 | namespace tIDE.Plugin.Interface 9 | { 10 | public interface IApplication 11 | { 12 | void Execute(ICommand command); 13 | 14 | IMenuStrip MenuStrip { get; } 15 | 16 | IToolBarCollection ToolBars { get; } 17 | 18 | IEditor Editor { get; } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /TileMapEditor/Plugin/Interface/ICommand.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | namespace tIDE.Plugin.Interface 7 | { 8 | public interface ICommand 9 | { 10 | void Do(); 11 | void Undo(); 12 | 13 | string Description { get; } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /TileMapEditor/Plugin/Interface/IEditor.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Windows.Forms; 6 | 7 | using xTile; 8 | using xTile.Dimensions; 9 | using xTile.Layers; 10 | 11 | namespace tIDE.Plugin.Interface 12 | { 13 | public interface IEditor: IElement 14 | { 15 | Map Map { get; } 16 | Layer Layer { get; } 17 | 18 | EditorHandler MouseDown { set; } 19 | EditorHandler MouseMove { set; } 20 | EditorHandler MouseUp { set; } 21 | } 22 | 23 | public delegate void EditorHandler(MouseEventArgs mouseEventArgs, Location tileLocation); 24 | } 25 | -------------------------------------------------------------------------------- /TileMapEditor/Plugin/Interface/IElement.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | namespace tIDE.Plugin.Interface 7 | { 8 | public interface IElement 9 | { 10 | bool ReadOnly { get; } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /TileMapEditor/Plugin/Interface/IMenuItem.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Collections.ObjectModel; 4 | using System.Drawing; 5 | using System.Linq; 6 | using System.Text; 7 | using System.Windows.Forms; 8 | 9 | namespace tIDE.Plugin.Interface 10 | { 11 | public interface IMenuItem: IElement 12 | { 13 | string Text { get; set; } 14 | 15 | Image Image { get; set; } 16 | 17 | Keys ShortcutKeys { get; set; } 18 | 19 | bool Enabled { get; set; } 20 | 21 | bool Visible { get; set; } 22 | 23 | IMenuItemCollection SubItems { get; } 24 | 25 | object Tag { get; set; } 26 | 27 | EventHandler EventHandler { set; } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /TileMapEditor/Plugin/Interface/IMenuItemCollection.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | namespace tIDE.Plugin.Interface 7 | { 8 | public interface IMenuItemCollection: IEnumerable 9 | { 10 | IMenuItem Add(string text); 11 | void Remove(IMenuItem menuItem); 12 | 13 | IMenuItem this[string text] { get; } 14 | IMenuItem this[int index] { get; } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /TileMapEditor/Plugin/Interface/IMenuStrip.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Collections.ObjectModel; 4 | using System.Linq; 5 | using System.Text; 6 | 7 | namespace tIDE.Plugin.Interface 8 | { 9 | public interface IMenuStrip 10 | { 11 | IMenuItemCollection DropDownMenus { get; } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /TileMapEditor/Plugin/Interface/IToolBar.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Drawing; 4 | using System.Linq; 5 | using System.Text; 6 | 7 | namespace tIDE.Plugin.Interface 8 | { 9 | public interface IToolBar: IElement 10 | { 11 | string Id { get; set; } 12 | 13 | bool Enabled { get; set; } 14 | 15 | IToolBarButtonCollection Buttons { get; } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /TileMapEditor/Plugin/Interface/IToolBarButton.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Drawing; 4 | using System.Linq; 5 | using System.Text; 6 | 7 | 8 | namespace tIDE.Plugin.Interface 9 | { 10 | public interface IToolBarButton: IElement 11 | { 12 | string Id { get; set; } 13 | 14 | Image Image { get; set; } 15 | 16 | string ToolTipText { get; set; } 17 | 18 | bool Enabled { get; set; } 19 | 20 | bool Checked { get; set; } 21 | 22 | object Tag { get; set; } 23 | 24 | EventHandler EventHandler { set; } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /TileMapEditor/Plugin/Interface/IToolBarButtonCollection.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Drawing; 6 | 7 | namespace tIDE.Plugin.Interface 8 | { 9 | public interface IToolBarButtonCollection 10 | { 11 | IToolBarButton Add(string id, Image image); 12 | void Remove(IToolBarButton toolBarButton); 13 | 14 | IToolBarButton this[string id] { get; } 15 | IToolBarButton this[int index] { get; } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /TileMapEditor/Plugin/Interface/IToolBarCollection.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Drawing; 4 | using System.Linq; 5 | using System.Text; 6 | 7 | namespace tIDE.Plugin.Interface 8 | { 9 | public interface IToolBarCollection 10 | { 11 | IToolBar Add(string id); 12 | void Remove(IToolBar toolBar); 13 | 14 | IToolBar this[string id] { get; } 15 | IToolBar this[int index] { get; } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /TileMapEditor/Plugin/Plugin.csproj.vspscc: -------------------------------------------------------------------------------- 1 | "" 2 | { 3 | "FILE_VERSION" = "9237" 4 | "ENLISTMENT_CHOICE" = "NEVER" 5 | "PROJECT_FILE_RELATIVE_PATH" = "" 6 | "NUMBER_OF_EXCLUDED_FILES" = "0" 7 | "ORIGINAL_PROJECT_FILE_PATH" = "" 8 | "NUMBER_OF_NESTED_PROJECTS" = "0" 9 | "SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER" 10 | } 11 | -------------------------------------------------------------------------------- /TileMapEditor/Plugin/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("Plugin")] 9 | [assembly: AssemblyDescription("Plugin Interface for tIDE")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("Colin Vella")] 12 | [assembly: AssemblyProduct("Plugin")] 13 | [assembly: AssemblyCopyright("Copyright © Colin Vella 2010-2012")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("8a01ed80-4ddd-41c7-99f0-8525ba53c8ef")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("2.0.6.0")] 36 | [assembly: AssemblyFileVersion("2.0.6.0")] 37 | -------------------------------------------------------------------------------- /TileMapEditor/Plugin/Resources/tIDE.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/Plugin/Resources/tIDE.ico -------------------------------------------------------------------------------- /TileMapEditor/TestPlugin/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("TestPlugin")] 9 | [assembly: AssemblyDescription("Test plugin implementation")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("Colin Vella")] 12 | [assembly: AssemblyProduct("TestPlugin")] 13 | [assembly: AssemblyCopyright("Copyright © Colin Vella 2010-2011")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("9d95456f-7c2f-4804-9b7b-444685b27c50")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("2.0.1.0")] 36 | [assembly: AssemblyFileVersion("2.0.1.0")] 37 | -------------------------------------------------------------------------------- /TileMapEditor/TestPlugin/Resources/Action.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/TestPlugin/Resources/Action.png -------------------------------------------------------------------------------- /TileMapEditor/TestPlugin/Resources/LargeIcon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/TestPlugin/Resources/LargeIcon.png -------------------------------------------------------------------------------- /TileMapEditor/TestPlugin/Resources/Menu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/TestPlugin/Resources/Menu.png -------------------------------------------------------------------------------- /TileMapEditor/TestPlugin/Resources/SmallIcon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/TestPlugin/Resources/SmallIcon.png -------------------------------------------------------------------------------- /TileMapEditor/TestPlugin/TestPlugin.csproj.vspscc: -------------------------------------------------------------------------------- 1 | "" 2 | { 3 | "FILE_VERSION" = "9237" 4 | "ENLISTMENT_CHOICE" = "NEVER" 5 | "PROJECT_FILE_RELATIVE_PATH" = "" 6 | "NUMBER_OF_EXCLUDED_FILES" = "0" 7 | "ORIGINAL_PROJECT_FILE_PATH" = "" 8 | "NUMBER_OF_NESTED_PROJECTS" = "0" 9 | "SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER" 10 | } 11 | -------------------------------------------------------------------------------- /TileMapEditor/TileMapEditor.vssscc: -------------------------------------------------------------------------------- 1 | "" 2 | { 3 | "FILE_VERSION" = "9237" 4 | "ENLISTMENT_CHOICE" = "NEVER" 5 | "PROJECT_FILE_RELATIVE_PATH" = "" 6 | "NUMBER_OF_EXCLUDED_FILES" = "0" 7 | "ORIGINAL_PROJECT_FILE_PATH" = "" 8 | "NUMBER_OF_NESTED_PROJECTS" = "0" 9 | "SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROJECT" 10 | } 11 | -------------------------------------------------------------------------------- /TileMapEditor/TileMapEditor/GdiPlusDisplayDevice.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Drawing; 4 | using System.Linq; 5 | using System.Text; 6 | 7 | using Tiling; 8 | 9 | namespace TileMapEditor 10 | { 11 | class GdiPlusDisplayDevice: DisplayDevice 12 | { 13 | private Graphics m_graphics; 14 | private Dictionary m_tileSheetBitmaps; 15 | 16 | #region Public Methods 17 | 18 | public GdiPlusDisplayDevice() 19 | { 20 | m_graphics = null; 21 | m_tileSheetBitmaps = new Dictionary(); 22 | } 23 | 24 | public void LoadTileSheet(TileSheet tileSheet) 25 | { 26 | Bitmap bitmap = new Bitmap(tileSheet.ImageSource); 27 | m_tileSheetBitmaps[tileSheet] = bitmap; 28 | } 29 | 30 | public void DisposeTileSheet(TileSheet tileSheet) 31 | { 32 | m_tileSheetBitmaps.Remove(tileSheet); 33 | } 34 | 35 | public void BeginScene() 36 | { 37 | } 38 | 39 | public void SetClippingRegion(Tiling.Rectangle clippingRegion) 40 | { 41 | m_graphics.SetClip(new RectangleF( 42 | clippingRegion.Location.X, clippingRegion.Location.Y, 43 | clippingRegion.Size.Width, clippingRegion.Size.Height)); 44 | } 45 | 46 | public void DrawTile(Tile tile, Location location) 47 | { 48 | Tiling.Rectangle imageBounds = tile.TileSheet.GetTileImageBounds(tile.TileIndex); 49 | Bitmap bitmap = m_tileSheetBitmaps[tile.TileSheet]; 50 | System.Drawing.Rectangle imageBoundsGDIP = new System.Drawing.Rectangle( 51 | imageBounds.Location.X, imageBounds.Location.Y, 52 | imageBounds.Size.Width, imageBounds.Size.Height); 53 | m_graphics.DrawImage(bitmap, location.X, location.Y, imageBoundsGDIP, GraphicsUnit.Pixel); 54 | } 55 | 56 | public void EndScene() 57 | { 58 | } 59 | 60 | #endregion 61 | 62 | #region Public Properties 63 | 64 | public Graphics Graphics 65 | { 66 | get { return m_graphics; } 67 | set { m_graphics = value; } 68 | } 69 | 70 | #endregion 71 | } 72 | } 73 | -------------------------------------------------------------------------------- /TileMapEditor/TileMapEditor/History/HistoryEntry.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | namespace TileMapEditor.History 7 | { 8 | internal abstract class HistoryEntry 9 | { 10 | public abstract void Undo(); 11 | 12 | public abstract void Redo(); 13 | 14 | public abstract string Description { get; } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /TileMapEditor/TileMapEditor/History/LayerHistoryEntry.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | using Tiling; 7 | using Tiling.Layers; 8 | using Tiling.Tiles; 9 | 10 | namespace TileMapEditor.History 11 | { 12 | internal class LayerHistoryEntry : HistoryEntry 13 | { 14 | private Map m_map; 15 | private int m_layerIndex; 16 | private Layer m_oldLayer; 17 | private Layer m_newLayer; 18 | private string m_description; 19 | 20 | public LayerHistoryEntry(Map map, int layerIndex, 21 | Layer oldLayer, Layer newLayer, string description) 22 | { 23 | m_map = map; 24 | m_layerIndex = layerIndex; 25 | m_oldLayer = oldLayer; 26 | m_newLayer = newLayer; 27 | m_description = description; 28 | } 29 | 30 | public override void Undo() 31 | { 32 | m_map.RemoveLayer(m_newLayer); 33 | m_map.InsertLayer(m_oldLayer, m_layerIndex); 34 | } 35 | 36 | public override void Redo() 37 | { 38 | m_map.RemoveLayer(m_oldLayer); 39 | m_map.InsertLayer(m_newLayer, m_layerIndex); 40 | } 41 | 42 | public override string Description 43 | { 44 | get { return m_description; } 45 | } 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /TileMapEditor/TileMapEditor/History/MapHistoryEntry.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | using Tiling; 7 | 8 | namespace TileMapEditor.History 9 | { 10 | internal class MapHistoryEntry : HistoryEntry 11 | { 12 | private Map map; 13 | private Map m_oldMap; 14 | private Map m_newMap; 15 | private string m_description; 16 | 17 | public MapHistoryEntry(Map oldMap, Map newMap, string description) 18 | { 19 | m_oldMap = oldMap; 20 | m_newMap = newMap; 21 | m_description = description; 22 | } 23 | 24 | public override void Undo() 25 | { 26 | } 27 | 28 | public override void Redo() 29 | { 30 | } 31 | 32 | public override string Description 33 | { 34 | get { return m_description; } 35 | } 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /TileMapEditor/TileMapEditor/History/TileHistoryEntry.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | using Tiling.Dimensions; 7 | using Tiling.Layers; 8 | using Tiling.Tiles; 9 | 10 | namespace TileMapEditor.History 11 | { 12 | internal class TileHistoryEntry: HistoryEntry 13 | { 14 | private Layer m_layer; 15 | private Location m_tileLocation; 16 | private Tile m_oldTile; 17 | private Tile m_newTile; 18 | private string m_description; 19 | 20 | public TileHistoryEntry(Layer layer, Location tileLocation, 21 | Tile oldTile, Tile newTile, string description) 22 | { 23 | m_layer = layer; 24 | m_tileLocation = tileLocation; 25 | m_oldTile = oldTile; 26 | m_newTile = newTile; 27 | m_description = description; 28 | } 29 | 30 | public override void Undo() 31 | { 32 | m_layer.Tiles[m_tileLocation] = m_oldTile; 33 | } 34 | 35 | public override void Redo() 36 | { 37 | m_layer.Tiles[m_tileLocation] = m_newTile; 38 | } 39 | 40 | public override string Description 41 | { 42 | get { return m_description; } 43 | } 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /TileMapEditor/TileMapEditor/Plugin/IPlugin.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Drawing; 4 | using System.Linq; 5 | using System.Text; 6 | 7 | using TileMapEditor.Plugin.Interface; 8 | 9 | namespace TileMapEditor.Plugin 10 | { 11 | interface IPlugin 12 | { 13 | string Name { get; } 14 | Version Version { get; } 15 | string Author { get; } 16 | string Description { get; } 17 | Bitmap Icon { get; } 18 | 19 | void Initialise(IApplication application); 20 | void Shutdown(IApplication application); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /TileMapEditor/TileMapEditor/Plugin/Interface/IApplication.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | namespace TileMapEditor.Plugin.Interface 7 | { 8 | public interface IApplication 9 | { 10 | IMenuStrip MenuStrip { get; } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /TileMapEditor/TileMapEditor/Plugin/Interface/IElement.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | namespace TileMapEditor.Plugin.Interface 7 | { 8 | public interface IElement 9 | { 10 | bool ReadOnly { get; } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /TileMapEditor/TileMapEditor/Plugin/Interface/IMenuItem.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Collections.ObjectModel; 4 | using System.Drawing; 5 | using System.Linq; 6 | using System.Text; 7 | using System.Windows.Forms; 8 | 9 | namespace TileMapEditor.Plugin.Interface 10 | { 11 | public interface IMenuItem: IElement 12 | { 13 | //IMenuItem AddSubItem(string text); 14 | 15 | string Text { get; set; } 16 | Image Image { get; set; } 17 | Keys ShortcutKeys { get; set; } 18 | bool Enabled { get; set; } 19 | IMenuItemCollection SubItems { get; } 20 | //ReadOnlyCollection SubItems { get; } 21 | EventHandler EventHandler { set; } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /TileMapEditor/TileMapEditor/Plugin/Interface/IMenuItemCollection.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | namespace TileMapEditor.Plugin.Interface 7 | { 8 | public interface IMenuItemCollection: IEnumerable 9 | { 10 | IMenuItem AddItem(string text); 11 | 12 | IMenuItem this[string text] { get; } 13 | IMenuItem this[int index] { get; } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /TileMapEditor/TileMapEditor/Plugin/Interface/IMenuStrip.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Collections.ObjectModel; 4 | using System.Linq; 5 | using System.Text; 6 | 7 | namespace TileMapEditor.Plugin.Interface 8 | { 9 | public interface IMenuStrip 10 | { 11 | IMenuItemCollection DropDownMenus { get; } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /TileMapEditor/TileMapEditor/Plugins/IPlugin.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Drawing; 4 | using System.Linq; 5 | using System.Text; 6 | 7 | using TileMapEditor.Plugin.Interface; 8 | 9 | namespace TileMapEditor.Plugin 10 | { 11 | interface IPlugin 12 | { 13 | string Name { get; } 14 | Version Version { get; } 15 | string Author { get; } 16 | string Description { get; } 17 | Bitmap Icon { get; } 18 | 19 | void Initialise(IApplication application); 20 | void Shutdown(IApplication application); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /TileMapEditor/TileMapEditor/Plugins/Interface/IApplication.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | namespace TileMapEditor.Plugin.Interface 7 | { 8 | public interface IApplication 9 | { 10 | IMenuStrip MenuStrip { get; } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /TileMapEditor/TileMapEditor/Plugins/Interface/IElement.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | namespace TileMapEditor.Plugin.Interface 7 | { 8 | public interface IElement 9 | { 10 | bool ReadOnly { get; } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /TileMapEditor/TileMapEditor/Plugins/Interface/IMenuItem.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Collections.ObjectModel; 4 | using System.Drawing; 5 | using System.Linq; 6 | using System.Text; 7 | using System.Windows.Forms; 8 | 9 | namespace TileMapEditor.Plugin.Interface 10 | { 11 | public interface IMenuItem: IElement 12 | { 13 | //IMenuItem AddSubItem(string text); 14 | 15 | string Text { get; set; } 16 | Image Image { get; set; } 17 | Keys ShortcutKeys { get; set; } 18 | bool Enabled { get; set; } 19 | IMenuItemCollection SubItems { get; } 20 | //ReadOnlyCollection SubItems { get; } 21 | EventHandler EventHandler { set; } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /TileMapEditor/TileMapEditor/Plugins/Interface/IMenuItemCollection.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | namespace TileMapEditor.Plugin.Interface 7 | { 8 | public interface IMenuItemCollection: IEnumerable 9 | { 10 | IMenuItem AddItem(string text); 11 | 12 | IMenuItem this[string text] { get; } 13 | IMenuItem this[int index] { get; } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /TileMapEditor/TileMapEditor/Plugins/Interface/IMenuStrip.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Collections.ObjectModel; 4 | using System.Linq; 5 | using System.Text; 6 | 7 | namespace TileMapEditor.Plugin.Interface 8 | { 9 | public interface IMenuStrip 10 | { 11 | IMenuItemCollection DropDownMenus { get; } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /TileMapEditor/TileMapEditor/Properties/DataSources/TileBrush.datasource: -------------------------------------------------------------------------------- 1 |  2 | 8 | 9 | TileMapEditor.TileBrush, TileMapEditor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null 10 | -------------------------------------------------------------------------------- /TileMapEditor/TileMapEditor/Resources/EditDropper.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/TileMapEditor/Resources/EditDropper.png -------------------------------------------------------------------------------- /TileMapEditor/TileMapEditor/Resources/EditDropperCursor.cur: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/TileMapEditor/Resources/EditDropperCursor.cur -------------------------------------------------------------------------------- /TileMapEditor/TileMapEditor/Resources/EditEraser.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/TileMapEditor/Resources/EditEraser.png -------------------------------------------------------------------------------- /TileMapEditor/TileMapEditor/Resources/EditEraserCursor.cur: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/TileMapEditor/Resources/EditEraserCursor.cur -------------------------------------------------------------------------------- /TileMapEditor/TileMapEditor/Resources/EditSelect.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/TileMapEditor/Resources/EditSelect.png -------------------------------------------------------------------------------- /TileMapEditor/TileMapEditor/Resources/EditSingleTile.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/TileMapEditor/Resources/EditSingleTile.png -------------------------------------------------------------------------------- /TileMapEditor/TileMapEditor/Resources/EditSingleTileCursor.cur: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/TileMapEditor/Resources/EditSingleTileCursor.cur -------------------------------------------------------------------------------- /TileMapEditor/TileMapEditor/Resources/EditTileBlock.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/TileMapEditor/Resources/EditTileBlock.png -------------------------------------------------------------------------------- /TileMapEditor/TileMapEditor/Resources/EditTileBlockCursor.cur: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/TileMapEditor/Resources/EditTileBlockCursor.cur -------------------------------------------------------------------------------- /TileMapEditor/TileMapEditor/Resources/EditTileBrush.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/TileMapEditor/Resources/EditTileBrush.png -------------------------------------------------------------------------------- /TileMapEditor/TileMapEditor/Resources/MapZoom.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/TileMapEditor/Resources/MapZoom.png -------------------------------------------------------------------------------- /TileMapEditor/TileMapEditor/Resources/MapZoomIn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/TileMapEditor/Resources/MapZoomIn.png -------------------------------------------------------------------------------- /TileMapEditor/TileMapEditor/Resources/MapZoomOut.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/TileMapEditor/Resources/MapZoomOut.png -------------------------------------------------------------------------------- /TileMapEditor/TileMapEditor/Resources/TileGuide.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/TileMapEditor/Resources/TileGuide.png -------------------------------------------------------------------------------- /TileMapEditor/TileMapEditor/Resources/ViewViewPort.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/TileMapEditor/Resources/ViewViewPort.png -------------------------------------------------------------------------------- /TileMapEditor/XTile/Content/Content.contentproj.vspscc: -------------------------------------------------------------------------------- 1 | "" 2 | { 3 | "FILE_VERSION" = "9237" 4 | "ENLISTMENT_CHOICE" = "NEVER" 5 | "PROJECT_FILE_RELATIVE_PATH" = "" 6 | "NUMBER_OF_EXCLUDED_FILES" = "0" 7 | "ORIGINAL_PROJECT_FILE_PATH" = "" 8 | "NUMBER_OF_NESTED_PROJECTS" = "0" 9 | "SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER" 10 | } 11 | -------------------------------------------------------------------------------- /TileMapEditor/XTile/Format/CompatibilityResults.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Collections.ObjectModel; 4 | using System.Linq; 5 | using System.Text; 6 | 7 | namespace XTile.Format 8 | { 9 | [Serializable] 10 | public enum CompatibilityLevel 11 | { 12 | Full, 13 | Partial, 14 | None 15 | } 16 | 17 | [Serializable] 18 | public class CompatibilityResults 19 | { 20 | private CompatibilityLevel m_compatibilityLevel; 21 | private List m_remarks; 22 | 23 | public CompatibilityResults(CompatibilityLevel compatibilityLevel, List remarks) 24 | { 25 | m_compatibilityLevel = compatibilityLevel; 26 | m_remarks = new List(remarks); 27 | } 28 | 29 | public CompatibilityResults(CompatibilityLevel compatibilityLevel) 30 | { 31 | m_compatibilityLevel = compatibilityLevel; 32 | m_remarks = new List(); 33 | } 34 | 35 | public CompatibilityLevel CompatibilityLevel 36 | { 37 | get { return m_compatibilityLevel; } 38 | } 39 | 40 | public ReadOnlyCollection Remarks 41 | { 42 | get { return m_remarks.AsReadOnly(); } 43 | } 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /TileMapEditor/XTile/Layers/LayerEventArgs.cs: -------------------------------------------------------------------------------- 1 | ///////////////////////////////////////////////////////////////////////////// 2 | // // 3 | // LICENSE Microsoft Public License (Ms-PL) // 4 | // http://www.opensource.org/licenses/ms-pl.html // 5 | // // 6 | // AUTHOR Colin Vella // 7 | // // 8 | // CODEBASE http://tide.codeplex.com // 9 | // // 10 | ///////////////////////////////////////////////////////////////////////////// 11 | 12 | using System; 13 | using System.Collections.Generic; 14 | using System.Linq; 15 | using System.Text; 16 | 17 | using xTile.Dimensions; 18 | 19 | namespace xTile.Layers 20 | { 21 | /// 22 | /// Argument structure for Layer-related events 23 | /// 24 | public class LayerEventArgs 25 | { 26 | #region Public Properties 27 | 28 | /// 29 | /// Layer associated with the event 30 | /// 31 | public Layer Layer { get { return m_layer; } } 32 | 33 | /// 34 | /// Viewport at the time of the event 35 | /// 36 | public Rectangle Viewport { get { return m_viewport; } } 37 | 38 | #endregion 39 | 40 | #region Public Methods 41 | 42 | /// 43 | /// Constructs a new Layer arguments structure 44 | /// 45 | /// Layer associated with the event 46 | /// Viewport associated with the event 47 | public LayerEventArgs(Layer layer, Rectangle viewport) 48 | { 49 | m_layer = layer; 50 | m_viewport = viewport; 51 | } 52 | 53 | #endregion 54 | 55 | #region Private Variables 56 | 57 | private Layer m_layer; 58 | private Rectangle m_viewport; 59 | 60 | #endregion 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /TileMapEditor/XTile/ObjectModel/PropertyCollection.cs: -------------------------------------------------------------------------------- 1 | ///////////////////////////////////////////////////////////////////////////// 2 | // // 3 | // LICENSE Microsoft Public License (Ms-PL) // 4 | // http://www.opensource.org/licenses/ms-pl.html // 5 | // // 6 | // AUTHOR Colin Vella // 7 | // // 8 | // CODEBASE http://tide.codeplex.com // 9 | // // 10 | ///////////////////////////////////////////////////////////////////////////// 11 | 12 | using System; 13 | using System.Collections.Generic; 14 | using System.Linq; 15 | using System.Text; 16 | 17 | namespace xTile.ObjectModel 18 | { 19 | /// 20 | /// General implementation of the IPropertyCollection interface 21 | /// 22 | public class PropertyCollection : Dictionary, IPropertyCollection 23 | { 24 | /// 25 | /// Constucts an empty property collection 26 | /// 27 | public PropertyCollection() 28 | : base() 29 | { 30 | } 31 | 32 | /// 33 | /// Constucts a property collection by cloning the given 34 | /// collection 35 | /// 36 | /// Property collection to clone 37 | public PropertyCollection(IPropertyCollection propertyCollection) 38 | : base(propertyCollection.Count) 39 | { 40 | CopyFrom(propertyCollection); 41 | } 42 | 43 | /// 44 | /// Copies the given property collection into this collection 45 | /// 46 | /// Property collection to copy from 47 | public void CopyFrom(IPropertyCollection propertyCollection) 48 | { 49 | foreach (KeyValuePair keyValuePair in propertyCollection) 50 | this[keyValuePair.Key] = new PropertyValue(keyValuePair.Value); 51 | } 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /TileMapEditor/XTile/Pipeline/TideReader.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.IO; 4 | 5 | using System.Linq; 6 | 7 | using Microsoft.Xna.Framework; 8 | using Microsoft.Xna.Framework.Content; 9 | using Microsoft.Xna.Framework.Graphics; 10 | 11 | using xTile; 12 | using xTile.Format; 13 | 14 | namespace xTile.Pipeline 15 | { 16 | /// 17 | /// Content reader class for tIDE map files 18 | /// 19 | public class TideReader : ContentTypeReader 20 | { 21 | /// 22 | /// Reads a map from the current stream 23 | /// 24 | /// The ContentReader used to read the object 25 | /// An existing object to read into 26 | /// A loaded map instance 27 | protected override Map Read(ContentReader contentReader, Map existingMap) 28 | { 29 | // existing map is ignored 30 | int dataLength = contentReader.ReadInt32(); 31 | byte[] data = contentReader.ReadBytes(dataLength); 32 | 33 | using (MemoryStream memoryStream = new MemoryStream(data)) 34 | { 35 | Map map = FormatManager.Instance.BinaryFormat.Load(memoryStream); 36 | 37 | return map; 38 | } 39 | } 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /TileMapEditor/XTile/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("xTile")] 9 | [assembly: AssemblyProduct("xTile")] 10 | [assembly: AssemblyDescription("Tile Engine for XNA 4.0")] 11 | [assembly: AssemblyCompany("Colin Vella")] 12 | [assembly: AssemblyCopyright("Copyright © Colin Vella 2010-2013")] 13 | [assembly: AssemblyTrademark("")] 14 | [assembly: AssemblyCulture("")] 15 | 16 | // Setting ComVisible to false makes the types in this assembly not visible 17 | // to COM components. If you need to access a type in this assembly from 18 | // COM, set the ComVisible attribute to true on that type. Only Windows 19 | // assemblies support COM. 20 | [assembly: ComVisible(false)] 21 | 22 | // On Windows, the following GUID is for the ID of the typelib if this 23 | // project is exposed to COM. On other platforms, it unique identifies the 24 | // title storage container when deploying this assembly to the device. 25 | [assembly: Guid("0b38fcb3-de04-401f-a923-ab0a055e80fe")] 26 | 27 | // Version information for an assembly consists of the following four values: 28 | // 29 | // Major Version 30 | // Minor Version 31 | // Build Number 32 | // Revision 33 | // 34 | [assembly: AssemblyVersion("2.0.7.0")] 35 | [assembly: AssemblyFileVersionAttribute("2.0.7.0")] 36 | -------------------------------------------------------------------------------- /TileMapEditor/XTile/XTile360.csproj.vspscc: -------------------------------------------------------------------------------- 1 | "" 2 | { 3 | "FILE_VERSION" = "9237" 4 | "ENLISTMENT_CHOICE" = "NEVER" 5 | "PROJECT_FILE_RELATIVE_PATH" = "" 6 | "NUMBER_OF_EXCLUDED_FILES" = "0" 7 | "ORIGINAL_PROJECT_FILE_PATH" = "" 8 | "NUMBER_OF_NESTED_PROJECTS" = "0" 9 | "SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER" 10 | } 11 | -------------------------------------------------------------------------------- /TileMapEditor/XTile/XTilePC.csproj.vspscc: -------------------------------------------------------------------------------- 1 | "" 2 | { 3 | "FILE_VERSION" = "9237" 4 | "ENLISTMENT_CHOICE" = "NEVER" 5 | "PROJECT_FILE_RELATIVE_PATH" = "" 6 | "NUMBER_OF_EXCLUDED_FILES" = "0" 7 | "ORIGINAL_PROJECT_FILE_PATH" = "" 8 | "NUMBER_OF_NESTED_PROJECTS" = "0" 9 | "SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER" 10 | } 11 | -------------------------------------------------------------------------------- /TileMapEditor/XTile/XTileZune.csproj.vspscc: -------------------------------------------------------------------------------- 1 | "" 2 | { 3 | "FILE_VERSION" = "9237" 4 | "ENLISTMENT_CHOICE" = "NEVER" 5 | "PROJECT_FILE_RELATIVE_PATH" = "" 6 | "NUMBER_OF_EXCLUDED_FILES" = "0" 7 | "ORIGINAL_PROJECT_FILE_PATH" = "" 8 | "NUMBER_OF_NESTED_PROJECTS" = "0" 9 | "SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER" 10 | } 11 | -------------------------------------------------------------------------------- /TileMapEditor/XTile/xTile.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/XTile/xTile.ico -------------------------------------------------------------------------------- /TileMapEditor/XTile/xTilePC.csproj.vspscc: -------------------------------------------------------------------------------- 1 | "" 2 | { 3 | "FILE_VERSION" = "9237" 4 | "ENLISTMENT_CHOICE" = "NEVER" 5 | "PROJECT_FILE_RELATIVE_PATH" = "" 6 | "NUMBER_OF_EXCLUDED_FILES" = "0" 7 | "ORIGINAL_PROJECT_FILE_PATH" = "" 8 | "NUMBER_OF_NESTED_PROJECTS" = "0" 9 | "SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER" 10 | } 11 | -------------------------------------------------------------------------------- /TileMapEditor/tIDE/ClipBoardManager.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | using tIDE.TileBrushes; 7 | 8 | namespace tIDE 9 | { 10 | internal class ClipBoardManager 11 | { 12 | private static ClipBoardManager s_clipBoardManager = new ClipBoardManager(); 13 | 14 | private TileBrush m_tileBrush; 15 | 16 | private ClipBoardManager() 17 | { 18 | m_tileBrush = null; 19 | } 20 | 21 | public static ClipBoardManager Instance { get { return s_clipBoardManager; } } 22 | 23 | public bool HasTileBrush() 24 | { 25 | return m_tileBrush != null; 26 | } 27 | 28 | public void StoreTileBrush(TileBrush tileBrush) 29 | { 30 | m_tileBrush = tileBrush; 31 | } 32 | 33 | public TileBrush RetrieveTileBrush() 34 | { 35 | return m_tileBrush; 36 | } 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Commands/Command.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | namespace tIDE.Commands 7 | { 8 | internal abstract class Command 9 | { 10 | protected string m_description; 11 | 12 | public abstract void Do(); 13 | public abstract void Undo(); 14 | 15 | public override string ToString() 16 | { 17 | return m_description; 18 | } 19 | 20 | public virtual string Description 21 | { 22 | get { return m_description; } 23 | } 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Commands/CustomPropertiesCommand.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | using xTile.ObjectModel; 7 | 8 | namespace tIDE.Commands 9 | { 10 | internal class CustomPropertiesCommand: Command 11 | { 12 | private Component m_component; 13 | private PropertyCollection m_oldProperties, m_newProperties; 14 | 15 | public CustomPropertiesCommand(Component component, PropertyCollection newProperties) 16 | { 17 | m_component = component; 18 | 19 | m_oldProperties = new PropertyCollection(component.Properties); 20 | 21 | m_newProperties = newProperties; 22 | 23 | m_description = "Change custom properties"; 24 | } 25 | 26 | public override void Do() 27 | { 28 | m_component.Properties.Clear(); 29 | m_component.Properties.CopyFrom(m_newProperties); 30 | } 31 | 32 | public override void Undo() 33 | { 34 | m_component.Properties.Clear(); 35 | m_component.Properties.CopyFrom(m_oldProperties); 36 | } 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Commands/EditChangeSelectionCommand.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | using xTile.Dimensions; 7 | using xTile.Layers; 8 | 9 | namespace tIDE.Commands 10 | { 11 | internal enum ChangeSelectionType 12 | { 13 | SelectAll, 14 | Clear, 15 | Invert 16 | } 17 | 18 | internal class EditChangeSelectionCommand: Command 19 | { 20 | private Layer m_layer; 21 | private TileSelection m_currentTileSelection; 22 | private TileSelection m_oldTileSelection; 23 | private ChangeSelectionType m_changeSelectionType; 24 | 25 | public EditChangeSelectionCommand(Layer layer, 26 | TileSelection currentTileSelection, 27 | ChangeSelectionType changeSelectionType) 28 | { 29 | m_layer = layer; 30 | m_currentTileSelection = currentTileSelection; 31 | m_oldTileSelection = new TileSelection(currentTileSelection); 32 | m_changeSelectionType = changeSelectionType; 33 | 34 | switch (m_changeSelectionType) 35 | { 36 | case ChangeSelectionType.SelectAll: 37 | m_description = "Select all tiles"; 38 | break; 39 | case ChangeSelectionType.Clear: 40 | m_description = "Clear tile selection"; 41 | break; 42 | case ChangeSelectionType.Invert: 43 | m_description = "Invert tile selection"; 44 | break; 45 | } 46 | } 47 | 48 | public override void Do() 49 | { 50 | Rectangle selectionContext 51 | = new Rectangle(Location.Origin, m_layer.LayerSize); 52 | 53 | switch (m_changeSelectionType) 54 | { 55 | case ChangeSelectionType.SelectAll: 56 | m_currentTileSelection.SelectAll(selectionContext); 57 | break; 58 | case ChangeSelectionType.Clear: 59 | m_currentTileSelection.Clear(); 60 | break; 61 | case ChangeSelectionType.Invert: 62 | m_currentTileSelection.Invert(selectionContext); 63 | break; 64 | } 65 | } 66 | 67 | public override void Undo() 68 | { 69 | m_currentTileSelection.Clear(); 70 | m_currentTileSelection.Merge(m_oldTileSelection); 71 | } 72 | } 73 | } 74 | -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Commands/EditCopyCommand.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | using xTile.Dimensions; 7 | using xTile.Layers; 8 | using xTile.Tiles; 9 | 10 | using tIDE.TileBrushes; 11 | 12 | namespace tIDE.Commands 13 | { 14 | internal class EditCopyCommand : Command 15 | { 16 | private Layer m_layer; 17 | private TileSelection m_tileSelection; 18 | private TileBrush m_previousClipboardContent; 19 | 20 | public EditCopyCommand(Layer layer, TileSelection tileSelection) 21 | { 22 | m_layer = layer; 23 | m_tileSelection = tileSelection; 24 | 25 | m_description = "Copy selection from layer \"" + m_layer.Id + "\""; 26 | } 27 | 28 | public override void Do() 29 | { 30 | ClipBoardManager clipBoardManager = ClipBoardManager.Instance; 31 | m_previousClipboardContent = clipBoardManager.RetrieveTileBrush(); 32 | TileBrush tileBrush = new TileBrush(m_layer, m_tileSelection); 33 | clipBoardManager.StoreTileBrush(tileBrush); 34 | } 35 | 36 | public override void Undo() 37 | { 38 | ClipBoardManager clipBoardManager = ClipBoardManager.Instance; 39 | clipBoardManager.StoreTileBrush(m_previousClipboardContent); 40 | } 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Commands/EditCutCommand.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | using xTile.Dimensions; 7 | using xTile.Layers; 8 | using xTile.Tiles; 9 | 10 | using tIDE.TileBrushes; 11 | 12 | namespace tIDE.Commands 13 | { 14 | internal class EditCutCommand: Command 15 | { 16 | private Layer m_layer; 17 | private Location m_selectionLocation; 18 | private TileSelection m_tileSelection; 19 | private TileBrush m_previousClipboardContent; 20 | private TileBrush m_oldTiles; 21 | 22 | public EditCutCommand(Layer layer, TileSelection tileSelection) 23 | { 24 | m_layer = layer; 25 | m_selectionLocation = tileSelection.Bounds.Location; 26 | m_tileSelection = tileSelection; 27 | m_oldTiles = null; 28 | 29 | m_description = "Cut selection from layer \"" + m_layer.Id + "\""; 30 | } 31 | 32 | public override void Do() 33 | { 34 | ClipBoardManager clipBoardManager = ClipBoardManager.Instance; 35 | m_previousClipboardContent = clipBoardManager.RetrieveTileBrush(); 36 | m_oldTiles = new TileBrush(m_layer, m_tileSelection); 37 | clipBoardManager.StoreTileBrush(m_oldTiles); 38 | m_tileSelection.EraseTiles(m_layer); 39 | } 40 | 41 | public override void Undo() 42 | { 43 | ClipBoardManager clipBoardManager = ClipBoardManager.Instance; 44 | clipBoardManager.StoreTileBrush(m_previousClipboardContent); 45 | m_oldTiles.ApplyTo(m_layer, m_selectionLocation, m_tileSelection); 46 | } 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Commands/EditDeleteCommand.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | using xTile.Dimensions; 7 | using xTile.Layers; 8 | using xTile.Tiles; 9 | 10 | using tIDE.TileBrushes; 11 | 12 | namespace tIDE.Commands 13 | { 14 | internal class EditDeleteCommand: Command 15 | { 16 | private Layer m_layer; 17 | private Location m_selectionLocation; 18 | private TileSelection m_tileSelection; 19 | private TileBrush m_tileBrush; 20 | 21 | public EditDeleteCommand(Layer layer, TileSelection tileSelection) 22 | { 23 | m_layer = layer; 24 | m_selectionLocation = tileSelection.Bounds.Location; 25 | m_tileSelection = tileSelection; 26 | m_tileBrush = null; 27 | 28 | m_description = "Erase selection from layer \"" + m_layer.Id + "\""; 29 | } 30 | 31 | public override void Do() 32 | { 33 | m_tileBrush = new TileBrush(m_layer, m_tileSelection); 34 | m_tileSelection.EraseTiles(m_layer); 35 | } 36 | 37 | public override void Undo() 38 | { 39 | m_tileBrush.ApplyTo(m_layer, m_selectionLocation, m_tileSelection); 40 | } 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Commands/EditPasteCommand.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | using xTile.Dimensions; 7 | using xTile.Layers; 8 | using xTile.Tiles; 9 | 10 | using tIDE.TileBrushes; 11 | 12 | namespace tIDE.Commands 13 | { 14 | internal class EditPasteCommand: Command 15 | { 16 | private Layer m_layer; 17 | private TileBrush m_tileBrush; 18 | private Location m_brushLocation; 19 | private TileSelection m_tileSelection; 20 | private bool m_fromClipboard; 21 | private TileBrush m_oldTiles; 22 | 23 | public EditPasteCommand(Layer layer, 24 | TileBrush tileBrush, Location brushLocation, 25 | TileSelection tileSelection, bool fromClipboard) 26 | { 27 | m_layer = layer; 28 | m_tileBrush = tileBrush; 29 | m_brushLocation = brushLocation; 30 | m_tileSelection = tileSelection; 31 | m_fromClipboard = fromClipboard; 32 | m_oldTiles = null; 33 | 34 | m_description = fromClipboard 35 | ? "Paste copied tiles" : "Paste tile brush \"" + tileBrush.Id + "\""; 36 | m_description += " at " + m_brushLocation + " in layer \"" + m_layer.Id + "\""; 37 | } 38 | 39 | public override void Do() 40 | { 41 | TileSelection tileSelection = new TileSelection(); 42 | m_tileBrush.GenerateSelection(m_brushLocation, tileSelection); 43 | m_oldTiles = new TileBrush(m_layer, tileSelection); 44 | 45 | m_tileBrush.ApplyTo(m_layer, m_brushLocation, m_tileSelection); 46 | if (!m_fromClipboard) 47 | m_tileSelection.Clear(); 48 | } 49 | 50 | public override void Undo() 51 | { 52 | m_oldTiles.ApplyTo(m_layer, m_brushLocation, m_tileSelection); 53 | 54 | m_tileSelection.Clear(); 55 | } 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Commands/EditTileBrushesCommand.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | using xTile; 7 | 8 | using tIDE.TileBrushes; 9 | 10 | namespace tIDE.Commands 11 | { 12 | internal class EditTileBrushesCommand: Command 13 | { 14 | private Map m_map; 15 | private TileBrushCollection m_currentTileBrushCollection; 16 | private TileBrushCollection m_newTileBrushCollection; 17 | private TileBrushCollection m_oldTileBrushCollection; 18 | 19 | public EditTileBrushesCommand( 20 | Map map, 21 | TileBrushCollection currentTileBrushCollection, 22 | TileBrush newTileBrush) 23 | { 24 | m_map = map; 25 | m_currentTileBrushCollection = currentTileBrushCollection; 26 | m_oldTileBrushCollection = new TileBrushCollection(currentTileBrushCollection); 27 | m_newTileBrushCollection = new TileBrushCollection(currentTileBrushCollection); 28 | m_newTileBrushCollection.TileBrushes.Add(newTileBrush); 29 | 30 | m_description = "Make new tile brush"; 31 | } 32 | 33 | public EditTileBrushesCommand( 34 | Map map, 35 | TileBrushCollection currentTileBrushCollection, 36 | TileBrushCollection newTileBrushCollection) 37 | { 38 | m_map = map; 39 | m_currentTileBrushCollection = currentTileBrushCollection; 40 | m_oldTileBrushCollection = new TileBrushCollection(currentTileBrushCollection); 41 | m_newTileBrushCollection = new TileBrushCollection(newTileBrushCollection); 42 | 43 | m_description = "Manage tile brushes"; 44 | } 45 | 46 | public override void Do() 47 | { 48 | m_currentTileBrushCollection.TileBrushes.Clear(); 49 | foreach (TileBrush tileBrush in m_newTileBrushCollection.TileBrushes) 50 | m_currentTileBrushCollection.TileBrushes.Add(new TileBrush(tileBrush)); 51 | 52 | m_currentTileBrushCollection.StoreInMap(m_map); 53 | } 54 | 55 | public override void Undo() 56 | { 57 | m_currentTileBrushCollection.TileBrushes.Clear(); 58 | foreach (TileBrush tileBrush in m_oldTileBrushCollection.TileBrushes) 59 | m_currentTileBrushCollection.TileBrushes.Add(new TileBrush(tileBrush)); 60 | 61 | m_currentTileBrushCollection.StoreInMap(m_map); 62 | } 63 | } 64 | } 65 | -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Commands/LayerDeleteCommand.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | using xTile; 7 | using xTile.Layers; 8 | 9 | using tIDE.Controls; 10 | 11 | namespace tIDE.Commands 12 | { 13 | internal class LayerDeleteCommand: Command 14 | { 15 | private Map m_map; 16 | private Layer m_layer; 17 | private int m_layerIndex; 18 | private MapTreeView m_mapTreeView; 19 | 20 | public LayerDeleteCommand(Map map, Layer layer, MapTreeView mapTreeView) 21 | { 22 | m_map = map; 23 | m_layer = layer; 24 | m_layerIndex = map.Layers.IndexOf(layer); 25 | m_mapTreeView = mapTreeView; 26 | m_description = "Delete layer \"" + layer.Id + "\""; 27 | } 28 | 29 | public override void Do() 30 | { 31 | m_map.RemoveLayer(m_layer); 32 | 33 | m_mapTreeView.UpdateTree(); 34 | } 35 | 36 | public override void Undo() 37 | { 38 | m_map.InsertLayer(m_layer, m_layerIndex); 39 | 40 | m_mapTreeView.UpdateTree(); 41 | m_mapTreeView.SelectedComponent = m_layer; 42 | } 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Commands/LayerNewCommand.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | using xTile; 7 | using xTile.Layers; 8 | 9 | namespace tIDE.Commands 10 | { 11 | internal class LayerNewCommand: Command 12 | { 13 | private Map m_map; 14 | private Layer m_newLayer; 15 | 16 | public LayerNewCommand(Map map, Layer newLayer) 17 | { 18 | m_map = map; 19 | m_newLayer = newLayer; 20 | m_description = "Add new layer \"" + newLayer.Id + "\""; 21 | } 22 | 23 | public override void Do() 24 | { 25 | m_map.AddLayer(m_newLayer); 26 | } 27 | 28 | public override void Undo() 29 | { 30 | m_map.RemoveLayer(m_newLayer); 31 | } 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Commands/LayerOrderCommand.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | using xTile.Layers; 7 | 8 | namespace tIDE.Commands 9 | { 10 | internal enum LayerOrderCommandType 11 | { 12 | BringForward, 13 | SendBackward 14 | } 15 | 16 | internal class LayerOrderCommand: Command 17 | { 18 | private Layer m_layer; 19 | private LayerOrderCommandType m_layerOrderCommandType; 20 | 21 | public LayerOrderCommand(Layer layer, LayerOrderCommandType layerOrderCommandType) 22 | { 23 | m_layer = layer; 24 | m_layerOrderCommandType = layerOrderCommandType; 25 | m_description = layerOrderCommandType == LayerOrderCommandType.BringForward 26 | ? "Bring layer \"" + layer.Id + "\" forward" 27 | : "Send layer \"" + layer.Id + "\" backward"; 28 | } 29 | 30 | public override void Do() 31 | { 32 | if (m_layerOrderCommandType == LayerOrderCommandType.BringForward) 33 | m_layer.Map.BringLayerForward(m_layer); 34 | else 35 | m_layer.Map.SendLayerBackward(m_layer); 36 | } 37 | 38 | public override void Undo() 39 | { 40 | if (m_layerOrderCommandType == LayerOrderCommandType.BringForward) 41 | m_layer.Map.SendLayerBackward(m_layer); 42 | else 43 | m_layer.Map.BringLayerForward(m_layer); 44 | } 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Commands/LayerVisibilityCommand.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | using xTile.Layers; 7 | using xTile.Dimensions; 8 | using xTile.ObjectModel; 9 | using xTile.Tiles; 10 | 11 | namespace tIDE.Commands 12 | { 13 | internal class LayerVisibilityCommand: Command 14 | { 15 | private Layer m_layer; 16 | private bool m_oldVisibility, m_newVisibility; 17 | 18 | public LayerVisibilityCommand(Layer layer, bool newVisibility) 19 | { 20 | m_layer = layer; 21 | m_oldVisibility = layer.Visible; 22 | m_newVisibility = newVisibility; 23 | m_description = "Make layer \"" + m_layer.Id + "\" " 24 | + (m_newVisibility ? "visible" : "invisibile"); 25 | } 26 | 27 | public override void Do() 28 | { 29 | m_layer.Visible = m_newVisibility; 30 | } 31 | 32 | public override void Undo() 33 | { 34 | m_layer.Visible = m_oldVisibility; 35 | } 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Commands/MapPropertiesCommand.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | using xTile; 7 | using xTile.ObjectModel; 8 | 9 | namespace tIDE.Commands 10 | { 11 | internal class MapPropertiesCommand: Command 12 | { 13 | private Map m_map; 14 | private string m_oldId, m_newId; 15 | private string m_oldDescription, m_newDescription; 16 | private PropertyCollection m_oldProperties, m_newProperties; 17 | 18 | public MapPropertiesCommand(Map map, string newId, string newDescription, 19 | PropertyCollection newProperties) 20 | { 21 | m_map = map; 22 | 23 | m_oldId = map.Id; 24 | m_oldDescription = map.Description; 25 | m_oldProperties = new PropertyCollection(map.Properties); 26 | 27 | m_newId = newId; 28 | m_newDescription = newDescription; 29 | m_newProperties = newProperties; 30 | 31 | m_description = "Change map properties"; 32 | } 33 | 34 | public override void Do() 35 | { 36 | m_map.Id = m_newId; 37 | m_map.Description = m_newDescription; 38 | m_map.Properties.Clear(); 39 | m_map.Properties.CopyFrom(m_newProperties); 40 | } 41 | 42 | public override void Undo() 43 | { 44 | m_map.Id = m_oldId; 45 | m_map.Description = m_oldDescription; 46 | m_map.Properties.Clear(); 47 | m_map.Properties.CopyFrom(m_oldProperties); 48 | } 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Commands/TileAnimationCommand.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | using xTile.Dimensions; 7 | using xTile.Layers; 8 | using xTile.Tiles; 9 | 10 | namespace tIDE.Commands 11 | { 12 | internal class TileAnimationCommand: Command 13 | { 14 | private Layer m_layer; 15 | private Location m_tileLocation; 16 | private Tile m_oldTile; 17 | private AnimatedTile m_animatedTile; 18 | 19 | public TileAnimationCommand(Layer layer, Location tileLocation, AnimatedTile animatedTile) 20 | { 21 | m_layer = layer; 22 | m_tileLocation = tileLocation; 23 | m_animatedTile = animatedTile; 24 | m_oldTile = null; 25 | m_description = "Set animated tile at " + tileLocation; 26 | } 27 | 28 | public override void Do() 29 | { 30 | m_oldTile = m_layer.Tiles[m_tileLocation]; 31 | m_layer.Tiles[m_tileLocation] = m_animatedTile; 32 | } 33 | 34 | public override void Undo() 35 | { 36 | m_layer.Tiles[m_tileLocation] = m_oldTile; 37 | } 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Commands/TilePropertiesCommand.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | using xTile.Tiles; 7 | using xTile.ObjectModel; 8 | 9 | namespace tIDE.Commands 10 | { 11 | internal class TilePropertiesCommand: Command 12 | { 13 | private Tile m_tile; 14 | private string m_oldId, m_newId; 15 | private BlendMode m_oldBlendMode, m_newBlendMode; 16 | private PropertyCollection m_oldProperties, m_newProperties; 17 | 18 | public TilePropertiesCommand(Tile tile, string newId, BlendMode newBlendMode, PropertyCollection newProperties) 19 | { 20 | m_tile = tile; 21 | 22 | m_oldId = tile.Id; 23 | m_oldBlendMode = tile.BlendMode; 24 | m_oldProperties = new PropertyCollection(tile.Properties); 25 | 26 | m_newId = newId; 27 | m_newBlendMode = newBlendMode; 28 | m_newProperties = newProperties; 29 | 30 | m_description = "Change tile properties"; 31 | } 32 | 33 | public override void Do() 34 | { 35 | m_tile.Id = m_newId; 36 | m_tile.BlendMode = m_newBlendMode; 37 | m_tile.Properties.Clear(); 38 | m_tile.Properties.CopyFrom(m_newProperties); 39 | } 40 | 41 | public override void Undo() 42 | { 43 | m_tile.Id = m_oldId; 44 | m_tile.BlendMode = m_oldBlendMode; 45 | m_tile.Properties.Clear(); 46 | m_tile.Properties.CopyFrom(m_oldProperties); 47 | } 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Commands/TileSheetAutoTilesCommand.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | using xTile.Dimensions; 7 | using xTile.ObjectModel; 8 | using xTile.Tiles; 9 | 10 | using tIDE.AutoTiles; 11 | 12 | namespace tIDE.Commands 13 | { 14 | internal class TileSheetAutoTilesCommand: Command 15 | { 16 | private TileSheet m_tileSheet; 17 | private List m_autoTiles; 18 | private Dictionary m_oldAutoTiles; 19 | 20 | public TileSheetAutoTilesCommand( 21 | TileSheet tileSheet, 22 | IEnumerable autoTiles) 23 | { 24 | m_tileSheet = tileSheet; 25 | m_autoTiles = new List(autoTiles); 26 | m_oldAutoTiles = new Dictionary(); 27 | 28 | m_description = "Update auto tile definitions for tile sheet \"" + tileSheet.Id + "\""; 29 | } 30 | 31 | public override void Do() 32 | { 33 | foreach (string propertyKey in m_tileSheet.Properties.Keys) 34 | { 35 | if (propertyKey.StartsWith("@AutoTile@")) 36 | m_oldAutoTiles[propertyKey] = m_tileSheet.Properties[propertyKey]; 37 | } 38 | foreach (string propertyKey in m_oldAutoTiles.Keys) 39 | m_tileSheet.Properties.Remove(propertyKey); 40 | 41 | foreach (AutoTile autoTile in m_autoTiles) 42 | { 43 | string propertyKey = "@AutoTile@" + autoTile.Id; 44 | StringBuilder propertyValue = new StringBuilder(); 45 | foreach (int setIndex in autoTile.IndexSet) 46 | { 47 | if (propertyValue.Length > 0) 48 | propertyValue.Append(','); 49 | propertyValue.Append(setIndex); 50 | } 51 | m_tileSheet.Properties[propertyKey] = propertyValue.ToString(); 52 | } 53 | 54 | AutoTileManager.Instance.Refresh(m_tileSheet); 55 | } 56 | 57 | public override void Undo() 58 | { 59 | foreach (AutoTile autoTile in m_autoTiles) 60 | { 61 | string propertyKey = "@AutoTile@" + autoTile.Id; 62 | m_tileSheet.Properties.Remove(propertyKey); 63 | } 64 | 65 | foreach (string propertyKey in m_oldAutoTiles.Keys) 66 | m_tileSheet.Properties[propertyKey] = m_oldAutoTiles[propertyKey]; 67 | 68 | AutoTileManager.Instance.Refresh(m_tileSheet); 69 | } 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Commands/TileSheetDeleteCommand.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | using xTile; 7 | using xTile.Tiles; 8 | 9 | using tIDE.Controls; 10 | 11 | namespace tIDE.Commands 12 | { 13 | internal class TileSheetDeleteCommand: Command 14 | { 15 | private Map m_map; 16 | private TileSheet m_tileSheet; 17 | private MapTreeView m_mapTreeView; 18 | 19 | public TileSheetDeleteCommand(Map map, TileSheet tileSheet, MapTreeView mapTreeView) 20 | { 21 | m_map = map; 22 | m_tileSheet = tileSheet; 23 | m_mapTreeView = mapTreeView; 24 | m_description = "Delete tile sheet \"" + tileSheet.Id + "\""; 25 | } 26 | 27 | public override void Do() 28 | { 29 | m_map.RemoveTileSheet(m_tileSheet); 30 | m_mapTreeView.UpdateTree(); 31 | } 32 | 33 | public override void Undo() 34 | { 35 | TileImageCache.Instance.Refresh(m_tileSheet); 36 | m_map.AddTileSheet(m_tileSheet); 37 | m_mapTreeView.UpdateTree(); 38 | m_mapTreeView.SelectedComponent = m_tileSheet; 39 | } 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Commands/TileSheetNewCommand.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | using xTile; 7 | using xTile.Tiles; 8 | 9 | using tIDE.Controls; 10 | 11 | namespace tIDE.Commands 12 | { 13 | internal class TileSheetNewCommand: Command 14 | { 15 | private Map m_map; 16 | private TileSheet m_newTileSheet; 17 | private MapTreeView m_mapTreeView; 18 | 19 | public TileSheetNewCommand(Map map, TileSheet newTileSheet, MapTreeView mapTreeView) 20 | { 21 | m_map = map; 22 | m_newTileSheet = newTileSheet; 23 | m_mapTreeView = mapTreeView; 24 | m_description = "Add new tile sheet \"" + newTileSheet.Id + "\""; 25 | } 26 | 27 | public override void Do() 28 | { 29 | TileImageCache.Instance.Refresh(m_newTileSheet); 30 | m_map.AddTileSheet(m_newTileSheet); 31 | if (m_mapTreeView != null) 32 | { 33 | m_mapTreeView.UpdateTree(); 34 | m_mapTreeView.SelectedComponent = m_newTileSheet; 35 | } 36 | } 37 | 38 | public override void Undo() 39 | { 40 | m_map.RemoveTileSheet(m_newTileSheet); 41 | 42 | if (m_mapTreeView != null) 43 | m_mapTreeView.UpdateTree(); 44 | } 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Commands/ToolsEraseTileCommand.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | using xTile.Dimensions; 7 | using xTile.Layers; 8 | using xTile.Tiles; 9 | 10 | namespace tIDE.Commands 11 | { 12 | internal class ToolsEraseTileCommand: Command 13 | { 14 | private Layer m_layer; 15 | private Location m_tileLocation; 16 | private Tile m_oldTile; 17 | 18 | public ToolsEraseTileCommand(Layer layer, Location tileLocation) 19 | { 20 | m_layer = layer; 21 | m_tileLocation = tileLocation; 22 | 23 | m_description = "Erase tile at " + m_tileLocation 24 | + " in layer \"" + m_layer.Id + "\""; 25 | } 26 | 27 | public override void Do() 28 | { 29 | m_oldTile = m_layer.Tiles[m_tileLocation]; 30 | m_layer.Tiles[m_tileLocation] = null; 31 | } 32 | 33 | public override void Undo() 34 | { 35 | m_layer.Tiles[m_tileLocation] = m_oldTile; 36 | } 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Commands/ToolsPlaceTileCommand.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | using xTile.Dimensions; 7 | using xTile.Layers; 8 | using xTile.Tiles; 9 | 10 | using tIDE.AutoTiles; 11 | 12 | namespace tIDE.Commands 13 | { 14 | internal class ToolsPlaceTileCommand: Command 15 | { 16 | private Layer m_layer; 17 | private Dictionary m_newAssignments, m_oldAssignments; 18 | 19 | public ToolsPlaceTileCommand(Layer layer, Tile newTile, Location tileLocation) 20 | { 21 | m_layer = layer; 22 | 23 | if (newTile is StaticTile) 24 | { 25 | m_newAssignments = AutoTileManager.Instance.DetermineTileAssignments( 26 | m_layer, tileLocation, (StaticTile) newTile); 27 | } 28 | else 29 | { 30 | m_newAssignments = new Dictionary(); 31 | m_newAssignments[tileLocation] = newTile; 32 | } 33 | 34 | m_oldAssignments = new Dictionary(); 35 | foreach (Location assignedLocation in m_newAssignments.Keys) 36 | m_oldAssignments[assignedLocation] = layer.Tiles[assignedLocation]; 37 | 38 | m_description = "Place tile \"" + newTile.TileSheet.Id + ":" + newTile.TileIndex 39 | + "\" at " + tileLocation + " in layer \"" + m_layer.Id + "\""; 40 | } 41 | 42 | public override void Do() 43 | { 44 | foreach (Location assignedLocation in m_newAssignments.Keys) 45 | m_layer.Tiles[assignedLocation] = m_newAssignments[assignedLocation]; 46 | } 47 | 48 | public override void Undo() 49 | { 50 | foreach (Location assignedLocation in m_oldAssignments.Keys) 51 | m_layer.Tiles[assignedLocation] = m_oldAssignments[assignedLocation]; 52 | } 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Commands/ToolsSelectCommand.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | using xTile.Layers; 7 | 8 | namespace tIDE.Commands 9 | { 10 | internal class ToolsSelectCommand: Command 11 | { 12 | private Layer m_layer; 13 | private TileSelection m_currentTileSelection; 14 | private TileSelection m_oldTileSelection; 15 | private TileSelection m_newTileSelection; 16 | private bool m_replace; 17 | 18 | public ToolsSelectCommand(Layer layer, 19 | TileSelection currentTileSelection, TileSelection newTileSelection, 20 | bool replace) 21 | { 22 | m_layer = layer; 23 | m_currentTileSelection = currentTileSelection; 24 | m_oldTileSelection = new TileSelection(currentTileSelection); 25 | m_newTileSelection = new TileSelection(newTileSelection); 26 | m_replace = replace; 27 | 28 | if (m_replace) 29 | m_description = newTileSelection.IsEmpty() ? "Clear selection" : "Select tiles"; 30 | else 31 | m_description = "Select more tiles"; 32 | } 33 | 34 | public override void Do() 35 | { 36 | if (m_replace) 37 | m_currentTileSelection.Clear(); 38 | m_currentTileSelection.Merge(m_newTileSelection); 39 | } 40 | 41 | public override void Undo() 42 | { 43 | m_currentTileSelection.Clear(); 44 | m_currentTileSelection.Merge(m_oldTileSelection); 45 | } 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Controls/CustomListView.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Windows.Forms; 6 | using System.Drawing; 7 | 8 | namespace tIDE.Controls 9 | { 10 | [ToolboxBitmapAttribute(typeof(ListView))] 11 | class CustomListView : ListView 12 | { 13 | public CustomListView() 14 | { 15 | DoubleBuffered = true; 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Controls/CustomMessageBox.Designer.cs: -------------------------------------------------------------------------------- 1 | namespace tIDE.Controls 2 | { 3 | partial class CustomMessageBox 4 | { 5 | /// 6 | /// Required designer variable. 7 | /// 8 | private System.ComponentModel.IContainer components = null; 9 | 10 | /// 11 | /// Clean up any resources being used. 12 | /// 13 | /// true if managed resources should be disposed; otherwise, false. 14 | protected override void Dispose(bool disposing) 15 | { 16 | if (disposing && (components != null)) 17 | { 18 | components.Dispose(); 19 | } 20 | base.Dispose(disposing); 21 | } 22 | 23 | #region Component Designer generated code 24 | 25 | /// 26 | /// Required method for Designer support - do not modify 27 | /// the contents of this method with the code editor. 28 | /// 29 | private void InitializeComponent() 30 | { 31 | components = new System.ComponentModel.Container(); 32 | } 33 | 34 | #endregion 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Controls/CustomPanel.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Windows.Forms; 6 | using System.Drawing; 7 | 8 | namespace tIDE.Controls 9 | { 10 | [ToolboxBitmapAttribute(typeof(Panel))] 11 | class CustomPanel : Panel 12 | { 13 | public CustomPanel() 14 | { 15 | DoubleBuffered = true; 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Controls/CustomPropertyEventArgs.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | using xTile.ObjectModel; 7 | 8 | namespace tIDE.Controls 9 | { 10 | public class CustomPropertyEventArgs: EventArgs 11 | { 12 | private string m_newPropertyName; 13 | private string m_oldPropertyName; 14 | private PropertyValue m_oldPropertyValue; 15 | private PropertyValue m_newPropertyValue; 16 | 17 | public CustomPropertyEventArgs( 18 | string newPropertyName, string oldPropertyName, 19 | PropertyValue oldPropertyValue, PropertyValue newPropertyValue) 20 | { 21 | m_newPropertyName = newPropertyName; 22 | m_oldPropertyName = oldPropertyName; 23 | m_oldPropertyValue = oldPropertyValue; 24 | m_newPropertyValue = newPropertyValue; 25 | } 26 | 27 | public string NewPropertyName { get { return m_newPropertyName; } } 28 | 29 | public string OldPropertyName { get { return m_oldPropertyName; } } 30 | 31 | public PropertyValue OldPropertyValue { get { return m_oldPropertyValue; } } 32 | 33 | public PropertyValue NewPropertyValue { get { return m_newPropertyValue; } } 34 | } 35 | 36 | public delegate void CustomPropertyEventHandler(object sender, 37 | CustomPropertyEventArgs customPropertyEventArgs); 38 | } 39 | -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Controls/MapPanelEventArgs.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | using xTile; 7 | using xTile.Dimensions; 8 | using xTile.Tiles; 9 | 10 | namespace tIDE.Controls 11 | { 12 | public class MapPanelEventArgs: EventArgs 13 | { 14 | private Tile m_tile; 15 | private Location m_location; 16 | 17 | public MapPanelEventArgs(Tile tile, Location location) 18 | { 19 | m_tile = tile; 20 | m_location = location; 21 | } 22 | 23 | public Tile Tile 24 | { 25 | get { return m_tile; } 26 | } 27 | 28 | public Location Location 29 | { 30 | get { return m_location; } 31 | } 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Controls/TabStyle.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * This code is provided under the Code Project Open Licence (CPOL) 3 | * See http://www.codeproject.com/info/cpol10.aspx for details 4 | */ 5 | 6 | using System.Windows.Forms; 7 | 8 | namespace tIDE.Controls 9 | { 10 | public enum TabStyle{ 11 | None = 0, 12 | Default = 1, 13 | VisualStudio = 2, 14 | Rounded = 3, 15 | Angled = 4, 16 | Chrome = 5, 17 | IE8 = 6, 18 | VS2010 = 7 19 | } 20 | 21 | } -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Controls/TabStyleProviders/TabStyleAngledProvider.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * This code is provided under the Code Project Open Licence (CPOL) 3 | * See http://www.codeproject.com/info/cpol10.aspx for details 4 | */ 5 | 6 | using System; 7 | using System.Drawing; 8 | using System.Drawing.Drawing2D; 9 | using System.Windows.Forms; 10 | 11 | namespace tIDE.Controls.TabStyleProviders 12 | { 13 | [System.ComponentModel.ToolboxItem(false)] 14 | public class TabStyleAngledProvider : TabStyleProvider 15 | { 16 | public TabStyleAngledProvider(CustomTabControl tabControl) : base(tabControl){ 17 | this._ImageAlign = ContentAlignment.MiddleRight; 18 | this._Overlap = 7; 19 | this._Radius = 10; 20 | 21 | // Must set after the _Radius as this is used in the calculations of the actual padding 22 | this.Padding = new Point(10, 3); 23 | 24 | } 25 | 26 | public override void AddTabBorder(System.Drawing.Drawing2D.GraphicsPath path, System.Drawing.Rectangle tabBounds){ 27 | switch (this._TabControl.Alignment) { 28 | case TabAlignment.Top: 29 | path.AddLine(tabBounds.X, tabBounds.Bottom, tabBounds.X + this._Radius - 2, tabBounds.Y + 2); 30 | path.AddLine(tabBounds.X + this._Radius, tabBounds.Y, tabBounds.Right - this._Radius, tabBounds.Y); 31 | path.AddLine(tabBounds.Right - this._Radius + 2, tabBounds.Y + 2, tabBounds.Right, tabBounds.Bottom); 32 | break; 33 | case TabAlignment.Bottom: 34 | path.AddLine(tabBounds.Right, tabBounds.Y, tabBounds.Right - this._Radius + 2, tabBounds.Bottom - 2); 35 | path.AddLine(tabBounds.Right - this._Radius, tabBounds.Bottom, tabBounds.X + this._Radius, tabBounds.Bottom); 36 | path.AddLine(tabBounds.X + this._Radius - 2, tabBounds.Bottom - 2, tabBounds.X, tabBounds.Y); 37 | break; 38 | case TabAlignment.Left: 39 | path.AddLine(tabBounds.Right, tabBounds.Bottom, tabBounds.X + 2, tabBounds.Bottom - this._Radius + 2); 40 | path.AddLine(tabBounds.X, tabBounds.Bottom - this._Radius, tabBounds.X, tabBounds.Y + this._Radius); 41 | path.AddLine(tabBounds.X + 2, tabBounds.Y + this._Radius - 2, tabBounds.Right, tabBounds.Y); 42 | break; 43 | case TabAlignment.Right: 44 | path.AddLine(tabBounds.X, tabBounds.Y, tabBounds.Right - 2, tabBounds.Y + this._Radius - 2); 45 | path.AddLine(tabBounds.Right, tabBounds.Y + this._Radius, tabBounds.Right, tabBounds.Bottom - this._Radius); 46 | path.AddLine(tabBounds.Right - 2, tabBounds.Bottom - this._Radius + 2, tabBounds.X, tabBounds.Bottom); 47 | break; 48 | } 49 | } 50 | 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Controls/TabStyleProviders/TabStyleNoneProvider.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * This code is provided under the Code Project Open Licence (CPOL) 3 | * See http://www.codeproject.com/info/cpol10.aspx for details 4 | */ 5 | 6 | namespace tIDE.Controls.TabStyleProviders 7 | { 8 | using System; 9 | using System.Drawing; 10 | using System.Drawing.Drawing2D; 11 | using System.Windows.Forms; 12 | 13 | [System.ComponentModel.ToolboxItem(false)] 14 | public class TabStyleNoneProvider : TabStyleProvider 15 | { 16 | public TabStyleNoneProvider(CustomTabControl tabControl) : base(tabControl){ 17 | } 18 | 19 | public override void AddTabBorder(System.Drawing.Drawing2D.GraphicsPath path, System.Drawing.Rectangle tabBounds){ 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Controls/ThemedColors.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * This code is provided under the Code Project Open Licence (CPOL) 3 | * See http://www.codeproject.com/info/cpol10.aspx for details 4 | */ 5 | 6 | using System.Drawing; 7 | using System.Windows.Forms; 8 | using System.Windows.Forms.VisualStyles; 9 | 10 | namespace tIDE.Controls 11 | { 12 | 13 | internal sealed class ThemedColors 14 | { 15 | 16 | #region " Variables and Constants " 17 | 18 | private const string NormalColor = "NormalColor"; 19 | private const string HomeStead = "HomeStead"; 20 | private const string Metallic = "Metallic"; 21 | private const string NoTheme = "NoTheme"; 22 | 23 | private static Color[] _toolBorder; 24 | #endregion 25 | 26 | #region " Properties " 27 | 28 | [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] 29 | public static ColorScheme CurrentThemeIndex { 30 | get { return ThemedColors.GetCurrentThemeIndex(); } 31 | } 32 | 33 | [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] 34 | public static Color ToolBorder { 35 | get { return ThemedColors._toolBorder[(int)ThemedColors.CurrentThemeIndex]; } 36 | } 37 | 38 | #endregion 39 | 40 | #region " Constructors " 41 | 42 | [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1810:InitializeReferenceTypeStaticFieldsInline")] 43 | static ThemedColors() { 44 | ThemedColors._toolBorder = new Color[] {Color.FromArgb(127, 157, 185), Color.FromArgb(164, 185, 127), Color.FromArgb(165, 172, 178), Color.FromArgb(132, 130, 132)}; 45 | } 46 | 47 | private ThemedColors(){} 48 | 49 | #endregion 50 | 51 | private static ColorScheme GetCurrentThemeIndex() 52 | { 53 | ColorScheme theme = ColorScheme.NoTheme; 54 | 55 | if (VisualStyleInformation.IsSupportedByOS && VisualStyleInformation.IsEnabledByUser && Application.RenderWithVisualStyles) 56 | { 57 | 58 | 59 | switch (VisualStyleInformation.ColorScheme) { 60 | case NormalColor: 61 | theme = ColorScheme.NormalColor; 62 | break; 63 | case HomeStead: 64 | theme = ColorScheme.HomeStead; 65 | break; 66 | case Metallic: 67 | theme = ColorScheme.Metallic; 68 | break; 69 | default: 70 | theme = ColorScheme.NoTheme; 71 | break; 72 | } 73 | } 74 | 75 | return theme; 76 | } 77 | 78 | public enum ColorScheme 79 | { 80 | NormalColor = 0, 81 | HomeStead = 1, 82 | Metallic = 2, 83 | NoTheme = 3 84 | } 85 | 86 | } 87 | 88 | } 89 | -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Controls/TilePickerEventArgs.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | using xTile; 7 | using xTile.Tiles; 8 | using tIDE.TileBrushes; 9 | 10 | namespace tIDE.Controls 11 | { 12 | public class TilePickerEventArgs: EventArgs 13 | { 14 | private TileSheet m_tileSheet; 15 | private int m_tileIndex; 16 | private TileBrush m_tileBrush; 17 | 18 | public TilePickerEventArgs(TileSheet tileSheet, int tileIndex) 19 | { 20 | m_tileSheet = tileSheet; 21 | m_tileIndex = tileIndex; 22 | m_tileBrush = null; 23 | } 24 | 25 | public TilePickerEventArgs(TileBrush tileBrush) 26 | { 27 | m_tileSheet = null; 28 | m_tileIndex = -1; 29 | m_tileBrush = tileBrush; 30 | } 31 | 32 | public TileSheet TileSheet { get { return m_tileSheet; } } 33 | 34 | public int TileIndex { get { return m_tileIndex; } } 35 | 36 | public TileBrush TileBrush { get { return m_tileBrush; } } 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Dialogs/CustomPropertiesDialog.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel; 4 | using System.Data; 5 | using System.Drawing; 6 | using System.Linq; 7 | using System.Text; 8 | using System.Windows.Forms; 9 | 10 | using xTile.Tiles; 11 | 12 | using tIDE.Commands; 13 | 14 | namespace tIDE.Dialogs 15 | { 16 | public partial class CustomPropertiesDialog : Form 17 | { 18 | private xTile.ObjectModel.Component m_component; 19 | 20 | public CustomPropertiesDialog(string dialogTitle, xTile.ObjectModel.Component component) 21 | { 22 | InitializeComponent(); 23 | 24 | this.Text = dialogTitle; 25 | m_component = component; 26 | } 27 | 28 | private void OnDialogLoad(object sender, EventArgs eventArgs) 29 | { 30 | m_customPropertyGrid.LoadProperties(m_component); 31 | } 32 | 33 | private void OnPropertyChangedOrDeleted(object sender, 34 | tIDE.Controls.CustomPropertyEventArgs customPropertyEventArgs) 35 | { 36 | m_buttonOk.Enabled = m_buttonApply.Enabled = true; 37 | m_buttonCancel.Visible = true; 38 | m_buttonClose.Visible = false; 39 | } 40 | 41 | private void OnDialogOk(object sender, EventArgs eventArgs) 42 | { 43 | OnDialogApply(sender, eventArgs); 44 | DialogResult = DialogResult.OK; 45 | Close(); 46 | } 47 | 48 | private void OnDialogApply(object sender, EventArgs eventArgs) 49 | { 50 | Command command = new CustomPropertiesCommand(m_component, m_customPropertyGrid.NewProperties); 51 | CommandHistory.Instance.Do(command); 52 | m_buttonOk.Enabled = m_buttonApply.Enabled = false; 53 | m_buttonCancel.Visible = false; 54 | m_buttonClose.Visible = true; 55 | m_buttonClose.DialogResult = DialogResult.OK; 56 | } 57 | 58 | private void OnDialogClose(object sender, EventArgs eventArgs) 59 | { 60 | Close(); 61 | } 62 | 63 | } 64 | } 65 | -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Dialogs/FormatCompatibilityDialog.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel; 4 | using System.Data; 5 | using System.Drawing; 6 | using System.Linq; 7 | using System.Text; 8 | using System.Windows.Forms; 9 | 10 | using xTile.Format; 11 | 12 | namespace tIDE.Dialogs 13 | { 14 | public partial class FormatCompatibilityDialog : Form 15 | { 16 | public FormatCompatibilityDialog(CompatibilityReport compatibilityReport) 17 | { 18 | InitializeComponent(); 19 | 20 | m_compatibilityReport = compatibilityReport; 21 | } 22 | 23 | private CompatibilityReport m_compatibilityReport; 24 | 25 | private void OnDialogLoad(object sender, EventArgs eventArgs) 26 | { 27 | CompatibilityLevel compatibilityLevel = m_compatibilityReport.CompatibilityLevel; 28 | m_overallCompatibilityValue.Text = compatibilityLevel.ToString(); 29 | 30 | foreach (CompatibilityNote compatibilityNote in m_compatibilityReport.CompatibilityNotes) 31 | { 32 | Image image = null; 33 | switch (compatibilityNote.CompatibilityLevel) 34 | { 35 | case CompatibilityLevel.Full: image = Properties.Resources.MapCompatibilityFull; break; 36 | case CompatibilityLevel.Partial: image = Properties.Resources.MapCompatibilityPartial; break; 37 | case CompatibilityLevel.None: image = Properties.Resources.MapCompatibilityNone; break; 38 | } 39 | m_notesDataGridView.Rows.Add( 40 | new object[] { image, compatibilityNote.CompatibilityLevel, compatibilityNote.Remarks }); 41 | } 42 | m_notesDataGridView.ClearSelection(); 43 | 44 | m_okButton.Enabled = compatibilityLevel != CompatibilityLevel.None; 45 | } 46 | 47 | private void OnNoteSelectionChanged(object sender, EventArgs eventArgs) 48 | { 49 | m_notesDataGridView.SelectionChanged -= OnNoteSelectionChanged; 50 | m_notesDataGridView.ClearSelection(); 51 | m_notesDataGridView.SelectionChanged += OnNoteSelectionChanged; 52 | } 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Dialogs/IconInfo.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | namespace tIDE.Dialogs 7 | { 8 | internal struct IconInfo 9 | { 10 | public bool Icon; 11 | public int HotSpotX; 12 | public int HotSpotY; 13 | public IntPtr BitMaskHandle; 14 | public IntPtr PixelData; 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Dialogs/LayerOffsetDialog.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel; 4 | using System.Data; 5 | using System.Drawing; 6 | using System.Linq; 7 | using System.Text; 8 | using System.Windows.Forms; 9 | using xTile.Layers; 10 | using tIDE.Commands; 11 | using xTile.Dimensions; 12 | 13 | namespace tIDE.Dialogs 14 | { 15 | public partial class LayerOffsetDialog : Form 16 | { 17 | public LayerOffsetDialog(Layer layer) 18 | { 19 | InitializeComponent(); 20 | 21 | m_layer = layer; 22 | } 23 | 24 | private void OnDialogLoad(object sender, EventArgs eventArgs) 25 | { 26 | m_lblLayerId.Text = m_layer.Id; 27 | m_lblLayerSize.Text = m_layer.LayerSize.ToString(); 28 | 29 | int horizontalExtent = m_layer.LayerWidth - 1; 30 | m_nudOffsetHorizontal.Minimum = -horizontalExtent; 31 | m_nudOffsetHorizontal.Maximum = horizontalExtent; 32 | 33 | int verticalExtent = m_layer.LayerHeight - 1; 34 | m_nudOffsetVertical.Minimum = -verticalExtent; 35 | m_nudOffsetVertical.Maximum = verticalExtent; 36 | } 37 | 38 | private void OnParametersChanged(object sender, EventArgs eventArgs) 39 | { 40 | m_btnOk.Enabled = m_nudOffsetHorizontal.Value != 0 || m_nudOffsetVertical.Value != 0; 41 | } 42 | 43 | private void OnDialogOk(object sender, EventArgs eventArgs) 44 | { 45 | Command command = new LayerOffsetCommand(m_layer, 46 | new Location((int)m_nudOffsetHorizontal.Value, (int)m_nudOffsetVertical.Value), 47 | m_chkWrapHorizontal.Checked, m_chkWrapVertical.Checked); 48 | CommandHistory.Instance.Do(command); 49 | } 50 | 51 | private Layer m_layer; 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Dialogs/PluginInfoDialog.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel; 4 | using System.Data; 5 | using System.Drawing; 6 | using System.Linq; 7 | using System.Text; 8 | using System.Windows.Forms; 9 | 10 | using tIDE.Plugin; 11 | 12 | namespace tIDE.Dialogs 13 | { 14 | public partial class PluginInfoDialog : Form 15 | { 16 | private IPlugin m_plugin; 17 | private double m_fadeDirection; 18 | 19 | private void OnLoadDialog(object sender, EventArgs eventArgs) 20 | { 21 | m_labelName.Text = m_plugin.Name; 22 | m_labelVersion.Text = "Version " + m_plugin.Version; 23 | m_labelAuthor.Text = m_plugin.Author; 24 | m_textBoxDescription.Text = m_plugin.Description; 25 | } 26 | 27 | private void OnDialogOk(object sender, EventArgs eventArgs) 28 | { 29 | m_fadeDirection = -0.05; 30 | m_timer.Enabled = true; 31 | } 32 | 33 | private void OnPaint(object sender, PaintEventArgs paintEventArgse) 34 | { 35 | Graphics graphics = paintEventArgse.Graphics; 36 | graphics.DrawImage(m_plugin.LargeIcon, 14, 14); 37 | } 38 | 39 | private void OnTimer(object sender, EventArgs eventArgs) 40 | { 41 | Opacity += m_fadeDirection; 42 | if (Opacity >= 1.0) 43 | m_timer.Enabled = false; 44 | else if (Opacity <= 0.0) 45 | Close(); 46 | } 47 | 48 | public PluginInfoDialog(IPlugin plugin) 49 | { 50 | InitializeComponent(); 51 | 52 | m_plugin = plugin; 53 | m_fadeDirection = 0.05; 54 | } 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Dialogs/TilePropertiesDialog.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel; 4 | using System.Data; 5 | using System.Drawing; 6 | using System.Linq; 7 | using System.Text; 8 | using System.Windows.Forms; 9 | 10 | using xTile.Tiles; 11 | 12 | using tIDE.Commands; 13 | using tIDE.Controls; 14 | 15 | namespace tIDE.Dialogs 16 | { 17 | public partial class TilePropertiesDialog : Form 18 | { 19 | private Tile m_tile; 20 | 21 | private void MarkAsModified() 22 | { 23 | m_buttonApply.Enabled = m_buttonOk.Enabled = m_buttonCancel.Visible = true; 24 | m_buttonClose.Visible = false; 25 | } 26 | 27 | private void MarkAsApplied() 28 | { 29 | m_buttonApply.Enabled = m_buttonOk.Enabled = m_buttonCancel.Visible = false; 30 | m_buttonClose.Visible = true; 31 | } 32 | 33 | private void OnFieldChanged(object sender, EventArgs eventArgs) 34 | { 35 | MarkAsModified(); 36 | } 37 | 38 | private void OnPropertyChangedOrDeleted(object sender, 39 | CustomPropertyEventArgs customPropertyEventArgs) 40 | { 41 | MarkAsModified(); 42 | } 43 | 44 | private void OnDialogOk(object sender, EventArgs eventArgs) 45 | { 46 | OnDialogApply(this, eventArgs); 47 | } 48 | 49 | private void OnDialogApply(object sender, EventArgs e) 50 | { 51 | Command command = new TilePropertiesCommand(m_tile, m_textBoxId.Text, 52 | (BlendMode) m_comboBoxBlendMode.SelectedIndex, 53 | m_customPropertyGrid.NewProperties); 54 | CommandHistory.Instance.Do(command); 55 | 56 | MarkAsApplied(); 57 | } 58 | 59 | private void OnDialogLoad(object sender, EventArgs eventArgs) 60 | { 61 | m_textBoxId.Text = m_tile.Id; 62 | m_comboBoxBlendMode.SelectedIndex = (int)m_tile.BlendMode; 63 | m_textBoxTileSheet.Text = m_tile.TileSheet.Id; 64 | m_textBoxTileIndex.Text = m_tile.TileIndex.ToString(); 65 | m_customPropertyGrid.LoadProperties(m_tile); 66 | 67 | MarkAsApplied(); 68 | } 69 | 70 | public TilePropertiesDialog(Tile tile) 71 | { 72 | InitializeComponent(); 73 | 74 | m_tile = tile; 75 | } 76 | } 77 | } 78 | -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Dialogs/TiledFormatOptionsDialog.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel; 4 | using System.Data; 5 | using System.Drawing; 6 | using System.Linq; 7 | using System.Text; 8 | using System.Windows.Forms; 9 | 10 | using tIDE.Format; 11 | 12 | namespace tIDE.Dialogs 13 | { 14 | public partial class TiledFormatOptionsDialog : Form 15 | { 16 | public TiledFormatOptionsDialog() 17 | { 18 | InitializeComponent(); 19 | } 20 | 21 | public TmxEncoding TmxEncoding 22 | { 23 | get 24 | { 25 | return (TmxEncoding)m_cmbDataFormat.SelectedIndex; 26 | } 27 | } 28 | 29 | private void OnEncodingSelected(object sender, EventArgs eventArgs) 30 | { 31 | m_btnOk.Enabled = m_cmbDataFormat.SelectedIndex >= 0; 32 | } 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Installer/CustomInstaller.Designer.cs: -------------------------------------------------------------------------------- 1 | namespace tIDE.Installer 2 | { 3 | partial class CustomInstaller 4 | { 5 | /// 6 | /// Required designer variable. 7 | /// 8 | private System.ComponentModel.IContainer components = null; 9 | 10 | /// 11 | /// Clean up any resources being used. 12 | /// 13 | /// true if managed resources should be disposed; otherwise, false. 14 | protected override void Dispose(bool disposing) 15 | { 16 | if (disposing && (components != null)) 17 | { 18 | components.Dispose(); 19 | } 20 | base.Dispose(disposing); 21 | } 22 | 23 | #region Component Designer generated code 24 | 25 | /// 26 | /// Required method for Designer support - do not modify 27 | /// the contents of this method with the code editor. 28 | /// 29 | private void InitializeComponent() 30 | { 31 | components = new System.ComponentModel.Container(); 32 | } 33 | 34 | #endregion 35 | } 36 | } -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Installer/CustomInstaller.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections; 3 | using System.Collections.Generic; 4 | using System.ComponentModel; 5 | using System.Configuration.Install; 6 | using System.Linq; 7 | using System.IO; 8 | using System.Reflection; 9 | using System.Diagnostics; 10 | using System.Windows.Forms; 11 | 12 | namespace tIDE.Installer 13 | { 14 | [RunInstaller(true)] 15 | public partial class CustomInstaller : System.Configuration.Install.Installer 16 | { 17 | public CustomInstaller() 18 | : base() 19 | { 20 | } 21 | 22 | public override void Commit(IDictionary savedState) 23 | { 24 | base.Commit(savedState); 25 | 26 | RunApplicationDialog runApplicationDialog = new RunApplicationDialog(); 27 | if (runApplicationDialog.ShowDialog() == DialogResult.No) 28 | return; 29 | 30 | try 31 | { 32 | string applicationPath = Assembly.GetExecutingAssembly().Location; 33 | string applicationDirectory = Path.GetDirectoryName(applicationPath); 34 | 35 | Directory.SetCurrentDirectory(applicationDirectory); 36 | Process.Start(applicationPath); 37 | } 38 | catch (Exception exception) 39 | { 40 | MessageBox.Show("Unable to run application. Reason:" + exception.Message, 41 | "tIDE Tile Map Editor", MessageBoxButtons.OK, MessageBoxIcon.Error); 42 | } 43 | } 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Installer/RunApplicationDialog.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel; 4 | using System.Data; 5 | using System.Drawing; 6 | using System.Linq; 7 | using System.Text; 8 | using System.Windows.Forms; 9 | using System.Runtime.InteropServices; 10 | 11 | namespace tIDE.Installer 12 | { 13 | public partial class RunApplicationDialog : Form 14 | { 15 | [DllImport("user32.dll")] 16 | public static extern bool SetForegroundWindow(IntPtr hWnd); 17 | 18 | public RunApplicationDialog() 19 | { 20 | InitializeComponent(); 21 | } 22 | 23 | private void OnDialogLoad(object sender, EventArgs eventArgs) 24 | { 25 | SetForegroundWindow(this.Handle); 26 | } 27 | 28 | private void OnDialogDeactivate(object sender, EventArgs eventArgs) 29 | { 30 | SetForegroundWindow(this.Handle); 31 | } 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Localisation/Language.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Globalization; 6 | using System.Threading; 7 | using System.Collections.ObjectModel; 8 | 9 | namespace tIDE.Localisation 10 | { 11 | class Language 12 | { 13 | public readonly static Language English = new Language("English", "en-GB"); 14 | public readonly static Language French = new Language("Français", "fr-FR"); 15 | public readonly static Language Spanish = new Language("Español", "es-ES"); 16 | public readonly static Language Italian = new Language("Italiano", "it-IT"); 17 | 18 | public static Language FromCode(string code) 19 | { 20 | foreach (Language language in s_list) 21 | if (language.Code == code) 22 | return language; 23 | 24 | return English; 25 | } 26 | 27 | public static Language FromName(string name) 28 | { 29 | foreach (Language language in s_list) 30 | if (language.Name == name) 31 | return language; 32 | 33 | return English; 34 | } 35 | 36 | public static ReadOnlyCollection List 37 | { 38 | get { return s_list.AsReadOnly(); } 39 | } 40 | 41 | public override string ToString() 42 | { 43 | return m_name + " (" + m_code + ")"; 44 | } 45 | 46 | public string Name 47 | { 48 | get { return m_name; } 49 | } 50 | 51 | public string Code 52 | { 53 | get { return m_code; } 54 | } 55 | 56 | static Language() 57 | { 58 | s_list = new List(); 59 | s_list.Add(English); 60 | s_list.Add(French); 61 | s_list.Add(Spanish); 62 | s_list.Add(Italian); 63 | } 64 | 65 | private Language(string name, string code) 66 | { 67 | m_name = name; 68 | m_code = code; 69 | } 70 | 71 | private static List s_list; 72 | 73 | private string m_name; 74 | private string m_code; 75 | } 76 | } 77 | -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Plugin/Bridge/CommandBridge.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | using tIDE.Plugin.Interface; 7 | 8 | using tIDE.Commands; 9 | 10 | namespace tIDE.Plugin.Bridge 11 | { 12 | internal class CommandBridge: Command 13 | { 14 | private ICommand m_pluginCommand; 15 | 16 | public CommandBridge(ICommand pluginCommand) 17 | { 18 | m_pluginCommand = pluginCommand; 19 | } 20 | 21 | public override void Do() 22 | { 23 | m_pluginCommand.Do(); 24 | } 25 | 26 | public override void Undo() 27 | { 28 | m_pluginCommand.Undo(); 29 | } 30 | 31 | public override string Description 32 | { 33 | get { return m_pluginCommand.Description; } 34 | } 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Plugin/Bridge/ElementBridge.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | using tIDE.Plugin.Interface; 7 | 8 | namespace tIDE.Plugin.Bridge 9 | { 10 | internal abstract class ElementBridge: IElement 11 | { 12 | private bool m_readOnly; 13 | 14 | internal ElementBridge(bool readOnly) 15 | { 16 | m_readOnly = readOnly; 17 | } 18 | 19 | protected void VerifyWriteAccess() 20 | { 21 | if (m_readOnly) 22 | throw new Exception( 23 | "No changes allowed to read-only interface element"); 24 | } 25 | 26 | public bool ReadOnly 27 | { 28 | get { return m_readOnly; } 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Plugin/Bridge/ToolBarButtonBridge.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Windows.Forms; 6 | 7 | using tIDE.Plugin.Interface; 8 | 9 | namespace tIDE.Plugin.Bridge 10 | { 11 | internal class ToolBarButtonBridge: ElementBridge, IToolBarButton 12 | { 13 | private ToolStripButton m_toolStripButton; 14 | 15 | internal ToolStripButton ToolStripButton 16 | { 17 | get { return m_toolStripButton; } 18 | } 19 | 20 | public ToolBarButtonBridge(ToolStripButton toolStripButton, bool readOnly) 21 | : base(readOnly) 22 | { 23 | m_toolStripButton = toolStripButton; 24 | } 25 | 26 | public string Id 27 | { 28 | get { return m_toolStripButton.Name; } 29 | set 30 | { 31 | VerifyWriteAccess(); 32 | m_toolStripButton.Name = value; 33 | } 34 | } 35 | 36 | public System.Drawing.Image Image 37 | { 38 | get { return m_toolStripButton.Image; } 39 | set 40 | { 41 | VerifyWriteAccess(); 42 | m_toolStripButton.Image = value; 43 | } 44 | } 45 | 46 | public string ToolTipText 47 | { 48 | get { return m_toolStripButton.ToolTipText; } 49 | set 50 | { 51 | VerifyWriteAccess(); 52 | m_toolStripButton.ToolTipText = value; 53 | } 54 | } 55 | 56 | public bool Enabled 57 | { 58 | get { return m_toolStripButton.Enabled; } 59 | set 60 | { 61 | VerifyWriteAccess(); 62 | m_toolStripButton.Enabled = value; 63 | } 64 | } 65 | 66 | public bool Checked 67 | { 68 | get { return m_toolStripButton.Checked; } 69 | set 70 | { 71 | VerifyWriteAccess(); 72 | m_toolStripButton.Checked = value; 73 | } 74 | } 75 | 76 | public object Tag 77 | { 78 | get { return m_toolStripButton.Tag; } 79 | set 80 | { 81 | VerifyWriteAccess(); 82 | m_toolStripButton.Tag = value; 83 | } 84 | } 85 | 86 | public EventHandler EventHandler 87 | { 88 | set { m_toolStripButton.Click += value; } 89 | } 90 | } 91 | } 92 | -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Plugin/Version.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | namespace tIDE.Plugin 7 | { 8 | public struct Version 9 | { 10 | private byte m_major; 11 | private byte m_minor; 12 | 13 | public static bool operator ==(Version version1, Version version2) 14 | { 15 | return version1.m_major == version2.m_major 16 | && version1.m_minor == version2.m_minor; 17 | } 18 | 19 | public static bool operator !=(Version version1, Version version2) 20 | { 21 | return version1.m_major != version2.m_major 22 | || version1.m_minor != version2.m_minor; 23 | } 24 | 25 | public Version(byte major, byte minor) 26 | { 27 | m_major = major; 28 | m_minor = minor; 29 | } 30 | 31 | public byte Major { get { return m_major; } } 32 | 33 | public byte Minor { get { return m_minor; } } 34 | 35 | public override int GetHashCode() 36 | { 37 | return m_major << 8 + m_minor; ; 38 | } 39 | 40 | public override bool Equals(object other) 41 | { 42 | if (!(other is Version)) 43 | return false; 44 | 45 | Version version = (Version)other; 46 | return this == version; 47 | } 48 | 49 | public override string ToString() 50 | { 51 | return m_major + "." + m_minor; 52 | } 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Windows.Forms; 5 | using System.Globalization; 6 | using System.Threading; 7 | using tIDE.Localisation; 8 | 9 | namespace tIDE 10 | { 11 | static class Program 12 | { 13 | /// 14 | /// The main entry point for the application. 15 | /// 16 | [STAThread] 17 | static void Main(string[] arguments) 18 | { 19 | LanguageManager.Initialise(); 20 | 21 | Application.EnableVisualStyles(); 22 | Application.SetCompatibleTextRenderingDefault(false); 23 | Application.Run(new MainForm(arguments)); 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("Tilemap Integrated Development Environment (tIDE)")] 9 | [assembly: AssemblyDescription("Tilemap Integrated Development Environment.")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("Colin Vella")] 12 | [assembly: AssemblyProduct("tIDE")] 13 | [assembly: AssemblyCopyright("Copyright © Colin Vella 2010-2013")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("fa5f91bd-fd79-494b-ae7e-3579d079daf2")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("2.0.7.0")] 36 | [assembly: AssemblyFileVersion("2.0.7.0")] 37 | -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | (Default) 10 | 11 | 12 | 10 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Properties/app.manifest: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /TileMapEditor/tIDE/RecentFilesManager.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Collections.Specialized; 4 | using System.Linq; 5 | using System.Text; 6 | 7 | namespace tIDE 8 | { 9 | class RecentFilesManager 10 | { 11 | public static byte MaxFilenameCount 12 | { 13 | get { return Properties.Settings.Default.RecentFilesMaxCount; } 14 | set 15 | { 16 | Properties.Settings.Default.RecentFilesMaxCount = value; 17 | Properties.Settings.Default.Save(); 18 | } 19 | } 20 | 21 | public static StringCollection Filenames 22 | { 23 | get 24 | { 25 | StringCollection filenames = Properties.Settings.Default.RecentFiles; 26 | if (filenames == null) 27 | { 28 | filenames = new StringCollection(); 29 | Properties.Settings.Default.RecentFiles = filenames; 30 | Properties.Settings.Default.Save(); 31 | } 32 | return filenames; 33 | } 34 | } 35 | 36 | public static void StoreFilename(string filename) 37 | { 38 | RemoveFilename(filename); 39 | 40 | StringCollection filenames = Filenames; 41 | filenames.Insert(0, filename); 42 | 43 | while (filenames.Count > MaxFilenameCount) 44 | filenames.RemoveAt(filenames.Count - 1); 45 | 46 | Properties.Settings.Default.Save(); 47 | } 48 | 49 | public static void RemoveFilename(string filename) 50 | { 51 | StringCollection filenames = Filenames; 52 | string filenameToRemove = null; 53 | foreach (string containedFilename in filenames) 54 | if (filename.Equals(containedFilename, StringComparison.InvariantCultureIgnoreCase)) 55 | { 56 | filenameToRemove = containedFilename; 57 | break; 58 | } 59 | 60 | if (filenameToRemove != null) 61 | { 62 | filenames.Remove(filenameToRemove); 63 | Properties.Settings.Default.Save(); 64 | } 65 | } 66 | 67 | public static void ClearHistory() 68 | { 69 | StringCollection filenames = Filenames; 70 | filenames.Clear(); 71 | Properties.Settings.Default.Save(); 72 | } 73 | } 74 | } 75 | -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/..svnbridge/ToolsFloodFill.png: -------------------------------------------------------------------------------- 1 | svn:mime-typeapplication/octet-stream -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/AboutBackground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/AboutBackground.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/AboutPluginBackground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/AboutPluginBackground.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/AboutSide.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/AboutSide.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/AnchorDown.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/AnchorDown.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/AnchorDownLeft.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/AnchorDownLeft.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/AnchorDownRight.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/AnchorDownRight.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/AnchorLeft.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/AnchorLeft.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/AnchorRight.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/AnchorRight.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/AnchorUp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/AnchorUp.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/AnchorUpLeft.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/AnchorUpLeft.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/AnchorUpRight.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/AnchorUpRight.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/AutoTileTemplate.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/AutoTileTemplate.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/CustomProperties.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/CustomProperties.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/DefaultButtonImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/DefaultButtonImage.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/Edit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/Edit.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/EditClearSelection.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/EditClearSelection.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/EditClipboard.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/EditClipboard.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/EditCopy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/EditCopy.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/EditCut.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/EditCut.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/EditDelete.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/EditDelete.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/EditHistory.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/EditHistory.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/EditInvertSelection.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/EditInvertSelection.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/EditMakeTileBrush.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/EditMakeTileBrush.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/EditManageTileBrushes.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/EditManageTileBrushes.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/EditPaste.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/EditPaste.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/EditRedo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/EditRedo.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/EditSelectAll.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/EditSelectAll.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/EditUndo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/EditUndo.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/File.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/File.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/FileNew.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/FileNew.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/FileOpen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/FileOpen.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/FileOpenRecent.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/FileOpenRecent.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/FileOptions.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/FileOptions.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/FilePageSetup.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/FilePageSetup.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/FilePrint.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/FilePrint.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/FilePrintPreview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/FilePrintPreview.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/FileSave.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/FileSave.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/FileSaveAs.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/FileSaveAs.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/Help.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/Help.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/Help/Features.rtf: -------------------------------------------------------------------------------- 1 | {\rtf1\ansi\ansicpg1252\deff0\deflang2057{\fonttbl{\f0\fnil\fcharset0 Calibri;}{\f1\fnil\fcharset2 Symbol;}} 2 | {\*\generator Msftedit 5.41.21.2509;}\viewkind4\uc1\pard\sa200\sl276\slmult1\lang9\b\f0\fs32 Features\b0\par 3 | \pard{\pntext\f1\'B7\tab}{\*\pn\pnlvlblt\pnf1\pnindent0{\pntxtb\'B7}}\fi-360\li720\sa200\sl276\slmult1\fs22 Intuitive user interface\par 4 | {\pntext\f1\'B7\tab}Support for multiple tile layers to facilitate the design of games featuring parallax scrolling\par 5 | {\pntext\f1\'B7\tab}Animated tiles\par 6 | {\pntext\f1\'B7\tab}Automatic tile transitioning (auto-tiling)\par 7 | {\pntext\f1\'B7\tab}Full-featured drawing toolbox to facilitate level design\par 8 | {\pntext\f1\'B7\tab}Layer ordering and visibility\par 9 | {\pntext\f1\'B7\tab}Layer resizing with alignment options\par 10 | {\pntext\f1\'B7\tab}Layer offsetting with or without wrap-around\par 11 | {\pntext\f1\'B7\tab}Support for an extensive range of display sizes to facilitate alignment when desigining multi-layer maps\par 12 | {\pntext\f1\'B7\tab}Support for arbitrary tile sizes and multiple tile sheets\par 13 | {\pntext\f1\'B7\tab}Brushes to facilitate reuse of common composite elements\par 14 | {\pntext\f1\'B7\tab}Multiple file formats\par 15 | {\pntext\f1\'B7\tab}Full undo/redo capability\par 16 | {\pntext\f1\'B7\tab}Support for custom properties at every level of the map structure\par 17 | {\pntext\f1\'B7\tab}Full-screen editing mode\par 18 | {\pntext\f1\'B7\tab}Zooming capabilities\par 19 | {\pntext\f1\'B7\tab}Map structure navigation and manipulation via the Map Explorer panel\par 20 | {\pntext\f1\'B7\tab}Intuitive tile picker for individual tile and tile block picking\par 21 | {\pntext\f1\'B7\tab}Keyboard and drag scrolling capabilities\par 22 | {\pntext\f1\'B7\tab}Dockable editor compoonents\par 23 | {\pntext\f1\'B7\tab}Tile sheet auto-update feature to streamline content creation pipeline\par 24 | {\pntext\f1\'B7\tab}Bindings to external image editing applications to facilitate quick modification of tile bitmaps\par 25 | {\pntext\f1\'B7\tab}Painless tile sheet rearragement \par 26 | {\pntext\f1\'B7\tab}Tile guides and layer viewing options\par 27 | {\pntext\f1\'B7\tab}Statistics on dimensions and tile usage\par 28 | {\pntext\f1\'B7\tab}Extensive potential for customisation via a plugin management system\par 29 | {\pntext\f1\'B7\tab}Built-in help system\par 30 | \pard\sa200\sl276\slmult1\par 31 | } 32 | -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/Help/GettingStarted.rtf: -------------------------------------------------------------------------------- 1 | {\rtf1\ansi\ansicpg1252\deff0\deflang2057\deflangfe2057{\fonttbl{\f0\fswiss\fprq2\fcharset0 Calibri;}} 2 | {\*\generator Msftedit 5.41.21.2509;}\viewkind4\uc1\pard\nowidctlpar\sa200\sl276\slmult1\lang9\b\f0\fs32 Getting Started\b0\fs22\par 3 | \pard\nowidctlpar To do\par 4 | \par 5 | \pard\nowidctlpar\sa200\sl276\slmult1\par 6 | } 7 | -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/Help/tIDE.rtf: -------------------------------------------------------------------------------- 1 | {\rtf1\ansi\ansicpg1252\deff0\deflang2057{\fonttbl{\f0\fnil\fcharset0 Calibri;}{\f1\fswiss\fprq2\fcharset0 Calibri;}{\f2\fnil\fcharset2 Symbol;}} 2 | {\*\generator Msftedit 5.41.21.2509;}\viewkind4\uc1\pard\sa200\sl276\slmult1\lang9\b\f0\fs32 tIDE\b0\fs22\par 3 | \pard\nowidctlpar\sa200\sl276\slmult1\f1 tIDE (Tile Integrated Development Environment) is a [feature#HelpFeatures]-rich editor for tile-based graphics, particularly suited as a content editor for tile-based computer games and similar applications. The functionality of the tIDE can be further enhanced and extended through the use of third party custom plugins.\par 4 | \pard{\pntext\f2\'B7\tab}{\*\pn\pnlvlblt\pnf2\pnindent0{\pntxtb\'B7}}\nowidctlpar\fi-360\li720\sl240\slmult1 [Features#HelpFeatures]\par 5 | \pard\nowidctlpar\li720\sa200 Details the standard features provided by tIDE\par 6 | \pard{\pntext\f2\'B7\tab}{\*\pn\pnlvlblt\pnf2\pnindent0{\pntxtb\'B7}}\nowidctlpar\fi-360\li720\sl240\slmult1 [Getting Started#HelpGettingStarted]\par 7 | \pard\nowidctlpar\li720\sa200 Provides information to help new users become productive with tIDE\par 8 | \pard{\pntext\f2\'B7\tab}{\*\pn\pnlvlblt\pnf2\pnindent0{\pntxtb\'B7}}\nowidctlpar\fi-360\li720 [Command Reference#HelpCommandReference]\par 9 | \pard\li720\sa200\sl276\slmult1 A complete reference of the commands available in tIDE\par 10 | \f0\par 11 | } 12 | -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/HelpAbout.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/HelpAbout.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/HelpContents.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/HelpContents.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/HelpIndex.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/HelpIndex.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/HelpSearch.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/HelpSearch.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/ImageBackground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/ImageBackground.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/Layer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/Layer.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/LayerBringForward.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/LayerBringForward.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/LayerDelete.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/LayerDelete.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/LayerInvisible.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/LayerInvisible.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/LayerNew.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/LayerNew.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/LayerOffset.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/LayerOffset.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/LayerProperties.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/LayerProperties.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/LayerSendBackward.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/LayerSendBackward.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/LayerVisible.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/LayerVisible.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/Legal.txt: -------------------------------------------------------------------------------- 1 | Microsoft Public License (Ms-PL) 2 | 3 | This license governs use of the accompanying software. If you use the software, you accept this license. If you do not accept the license, do not use the software. 4 | 5 | 1. Definitions 6 | 7 | The terms "reproduce," "reproduction," "derivative works," and "distribution" have the same meaning here as under U.S. copyright law. 8 | 9 | A "contribution" is the original software, or any additions or changes to the software. 10 | 11 | A "contributor" is any person that distributes its contribution under this license. 12 | 13 | "Licensed patents" are a contributor's patent claims that read directly on its contribution. 14 | 15 | 2. Grant of Rights 16 | 17 | (A) Copyright Grant- Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free copyright license to reproduce its contribution, prepare derivative works of its contribution, and distribute its contribution or any derivative works that you create. 18 | 19 | (B) Patent Grant- Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free license under its licensed patents to make, have made, use, sell, offer for sale, import, and/or otherwise dispose of its contribution in the software or derivative works of the contribution in the software. 20 | 21 | 3. Conditions and Limitations 22 | 23 | (A) No Trademark License- This license does not grant you rights to use any contributors' name, logo, or trademarks. 24 | 25 | (B) If you bring a patent claim against any contributor over patents that you claim are infringed by the software, your patent license from such contributor to the software ends automatically. 26 | 27 | (C) If you distribute any portion of the software, you must retain all copyright, patent, trademark, and attribution notices that are present in the software. 28 | 29 | (D) If you distribute any portion of the software in source code form, you may do so only under this license by including a complete copy of this license with your distribution. If you distribute any portion of the software in compiled or object code form, you may only do so under a license that complies with this license. 30 | 31 | (E) The software is licensed "as-is." You bear the risk of using it. The contributors give no express warranties, guarantees or conditions. You may have additional consumer rights under your local laws which this license cannot change. To the extent permitted under your local laws, the contributors exclude the implied warranties of merchantability, fitness for a particular purpose and non-infringement. -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/Map.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/Map.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/MapCompatibilityFull.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/MapCompatibilityFull.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/MapCompatibilityNone.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/MapCompatibilityNone.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/MapCompatibilityPartial.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/MapCompatibilityPartial.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/MapProperties.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/MapProperties.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/MapStatistics.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/MapStatistics.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/OptionsLanguage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/OptionsLanguage.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/Plugin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/Plugin.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/PluginReload.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/PluginReload.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/TileAnimation.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/TileAnimation.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/TileAnimationFrameDelete.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/TileAnimationFrameDelete.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/TileAnimationFrameProperties.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/TileAnimationFrameProperties.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/TileOrderImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/TileOrderImage.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/TileOrderIndexed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/TileOrderIndexed.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/TileOrderMru.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/TileOrderMru.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/TileProperties.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/TileProperties.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/TilePropertiesIndicator.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/TilePropertiesIndicator.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/TileSheet.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/TileSheet.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/TileSheetAlignment.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/TileSheetAlignment.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/TileSheetAutoTiles.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/TileSheetAutoTiles.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/TileSheetAutoUpdateDisable.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/TileSheetAutoUpdateDisable.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/TileSheetAutoUpdateEnable.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/TileSheetAutoUpdateEnable.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/TileSheetDelete.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/TileSheetDelete.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/TileSheetEditImageSource.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/TileSheetEditImageSource.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/TileSheetNew.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/TileSheetNew.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/TileSheetProperties.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/TileSheetProperties.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/TileSheetRemoveDependencies.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/TileSheetRemoveDependencies.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/ToolsDropper.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/ToolsDropper.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/ToolsDropperCursor.cur: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/ToolsDropperCursor.cur -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/ToolsEraser.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/ToolsEraser.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/ToolsEraserCursor.cur: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/ToolsEraserCursor.cur -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/ToolsFloodFill.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/ToolsFloodFill.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/ToolsFloodFillCursor.cur: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/ToolsFloodFillCursor.cur -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/ToolsSelect.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/ToolsSelect.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/ToolsSingleTile.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/ToolsSingleTile.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/ToolsSingleTileCursor.cur: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/ToolsSingleTileCursor.cur -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/ToolsTexture.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/ToolsTexture.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/ToolsTileBlock.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/ToolsTileBlock.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/ToolsTileBlockCursor.cur: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/ToolsTileBlockCursor.cur -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/ToolsTileBrush.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/ToolsTileBrush.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/VewTileGuides.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/VewTileGuides.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/VewTileGuidesHide.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/VewTileGuidesHide.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/VewTileGuidesShow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/VewTileGuidesShow.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/View.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/View.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/ViewFullScreen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/ViewFullScreen.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/ViewLayerCompositing.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/ViewLayerCompositing.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/ViewLayerCompositingDimUnselected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/ViewLayerCompositingDimUnselected.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/ViewLayerCompositingShowAll.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/ViewLayerCompositingShowAll.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/ViewViewport.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/ViewViewport.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/ViewWindowed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/ViewWindowed.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/ViewZoom.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/ViewZoom.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/ViewZoomIn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/ViewZoomIn.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/ViewZoomOut.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/ViewZoomOut.png -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/help.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/help.ico -------------------------------------------------------------------------------- /TileMapEditor/tIDE/Resources/tIDE.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDE/Resources/tIDE.ico -------------------------------------------------------------------------------- /TileMapEditor/tIDE/TileBrushes/TileBrushElement.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | using xTile; 7 | using xTile.Dimensions; 8 | using xTile.Tiles; 9 | 10 | using tIDE.Controls; 11 | 12 | namespace tIDE.TileBrushes 13 | { 14 | [Serializable] 15 | public struct TileBrushElement 16 | { 17 | private Tile m_tile; 18 | private Location m_location; 19 | 20 | public TileBrushElement(Tile tile, Location location) 21 | { 22 | m_tile = tile; 23 | m_location = location; 24 | } 25 | 26 | public Tile Tile { get { return m_tile; } } 27 | 28 | public Location Location { get { return m_location; } } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /TileMapEditor/tIDE/app.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
6 |
7 | 8 | 9 | 10 | 11 | 12 | (Default) 13 | 14 | 15 | 10 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | (Default) 24 | 25 | 26 | 10 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /TileMapEditor/tIDE/tIDE.csproj.vspscc: -------------------------------------------------------------------------------- 1 | "" 2 | { 3 | "FILE_VERSION" = "9237" 4 | "ENLISTMENT_CHOICE" = "NEVER" 5 | "PROJECT_FILE_RELATIVE_PATH" = "" 6 | "NUMBER_OF_EXCLUDED_FILES" = "0" 7 | "ORIGINAL_PROJECT_FILE_PATH" = "" 8 | "NUMBER_OF_NESTED_PROJECTS" = "0" 9 | "SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER" 10 | } 11 | -------------------------------------------------------------------------------- /TileMapEditor/tIDESetup/BannerBitmap.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDESetup/BannerBitmap.bmp -------------------------------------------------------------------------------- /TileMapEditor/tIDESetup/BannerBitmap.pdn: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDESetup/BannerBitmap.pdn -------------------------------------------------------------------------------- /TileMapEditor/tIDESetup/tBIN.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDESetup/tBIN.ico -------------------------------------------------------------------------------- /TileMapEditor/tIDESetup/tIDE.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/tIDESetup/tIDE.ico -------------------------------------------------------------------------------- /TileMapEditor/tIDESetup/tIDESetup.vdproj.vspscc: -------------------------------------------------------------------------------- 1 | "" 2 | { 3 | "FILE_VERSION" = "9237" 4 | "ENLISTMENT_CHOICE" = "NEVER" 5 | "PROJECT_FILE_RELATIVE_PATH" = "" 6 | "NUMBER_OF_EXCLUDED_FILES" = "0" 7 | "ORIGINAL_PROJECT_FILE_PATH" = "" 8 | "NUMBER_OF_NESTED_PROJECTS" = "0" 9 | "SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER" 10 | } 11 | -------------------------------------------------------------------------------- /TileMapEditor/xTile/Background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/xTile/Background.png -------------------------------------------------------------------------------- /TileMapEditor/xTile/Layers/LayerEventArgs.cs: -------------------------------------------------------------------------------- 1 | ///////////////////////////////////////////////////////////////////////////// 2 | // // 3 | // LICENSE Microsoft Public License (Ms-PL) // 4 | // http://www.opensource.org/licenses/ms-pl.html // 5 | // // 6 | // AUTHOR Colin Vella // 7 | // // 8 | // CODEBASE http://tide.codeplex.com // 9 | // // 10 | ///////////////////////////////////////////////////////////////////////////// 11 | 12 | using System; 13 | using System.Collections.Generic; 14 | using System.Linq; 15 | using System.Text; 16 | 17 | using xTile.Dimensions; 18 | 19 | namespace xTile.Layers 20 | { 21 | /// 22 | /// Argument structure for Layer-related events 23 | /// 24 | public class LayerEventArgs 25 | { 26 | #region Public Properties 27 | 28 | /// 29 | /// Layer associated with the event 30 | /// 31 | public Layer Layer { get { return m_layer; } } 32 | 33 | /// 34 | /// Viewport at the time of the event 35 | /// 36 | public Rectangle Viewport { get { return m_viewport; } } 37 | 38 | #endregion 39 | 40 | #region Public Methods 41 | 42 | /// 43 | /// Constructs a new Layer arguments structure 44 | /// 45 | /// Layer associated with the event 46 | /// Viewport associated with the event 47 | public LayerEventArgs(Layer layer, Rectangle viewport) 48 | { 49 | m_layer = layer; 50 | m_viewport = viewport; 51 | } 52 | 53 | #endregion 54 | 55 | #region Private Variables 56 | 57 | private Layer m_layer; 58 | private Rectangle m_viewport; 59 | 60 | #endregion 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /TileMapEditor/xTile/Layers/LayerEventHandler.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | namespace xTile.Layers 7 | { 8 | /// 9 | /// Delegate for Layer events 10 | /// 11 | /// Source of layer event 12 | /// Argument structure for Layer events 13 | public delegate void LayerEventHandler(object sender, LayerEventArgs layerEventArgs); 14 | } 15 | -------------------------------------------------------------------------------- /TileMapEditor/xTile/ObjectModel/IPropertyCollection.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | namespace xTile.ObjectModel 7 | { 8 | /// 9 | /// Interface to a custom property collection used by 10 | /// component objects. This interface extends the .NET Framework 11 | /// generic Dictionary class 12 | /// 13 | public interface IPropertyCollection : IDictionary 14 | { 15 | /// 16 | /// Copies the given property collection into this collection 17 | /// 18 | /// Property collection to copy from 19 | void CopyFrom(IPropertyCollection propertyCollection); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /TileMapEditor/xTile/ObjectModel/PropertyCollection.cs: -------------------------------------------------------------------------------- 1 | ///////////////////////////////////////////////////////////////////////////// 2 | // // 3 | // LICENSE Microsoft Public License (Ms-PL) // 4 | // http://www.opensource.org/licenses/ms-pl.html // 5 | // // 6 | // AUTHOR Colin Vella // 7 | // // 8 | // CODEBASE http://tide.codeplex.com // 9 | // // 10 | ///////////////////////////////////////////////////////////////////////////// 11 | 12 | using System; 13 | using System.Collections.Generic; 14 | using System.Linq; 15 | using System.Text; 16 | 17 | namespace xTile.ObjectModel 18 | { 19 | /// 20 | /// General implementation of the IPropertyCollection interface 21 | /// 22 | public class PropertyCollection : Dictionary, IPropertyCollection 23 | { 24 | /// 25 | /// Constucts an empty property collection 26 | /// 27 | public PropertyCollection() 28 | : base() 29 | { 30 | } 31 | 32 | /// 33 | /// Constucts a property collection by cloning the given 34 | /// collection 35 | /// 36 | /// Property collection to clone 37 | public PropertyCollection(IPropertyCollection propertyCollection) 38 | : base(propertyCollection.Count) 39 | { 40 | CopyFrom(propertyCollection); 41 | } 42 | 43 | /// 44 | /// Copies the given property collection into this collection 45 | /// 46 | /// Property collection to copy from 47 | public void CopyFrom(IPropertyCollection propertyCollection) 48 | { 49 | foreach (KeyValuePair keyValuePair in propertyCollection) 50 | this[keyValuePair.Key] = new PropertyValue(keyValuePair.Value); 51 | } 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /TileMapEditor/xTile/PhoneGameThumb.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/xTile/PhoneGameThumb.png -------------------------------------------------------------------------------- /TileMapEditor/xTile/Properties/AppManifest.xml: -------------------------------------------------------------------------------- 1 |  4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /TileMapEditor/xTile/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("xTile")] 9 | [assembly: AssemblyProduct("xTile")] 10 | [assembly: AssemblyDescription("Tile Engine for XNA 4.0")] 11 | [assembly: AssemblyCompany("Colin Vella")] 12 | [assembly: AssemblyCopyright("Copyright © Colin Vella 2010-2013")] 13 | [assembly: AssemblyTrademark("")] 14 | [assembly: AssemblyCulture("")] 15 | 16 | // Setting ComVisible to false makes the types in this assembly not visible 17 | // to COM components. If you need to access a type in this assembly from 18 | // COM, set the ComVisible attribute to true on that type. Only Windows 19 | // assemblies support COM. 20 | [assembly: ComVisible(false)] 21 | 22 | // On Windows, the following GUID is for the ID of the typelib if this 23 | // project is exposed to COM. On other platforms, it unique identifies the 24 | // title storage container when deploying this assembly to the device. 25 | [assembly: Guid("0b38fcb3-de04-401f-a923-ab0a055e80fe")] 26 | 27 | // Version information for an assembly consists of the following four values: 28 | // 29 | // Major Version 30 | // Minor Version 31 | // Build Number 32 | // Revision 33 | // 34 | [assembly: AssemblyVersion("2.0.7.0")] 35 | [assembly: AssemblyFileVersionAttribute("2.0.7.0")] 36 | -------------------------------------------------------------------------------- /TileMapEditor/xTile/Properties/WMAppManifest.xml: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 0 32 | 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /TileMapEditor/xTile/Tiles/TileIndexPropertyAccessor.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using xTile.ObjectModel; 6 | 7 | namespace xTile.Tiles 8 | { 9 | /// 10 | /// Accessor class for tile index properties, associated with 11 | /// a specific tile sheet 12 | /// 13 | public class TileIndexPropertyAccessor 14 | { 15 | #region Ppublic Properties 16 | 17 | /// 18 | /// The property collection associated with a given tile index 19 | /// 20 | /// Tile index for which to access the properties 21 | /// a property collection for the given tile index 22 | public IPropertyCollection this[int tileIndex] 23 | { 24 | get 25 | { 26 | if (tileIndex < 0 || tileIndex >= m_tileSheet.TileCount) 27 | throw new IndexOutOfRangeException( 28 | "Tile index #" + tileIndex + " is out of range"); 29 | return new TileIndexPropertyCollection(m_tileSheet, tileIndex); 30 | } 31 | } 32 | 33 | #endregion 34 | 35 | #region Internal Methods 36 | 37 | /// 38 | /// Constructs an accessor for the given tile sheet 39 | /// 40 | /// Tile sheet associated with the accessor 41 | internal TileIndexPropertyAccessor(TileSheet tileSheet) 42 | { 43 | m_tileSheet = tileSheet; 44 | } 45 | 46 | #endregion 47 | 48 | #region Private Fields 49 | 50 | private TileSheet m_tileSheet; 51 | 52 | #endregion 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /TileMapEditor/xTile/XTile360.csproj.vspscc: -------------------------------------------------------------------------------- 1 | "" 2 | { 3 | "FILE_VERSION" = "9237" 4 | "ENLISTMENT_CHOICE" = "NEVER" 5 | "PROJECT_FILE_RELATIVE_PATH" = "" 6 | "NUMBER_OF_EXCLUDED_FILES" = "0" 7 | "ORIGINAL_PROJECT_FILE_PATH" = "" 8 | "NUMBER_OF_NESTED_PROJECTS" = "0" 9 | "SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER" 10 | } 11 | -------------------------------------------------------------------------------- /TileMapEditor/xTile/XTilePC.csproj.vspscc: -------------------------------------------------------------------------------- 1 | "" 2 | { 3 | "FILE_VERSION" = "9237" 4 | "ENLISTMENT_CHOICE" = "NEVER" 5 | "PROJECT_FILE_RELATIVE_PATH" = "" 6 | "NUMBER_OF_EXCLUDED_FILES" = "0" 7 | "ORIGINAL_PROJECT_FILE_PATH" = "" 8 | "NUMBER_OF_NESTED_PROJECTS" = "0" 9 | "SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER" 10 | } 11 | -------------------------------------------------------------------------------- /TileMapEditor/xTile/XTileZune.csproj.vspscc: -------------------------------------------------------------------------------- 1 | "" 2 | { 3 | "FILE_VERSION" = "9237" 4 | "ENLISTMENT_CHOICE" = "NEVER" 5 | "PROJECT_FILE_RELATIVE_PATH" = "" 6 | "NUMBER_OF_EXCLUDED_FILES" = "0" 7 | "ORIGINAL_PROJECT_FILE_PATH" = "" 8 | "NUMBER_OF_NESTED_PROJECTS" = "0" 9 | "SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER" 10 | } 11 | -------------------------------------------------------------------------------- /TileMapEditor/xTile/xTile.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/xTile/xTile.ico -------------------------------------------------------------------------------- /TileMapEditor/xTile/xTile360.csproj.vspscc: -------------------------------------------------------------------------------- 1 | "" 2 | { 3 | "FILE_VERSION" = "9237" 4 | "ENLISTMENT_CHOICE" = "NEVER" 5 | "PROJECT_FILE_RELATIVE_PATH" = "" 6 | "NUMBER_OF_EXCLUDED_FILES" = "0" 7 | "ORIGINAL_PROJECT_FILE_PATH" = "" 8 | "NUMBER_OF_NESTED_PROJECTS" = "0" 9 | "SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER" 10 | } 11 | -------------------------------------------------------------------------------- /TileMapEditor/xTile/xTileWP7.csproj.vspscc: -------------------------------------------------------------------------------- 1 | "" 2 | { 3 | "FILE_VERSION" = "9237" 4 | "ENLISTMENT_CHOICE" = "NEVER" 5 | "PROJECT_FILE_RELATIVE_PATH" = "" 6 | "NUMBER_OF_EXCLUDED_FILES" = "0" 7 | "ORIGINAL_PROJECT_FILE_PATH" = "" 8 | "NUMBER_OF_NESTED_PROJECTS" = "0" 9 | "SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER" 10 | } 11 | -------------------------------------------------------------------------------- /TileMapEditor/xTilePipeline/MapImport.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | namespace xTile.Pipeline 7 | { 8 | public class MapImport 9 | { 10 | public MapImport(Map map, string mapDirectory) 11 | { 12 | m_map = map; 13 | m_mapDirectory = mapDirectory; 14 | } 15 | 16 | public Map Map 17 | { 18 | get { return m_map; } 19 | } 20 | 21 | public string MapDirectory 22 | { 23 | get { return m_mapDirectory; } 24 | } 25 | 26 | private Map m_map; 27 | private string m_mapDirectory; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /TileMapEditor/xTilePipeline/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("xTile.Pipeline")] 9 | [assembly: AssemblyDescription("xTile Content Pipeline for XNA 4.0")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("Colin Vella")] 12 | [assembly: AssemblyProduct("xTile.Pipeline")] 13 | [assembly: AssemblyCopyright("Copyright © Colin Vella 2010-2013")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("9e4764a0-0d19-42e6-9856-1cf8533003cd")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | [assembly: AssemblyVersion("2.0.7.0")] 33 | [assembly: AssemblyFileVersion("2.0.7.0")] 34 | -------------------------------------------------------------------------------- /TileMapEditor/xTilePipeline/TideImporter.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using Microsoft.Xna.Framework; 5 | using Microsoft.Xna.Framework.Graphics; 6 | using Microsoft.Xna.Framework.Content.Pipeline; 7 | using Microsoft.Xna.Framework.Content.Pipeline.Graphics; 8 | 9 | using xTile; 10 | using xTile.Format; 11 | using System.IO; 12 | 13 | namespace xTile.Pipeline 14 | { 15 | /// 16 | /// Content importer class for tIDE map files 17 | /// 18 | [ContentImporter(".tide", DisplayName = "tIDE Map Importer", DefaultProcessor = "TideProcessor")] 19 | public class TideImporter : ContentImporter 20 | { 21 | /// 22 | /// Loads and returns a new tIDE map instance from the given filename 23 | /// 24 | /// Filename of the tIDE map 25 | /// Importer context object 26 | /// a container with a loaded tIDE map instance and additional processing information 27 | public override MapImport Import(string filename, ContentImporterContext contentImporterContext) 28 | { 29 | Map map = FormatManager.Instance.LoadMap(filename); 30 | string mapDirectory = Path.GetDirectoryName(filename); 31 | return new MapImport(map, mapDirectory); 32 | } 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /TileMapEditor/xTilePipeline/TideWriter.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Collections.ObjectModel; 4 | using System.IO; 5 | using System.IO.Compression; 6 | using System.Linq; 7 | 8 | 9 | using Microsoft.Xna.Framework; 10 | using Microsoft.Xna.Framework.Graphics; 11 | using Microsoft.Xna.Framework.Content.Pipeline; 12 | using Microsoft.Xna.Framework.Content.Pipeline.Graphics; 13 | using Microsoft.Xna.Framework.Content.Pipeline.Processors; 14 | using Microsoft.Xna.Framework.Content.Pipeline.Serialization.Compiler; 15 | 16 | using xTile; 17 | using xTile.Dimensions; 18 | using xTile.Format; 19 | using xTile.Layers; 20 | using xTile.ObjectModel; 21 | using xTile.Pipeline; 22 | using xTile.Tiles; 23 | 24 | namespace xTile.Pipeline 25 | { 26 | /// 27 | /// Content writer class for tIDE map files 28 | /// 29 | [ContentTypeWriter] 30 | public class TideWriter : ContentTypeWriter 31 | { 32 | public override string GetRuntimeReader(TargetPlatform targetPlatform) 33 | { 34 | return "xTile.Pipeline.TideReader, xTile"; 35 | } 36 | 37 | protected override void Write(ContentWriter contentWriter, Map map) 38 | { 39 | MemoryStream memoryStream = new MemoryStream(); 40 | FormatManager.Instance.BinaryFormat.Store(map, memoryStream); 41 | 42 | byte[] data = memoryStream.ToArray(); 43 | contentWriter.Write(data.Length); 44 | contentWriter.Write(data); 45 | } 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /TileMapEditor/xTilePipeline/xTile.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/xTilePipeline/xTile.ico -------------------------------------------------------------------------------- /TileMapEditor/xTilePipeline/xTilePipeline.csproj.vspscc: -------------------------------------------------------------------------------- 1 | "" 2 | { 3 | "FILE_VERSION" = "9237" 4 | "ENLISTMENT_CHOICE" = "NEVER" 5 | "PROJECT_FILE_RELATIVE_PATH" = "" 6 | "NUMBER_OF_EXCLUDED_FILES" = "0" 7 | "ORIGINAL_PROJECT_FILE_PATH" = "" 8 | "NUMBER_OF_NESTED_PROJECTS" = "0" 9 | "SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER" 10 | } 11 | -------------------------------------------------------------------------------- /TileMapEditor/xTilePipeline/xTilePipeline.pfx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/TileMapEditor/xTilePipeline/xTilePipeline.pfx -------------------------------------------------------------------------------- /docs/bin/TutorialContent120.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/docs/bin/TutorialContent120.zip -------------------------------------------------------------------------------- /docs/bin/tIDESetup207.msi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/docs/bin/tIDESetup207.msi -------------------------------------------------------------------------------- /docs/bin/xTile125.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/docs/bin/xTile125.zip -------------------------------------------------------------------------------- /docs/bin/xTile207.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/docs/bin/xTile207.zip -------------------------------------------------------------------------------- /docs/bin/xTileDemo207.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/docs/bin/xTileDemo207.zip -------------------------------------------------------------------------------- /docs/google341d62e5c6f26784.html: -------------------------------------------------------------------------------- 1 | google-site-verification: google341d62e5c6f26784.html -------------------------------------------------------------------------------- /docs/images/AutoTiling.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/docs/images/AutoTiling.gif -------------------------------------------------------------------------------- /docs/images/GitHub.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/docs/images/GitHub.png -------------------------------------------------------------------------------- /docs/images/PlatformPC.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/docs/images/PlatformPC.png -------------------------------------------------------------------------------- /docs/images/PlatformWP7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/docs/images/PlatformWP7.png -------------------------------------------------------------------------------- /docs/images/PlatformX360.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/docs/images/PlatformX360.png -------------------------------------------------------------------------------- /docs/images/PlatformZune.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/docs/images/PlatformZune.png -------------------------------------------------------------------------------- /docs/images/Tutorial01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/docs/images/Tutorial01.png -------------------------------------------------------------------------------- /docs/images/Tutorial01GS4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/docs/images/Tutorial01GS4.png -------------------------------------------------------------------------------- /docs/images/Tutorial02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/docs/images/Tutorial02.png -------------------------------------------------------------------------------- /docs/images/Tutorial02GS4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/docs/images/Tutorial02GS4.png -------------------------------------------------------------------------------- /docs/images/Tutorial03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/docs/images/Tutorial03.png -------------------------------------------------------------------------------- /docs/images/Tutorial03GS4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/docs/images/Tutorial03GS4.png -------------------------------------------------------------------------------- /docs/images/Tutorial04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/docs/images/Tutorial04.png -------------------------------------------------------------------------------- /docs/images/Tutorial04GS4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/docs/images/Tutorial04GS4.png -------------------------------------------------------------------------------- /docs/images/Tutorial05.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/docs/images/Tutorial05.png -------------------------------------------------------------------------------- /docs/images/Tutorial05GS4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/docs/images/Tutorial05GS4.png -------------------------------------------------------------------------------- /docs/images/Tutorial06.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/docs/images/Tutorial06.png -------------------------------------------------------------------------------- /docs/images/Tutorial06GS4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/docs/images/Tutorial06GS4.png -------------------------------------------------------------------------------- /docs/images/Tutorial07.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/docs/images/Tutorial07.png -------------------------------------------------------------------------------- /docs/images/Tutorial07GS4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/docs/images/Tutorial07GS4.png -------------------------------------------------------------------------------- /docs/images/Tutorial08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/docs/images/Tutorial08.png -------------------------------------------------------------------------------- /docs/images/Tutorial09.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/docs/images/Tutorial09.png -------------------------------------------------------------------------------- /docs/images/Tutorial10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/docs/images/Tutorial10.png -------------------------------------------------------------------------------- /docs/images/Tutorial11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/docs/images/Tutorial11.png -------------------------------------------------------------------------------- /docs/images/Tutorial12.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/docs/images/Tutorial12.png -------------------------------------------------------------------------------- /docs/images/Tutorial13.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/docs/images/Tutorial13.png -------------------------------------------------------------------------------- /docs/images/Tutorial14.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/docs/images/Tutorial14.png -------------------------------------------------------------------------------- /docs/images/Twitter.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/docs/images/Twitter.png -------------------------------------------------------------------------------- /docs/images/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/docs/images/favicon.ico -------------------------------------------------------------------------------- /docs/images/tIDE01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/docs/images/tIDE01.png -------------------------------------------------------------------------------- /docs/images/tIDE02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/docs/images/tIDE02.png -------------------------------------------------------------------------------- /docs/images/tIDE03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/docs/images/tIDE03.png -------------------------------------------------------------------------------- /docs/images/tIDE04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/docs/images/tIDE04.png -------------------------------------------------------------------------------- /docs/images/tIDE05.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/docs/images/tIDE05.png -------------------------------------------------------------------------------- /docs/images/tIDE06.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/docs/images/tIDE06.png -------------------------------------------------------------------------------- /docs/images/tIDE64.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/docs/images/tIDE64.png -------------------------------------------------------------------------------- /docs/images/xTile32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/docs/images/xTile32.png -------------------------------------------------------------------------------- /docs/images/xTile40Demo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/docs/images/xTile40Demo.png -------------------------------------------------------------------------------- /docs/images/xTileDemoWP7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/docs/images/xTileDemoWP7.png -------------------------------------------------------------------------------- /docs/images/xTileDemoX360.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/docs/images/xTileDemoX360.png -------------------------------------------------------------------------------- /docs/images/xTileInGame.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/docs/images/xTileInGame.png -------------------------------------------------------------------------------- /docs/xTileTutorial.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinvella/tIDE/883e2166bdef3cb396deda278a15e443a9108c86/docs/xTileTutorial.pdf --------------------------------------------------------------------------------