Hi all!
I am trying to add a few pixels of vertical spacing between menu items in the main command menu. I'm using the CP Command settings, but after lots and lots of searching through the scripts I have come up short. The closest I found was this (line 137):
def menu_luna_draw_item(index) ext = @list[index][:ext] set_text_options(ext) rect = item_rect_for_text(index) item = RPG::BaseItem.new item.icon_index = ext[:icon] || 0 item.name = command_name(index) ic = (ext[:icon] && (item.icon_index >= 0)) ? 24 : 0 bit = Bitmap.new(rect.width - ic, rect.height) x = (rect.width - bit.text_size(item.name).width - ic) / 2 y = (rect.height - contents.font.size) / 2 align = ext[:font_align] || alignment draw_item_name(item, rect.x + x * align - 24 + ic, rect.y + y, command_enabled?(index), rect.width - ic) end But I'm not sure if this is what I'm looking for, or if I'm missing something obvious, or anything really. If this is possible, please put me out of my misery.
Thanks!
I am trying to add a few pixels of vertical spacing between menu items in the main command menu. I'm using the CP Command settings, but after lots and lots of searching through the scripts I have come up short. The closest I found was this (line 137):
def menu_luna_draw_item(index) ext = @list[index][:ext] set_text_options(ext) rect = item_rect_for_text(index) item = RPG::BaseItem.new item.icon_index = ext[:icon] || 0 item.name = command_name(index) ic = (ext[:icon] && (item.icon_index >= 0)) ? 24 : 0 bit = Bitmap.new(rect.width - ic, rect.height) x = (rect.width - bit.text_size(item.name).width - ic) / 2 y = (rect.height - contents.font.size) / 2 align = ext[:font_align] || alignment draw_item_name(item, rect.x + x * align - 24 + ic, rect.y + y, command_enabled?(index), rect.width - ic) end But I'm not sure if this is what I'm looking for, or if I'm missing something obvious, or anything really. If this is possible, please put me out of my misery.
Thanks!