mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-11-26 06:28:35 +01:00
also made additional data non-relative for data texture atlas
This commit is contained in:
parent
c8fd2a4c17
commit
81d4fb2dd4
2 changed files with 4 additions and 4 deletions
|
@ -78,8 +78,8 @@ namespace MLEM.Data {
|
||||||
if (match.Groups[8].Success) {
|
if (match.Groups[8].Success) {
|
||||||
for (var i = 0; i < match.Groups[8].Captures.Count; i++) {
|
for (var i = 0; i < match.Groups[8].Captures.Count; i++) {
|
||||||
region.SetData(match.Groups[8].Captures[i].Value, new Vector2(
|
region.SetData(match.Groups[8].Captures[i].Value, new Vector2(
|
||||||
float.Parse(match.Groups[9].Captures[i].Value),
|
float.Parse(match.Groups[9].Captures[i].Value) - (pivotRelative ? 0 : loc.X),
|
||||||
float.Parse(match.Groups[10].Captures[i].Value)));
|
float.Parse(match.Groups[10].Captures[i].Value) - (pivotRelative ? 0 : loc.Y)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
atlas.regions.Add(name, region);
|
atlas.regions.Add(name, region);
|
||||||
|
|
|
@ -11,8 +11,8 @@ loc 96 0 16 32
|
||||||
LongTableUp
|
LongTableUp
|
||||||
loc 0 32 64 48
|
loc 0 32 64 48
|
||||||
piv 16 48
|
piv 16 48
|
||||||
extraData1 12 14
|
extraData1 12 50
|
||||||
extraData2 129 4
|
extraData2 40 60
|
||||||
|
|
||||||
LongTableRight
|
LongTableRight
|
||||||
loc 64 32 64 48
|
loc 64 32 64 48
|
||||||
|
|
Loading…
Reference in a new issue