mirror of
https://github.com/4ian/GDevelop.git
synced 2025-10-15 10:19:04 +00:00
Rename file
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
import * as PIXI from 'pixi.js-legacy';
|
||||
import ViewPosition from './ViewPosition';
|
||||
import { type TileMapTileSelection } from './TileMapPainter';
|
||||
import { type TileMapTileSelection } from './TileSetVisualizer';
|
||||
|
||||
type Coordinates = {| x: number, y: number |};
|
||||
|
||||
|
@@ -28,7 +28,7 @@ import {
|
||||
reorderInstanceSchemaForCustomProperties,
|
||||
} from './CompactPropertiesSchema';
|
||||
import { ProjectScopedContainersAccessor } from '../../InstructionOrExpression/EventsScope.flow';
|
||||
import TileMapPainter, { type TileMapTileSelection } from '../TileMapPainter';
|
||||
import TileSetVisualizer, { type TileMapTileSelection } from '../TileSetVisualizer';
|
||||
|
||||
export const styles = {
|
||||
paper: {
|
||||
@@ -186,7 +186,7 @@ const CompactInstancePropertiesEditor = ({
|
||||
|
||||
if (!object || !instance || !instanceSchema) return null;
|
||||
|
||||
const shouldDisplayTileMapPainter =
|
||||
const shouldDisplayTileSetVisualizer =
|
||||
object.getType() === 'TileMap::SimpleTileMap';
|
||||
|
||||
return (
|
||||
@@ -210,12 +210,12 @@ const CompactInstancePropertiesEditor = ({
|
||||
onInstancesModified={onInstancesModified}
|
||||
/>
|
||||
</Column>
|
||||
{shouldDisplayTileMapPainter && (
|
||||
{shouldDisplayTileSetVisualizer && (
|
||||
<>
|
||||
<Column>
|
||||
<Spacer />
|
||||
<Separator />
|
||||
<TileMapPainter
|
||||
<TileSetVisualizer
|
||||
project={project}
|
||||
objectConfiguration={object.getConfiguration()}
|
||||
tileMapTileSelection={tileMapTileSelection}
|
||||
|
@@ -7,7 +7,7 @@ import PixiResourcesLoader from '../ObjectsRendering/PixiResourcesLoader';
|
||||
import ViewPosition from './ViewPosition';
|
||||
import RenderedInstance from '../ObjectsRendering/Renderers/RenderedInstance';
|
||||
import Rendered3DInstance from '../ObjectsRendering/Renderers/Rendered3DInstance';
|
||||
import { type TileMapTileSelection } from './TileMapPainter';
|
||||
import { type TileMapTileSelection } from './TileSetVisualizer';
|
||||
import { AffineTransformation } from '../Utils/AffineTransformation';
|
||||
|
||||
export const updateSceneToTileMapTransformation = (
|
||||
|
@@ -148,7 +148,7 @@ type Props = {|
|
||||
) => void,
|
||||
|};
|
||||
|
||||
const TileMapPainter = ({
|
||||
const TileSetVisualizer = ({
|
||||
project,
|
||||
objectConfiguration,
|
||||
tileMapTileSelection,
|
||||
@@ -471,4 +471,4 @@ const TileMapPainter = ({
|
||||
);
|
||||
};
|
||||
|
||||
export default TileMapPainter;
|
||||
export default TileSetVisualizer;
|
@@ -46,7 +46,7 @@ import TileMapTilePreview, {
|
||||
getTileSet,
|
||||
updateSceneToTileMapTransformation,
|
||||
} from './TileMapTilePreview';
|
||||
import { type TileMapTileSelection } from './TileMapPainter';
|
||||
import { type TileMapTileSelection } from './TileSetVisualizer';
|
||||
import ClickInterceptor from './ClickInterceptor';
|
||||
import getObjectByName from '../Utils/GetObjectByName';
|
||||
import { AffineTransformation } from '../Utils/AffineTransformation';
|
||||
|
@@ -8,11 +8,11 @@ import SemiControlledTextField from '../../UI/SemiControlledTextField';
|
||||
import { Trans } from '@lingui/macro';
|
||||
import useForceUpdate from '../../Utils/UseForceUpdate';
|
||||
import { PropertyResourceSelector } from './PropertyFields';
|
||||
import TileMapPainter, {
|
||||
import TileSetVisualizer, {
|
||||
getGridCoordinatesFromTileId,
|
||||
getTileIdFromGridCoordinates,
|
||||
} from '../../InstancesEditor/TileMapPainter';
|
||||
import type { TileMapTileSelection } from '../../InstancesEditor/TileMapPainter';
|
||||
} from '../../InstancesEditor/TileSetVisualizer';
|
||||
import type { TileMapTileSelection } from '../../InstancesEditor/TileSetVisualizer';
|
||||
import { Column, Line } from '../../UI/Grid';
|
||||
import Text from '../../UI/Text';
|
||||
import AlertMessage from '../../UI/AlertMessage';
|
||||
@@ -220,7 +220,7 @@ const SimpleTileMapEditor = ({
|
||||
)}
|
||||
</Column>
|
||||
<Column noMargin expand>
|
||||
<TileMapPainter
|
||||
<TileSetVisualizer
|
||||
project={project}
|
||||
objectConfiguration={objectConfiguration}
|
||||
tileMapTileSelection={tileMapTileSelection}
|
||||
|
@@ -18,7 +18,7 @@ import Rectangle from '../Utils/Rectangle';
|
||||
import ViewPosition from '../InstancesEditor/ViewPosition';
|
||||
import { type ObjectFolderOrObjectWithContext } from '../ObjectsList/EnumerateObjectFolderOrObject';
|
||||
import { ProjectScopedContainersAccessor } from '../InstructionOrExpression/EventsScope.flow';
|
||||
import { type TileMapTileSelection } from '../InstancesEditor/TileMapPainter';
|
||||
import { type TileMapTileSelection } from '../InstancesEditor/TileSetVisualizer';
|
||||
|
||||
export type SceneEditorsDisplayProps = {|
|
||||
project: gdProject,
|
||||
|
@@ -74,7 +74,7 @@ import {
|
||||
} from '../MainFrame/ResourcesWatcher';
|
||||
import { unserializeFromJSObject } from '../Utils/Serializer';
|
||||
import { ProjectScopedContainersAccessor } from '../InstructionOrExpression/EventsScope.flow';
|
||||
import { type TileMapTileSelection } from '../InstancesEditor/TileMapPainter';
|
||||
import { type TileMapTileSelection } from '../InstancesEditor/TileSetVisualizer';
|
||||
|
||||
const gd: libGDevelop = global.gd;
|
||||
|
||||
|
Reference in New Issue
Block a user