mirror of
https://forgejo.xatacraft.ru/Sunshine/mkxp-sunshine.git
synced 2026-08-19 13:29:54 +00:00
fixed picture center
This commit is contained in:
parent
1d93d08099
commit
03879de933
2 changed files with 2 additions and 18 deletions
16
mklangsrc.rb
16
mklangsrc.rb
|
|
@ -47,22 +47,6 @@ module RPG
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
class Table
|
class Table
|
||||||
def each_with_index
|
|
||||||
x = 0
|
|
||||||
y = 0
|
|
||||||
z = 0
|
|
||||||
while z < self.sizez
|
|
||||||
while y < self.sizey
|
|
||||||
while x < self.sizex
|
|
||||||
yield(self[x, y, z], x, y, z)
|
|
||||||
x += 1
|
|
||||||
end
|
|
||||||
y += 1
|
|
||||||
end
|
|
||||||
z += 1
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
def self._load(foo)
|
def self._load(foo)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -68,8 +68,8 @@ class Sprite_Picture < Sprite
|
||||||
self.ox = self.bitmap.width / 2
|
self.ox = self.bitmap.width / 2
|
||||||
self.oy = self.bitmap.height / 2
|
self.oy = self.bitmap.height / 2
|
||||||
# Set sprite coordinates
|
# Set sprite coordinates
|
||||||
self.x = Graphics.width + @picture.x
|
self.x = Graphics.width / 2 + @picture.x
|
||||||
self.y = Graphics.height + @picture.y
|
self.y = Graphics.height / 2 + @picture.y
|
||||||
end
|
end
|
||||||
self.z = @picture.number
|
self.z = @picture.number
|
||||||
# Set zoom rate, opacity level, and blend method
|
# Set zoom rate, opacity level, and blend method
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue