本帖最后由 余烬之中 于 2014-2-7 19:02 编辑
信手打的 没有测试 出错@我..
class Window_BattleLog Mo_241e43c6451d79ce81a94bc0b22c3ea5_FONTSIZE = 18 #设置字体大小 alias :mo_241e43c6451d79ce81a94bc0b22c3ea5_initialize :initialize def initialize mo_241e43c6451d79ce81a94bc0b22c3ea5_initialize self.y = Graphics.height - self.height #需要的话微调位置 dispose_back_bitmap dispose_back_sprite create_back_bitmap create_back_sprite end def line_height tmp = Bitmap.new(1,1) tmp.font.size = Mo_241e43c6451d79ce81a94bc0b22c3ea5_FONTSIZE a = tmp.text_size("Test").height tmp.dispose a end alias :mo_241e43c6451d79ce81a94bc0b22c3ea5_rfont_settings :reset_font_settings def reset_font_settings mo_241e43c6451d79ce81a94bc0b22c3ea5_rfont_settings contents.font.size = Mo_241e43c6451d79ce81a94bc0b22c3ea5_FONTSIZE end end
class Window_BattleLog
Mo_241e43c6451d79ce81a94bc0b22c3ea5_FONTSIZE = 18 #设置字体大小
alias :mo_241e43c6451d79ce81a94bc0b22c3ea5_initialize :initialize
def initialize
mo_241e43c6451d79ce81a94bc0b22c3ea5_initialize
self.y = Graphics.height - self.height #需要的话微调位置
dispose_back_bitmap
dispose_back_sprite
create_back_bitmap
create_back_sprite
end
def line_height
tmp = Bitmap.new(1,1)
tmp.font.size = Mo_241e43c6451d79ce81a94bc0b22c3ea5_FONTSIZE
a = tmp.text_size("Test").height
tmp.dispose
a
end
alias :mo_241e43c6451d79ce81a94bc0b22c3ea5_rfont_settings :reset_font_settings
def reset_font_settings
mo_241e43c6451d79ce81a94bc0b22c3ea5_rfont_settings
contents.font.size = Mo_241e43c6451d79ce81a94bc0b22c3ea5_FONTSIZE
end
end
|