Update to new TexturePacker format
This commit is contained in:
@@ -1,88 +1,30 @@
|
||||
|
||||
tiled.png
|
||||
size: 512,128
|
||||
format: RGBA8888
|
||||
filter: Nearest,Nearest
|
||||
repeat: none
|
||||
size: 512, 128
|
||||
filter: Linear, Linear
|
||||
image-Box-active
|
||||
rotate: false
|
||||
xy: 87, 22
|
||||
size: 4, 4
|
||||
split: 1, 1, 1, 1
|
||||
orig: 4, 4
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
bounds: 87, 22, 4, 4
|
||||
split: 1, 1, 1, 1
|
||||
image-Box-inactive
|
||||
rotate: false
|
||||
xy: 436, 31
|
||||
size: 4, 4
|
||||
split: 1, 1, 1, 1
|
||||
orig: 4, 4
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
bounds: 436, 31, 4, 4
|
||||
split: 1, 1, 1, 1
|
||||
plugin-tab-active
|
||||
rotate: false
|
||||
xy: 436, 105
|
||||
size: 73, 21
|
||||
split: 4, 4, 3, 0
|
||||
orig: 73, 21
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
bounds: 436, 105, 73, 21
|
||||
split: 4, 4, 3, 0
|
||||
plugin-tab-inactive
|
||||
rotate: false
|
||||
xy: 2, 5
|
||||
size: 83, 21
|
||||
split: 3, 3, 2, 1
|
||||
orig: 83, 21
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
bounds: 2, 5, 83, 21
|
||||
split: 3, 3, 2, 1
|
||||
tab-back-line
|
||||
rotate: false
|
||||
xy: 2, 2
|
||||
size: 2, 1
|
||||
split: 0, 0, 0, 0
|
||||
orig: 2, 1
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
bounds: 2, 2, 2, 1
|
||||
split: 0, 0, 0, 0
|
||||
tile
|
||||
rotate: false
|
||||
xy: 436, 71
|
||||
size: 32, 32
|
||||
orig: 32, 32
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
bounds: 436, 71, 32, 32
|
||||
tile-eraser
|
||||
rotate: false
|
||||
xy: 436, 37
|
||||
size: 32, 32
|
||||
orig: 32, 32
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
bounds: 436, 37, 32, 32
|
||||
tiles-drop-here-normal
|
||||
rotate: false
|
||||
xy: 2, 28
|
||||
size: 215, 98
|
||||
orig: 215, 98
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
bounds: 2, 28, 215, 98
|
||||
tiles-drop-here-over
|
||||
rotate: false
|
||||
xy: 219, 28
|
||||
size: 215, 98
|
||||
orig: 215, 98
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
bounds: 219, 28, 215, 98
|
||||
tool-tilebrush
|
||||
rotate: false
|
||||
xy: 470, 80
|
||||
size: 22, 23
|
||||
orig: 22, 23
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
bounds: 470, 80, 22, 23
|
||||
tool-tileeraser
|
||||
rotate: false
|
||||
xy: 470, 55
|
||||
size: 22, 23
|
||||
orig: 22, 23
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
bounds: 470, 55, 22, 23
|
||||
|
||||
@@ -27,11 +27,17 @@ dependencies {
|
||||
testImplementation group: 'junit', name: 'junit', version: '4.12'
|
||||
}
|
||||
|
||||
import com.badlogic.gdx.graphics.Texture
|
||||
import com.badlogic.gdx.tools.texturepacker.TexturePacker
|
||||
|
||||
task packTextures {
|
||||
TexturePacker.Settings settings = new TexturePacker.Settings()
|
||||
settings.legacyOutput = false
|
||||
settings.filterMin = Texture.TextureFilter.Linear
|
||||
settings.filterMag = Texture.TextureFilter.Linear
|
||||
if (project.ext.has('pack')) {
|
||||
logger.info "Calling TexturePacker: " + pack
|
||||
TexturePacker.processIfModified(file(pack[0]).absolutePath, file(pack[1]).absolutePath, pack[2] as String)
|
||||
TexturePacker.processIfModified(settings, file(pack[0]).absolutePath, file(pack[1]).absolutePath, pack[2] as String)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user