Item icons no longer overlap item name text
This commit is contained in:
parent
66ceab32d8
commit
7b0b8e0a9c
|
|
@ -22,3 +22,4 @@ oneshot_JA_2_merge-jpn.pot
|
||||||
oneshot_JA_2_ver4.pot
|
oneshot_JA_2_ver4.pot
|
||||||
oneshot_JA_2_fixed_ver3.pot
|
oneshot_JA_2_fixed_ver3.pot
|
||||||
oneshot_JA_2_ver3_checked.pot
|
oneshot_JA_2_ver3_checked.pot
|
||||||
|
oneshot_JA_Mariko1_WIP.pot
|
||||||
|
|
|
||||||
|
|
@ -80,7 +80,7 @@ class Window_Item < Window_Selectable
|
||||||
x = index % 2 * (self.width / COLUMN_MAX)
|
x = index % 2 * (self.width / COLUMN_MAX)
|
||||||
y = index / 2 * 32
|
y = index / 2 * 32
|
||||||
off = index == @index ? 2 : 0
|
off = index == @index ? 2 : 0
|
||||||
rect = Rect.new(x, y, self.width / COLUMN_MAX - 32, 32)
|
rect = Rect.new(x + 32, y, self.width / COLUMN_MAX - 64, 32)
|
||||||
self.contents.draw_text(rect, item.name, 1)
|
self.contents.draw_text(rect, item.name, 1)
|
||||||
|
|
||||||
bitmap = RPG::Cache.icon(item.icon_name)
|
bitmap = RPG::Cache.icon(item.icon_name)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue