Hi guys 🙂
So I'd like a simple border around the character's faces that are displayed in battle/in messages, but also I don't want to spend a billion hours in photoshop. I found this script that adds borders to icons, and tried changing it, but had zero luck. Does anyone think they could whip up a script that just automatically adds a border around the faces?
I'm using Yanfly's battle engine, which already overwrites the 'draw face' method:
def draw_face(face_name, face_index, dx, dy, enabled = true) bitmap = Cache.face(face_name) fx = [(96 - item_rect(0).width + 1) / 2, 0].max fy = face_index / 4 * 96 + 2 fw = [item_rect(0).width - 4, 92].min rect = Rect.new(fx, fy, fw, 92) rect = Rect.new(face_index % 4 * 96 + fx, fy, fw, 92) contents.blt(dx, dy, bitmap, rect, enabled ? 255 : translucent_alpha) bitmap.dispose endIf anyone could give me a hand with this, I'd super appreciate it 🙂
So I'd like a simple border around the character's faces that are displayed in battle/in messages, but also I don't want to spend a billion hours in photoshop. I found this script that adds borders to icons, and tried changing it, but had zero luck. Does anyone think they could whip up a script that just automatically adds a border around the faces?
I'm using Yanfly's battle engine, which already overwrites the 'draw face' method:
def draw_face(face_name, face_index, dx, dy, enabled = true) bitmap = Cache.face(face_name) fx = [(96 - item_rect(0).width + 1) / 2, 0].max fy = face_index / 4 * 96 + 2 fw = [item_rect(0).width - 4, 92].min rect = Rect.new(fx, fy, fw, 92) rect = Rect.new(face_index % 4 * 96 + fx, fy, fw, 92) contents.blt(dx, dy, bitmap, rect, enabled ? 255 : translucent_alpha) bitmap.dispose endIf anyone could give me a hand with this, I'd super appreciate it 🙂