mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-11-26 06:28:35 +01:00
moved DataTextureAtlas to MLEM.Data
This commit is contained in:
parent
e4081be2ce
commit
f68e55ebfd
2 changed files with 4 additions and 4 deletions
|
@ -1,4 +1,3 @@
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
@ -6,8 +5,9 @@ using System.Text.RegularExpressions;
|
||||||
using Microsoft.Xna.Framework;
|
using Microsoft.Xna.Framework;
|
||||||
using Microsoft.Xna.Framework.Content;
|
using Microsoft.Xna.Framework.Content;
|
||||||
using Microsoft.Xna.Framework.Graphics;
|
using Microsoft.Xna.Framework.Graphics;
|
||||||
|
using MLEM.Textures;
|
||||||
|
|
||||||
namespace MLEM.Textures {
|
namespace MLEM.Data {
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// This class represents an atlas of <see cref="TextureRegion"/> objects which are loaded from a special texture atlas file.
|
/// This class represents an atlas of <see cref="TextureRegion"/> objects which are loaded from a special texture atlas file.
|
||||||
/// To load a data texture atlas, you can use <see cref="DataTextureAtlasExtensions.LoadTextureAtlas"/>.
|
/// To load a data texture atlas, you can use <see cref="DataTextureAtlasExtensions.LoadTextureAtlas"/>.
|
|
@ -1,4 +1,4 @@
|
||||||
-- This is a lua script for Aseprite that allows automatically populating a MLEM Data Texture Atlas.
|
-- This is a lua script for Aseprite that allows automatically populating a MLEM.Data Data Texture Atlas.
|
||||||
-- To use this script, you need to select a rectangular area that should be your texture region.
|
-- To use this script, you need to select a rectangular area that should be your texture region.
|
||||||
-- If you want a custom pivot point, you also need to un-select exactly one pixel, the pivot point.
|
-- If you want a custom pivot point, you also need to un-select exactly one pixel, the pivot point.
|
||||||
-- When you then execute the script and input the name of the texture region, it gets appended to the "SpriteName.atlas" file.
|
-- When you then execute the script and input the name of the texture region, it gets appended to the "SpriteName.atlas" file.
|
||||||
|
@ -23,7 +23,7 @@ end
|
||||||
::foundPivot::
|
::foundPivot::
|
||||||
|
|
||||||
-- open the name dialog
|
-- open the name dialog
|
||||||
local dialog = Dialog("Copy Texture Atlas Data")
|
local dialog = Dialog("Populate Data Texture Atlas")
|
||||||
:entry{ id = "name", label = "Region Name", focus = true }
|
:entry{ id = "name", label = "Region Name", focus = true }
|
||||||
:button{ id = "ok", text="&OK" }
|
:button{ id = "ok", text="&OK" }
|
||||||
:button{ text = "&Cancel" }
|
:button{ text = "&Cancel" }
|
||||||
|
|
Loading…
Reference in a new issue