=begin ツクール2000外字もどき ver 0.0.3 似ているユニコード記号文字に置き換えているだけです 対応文字$D 〜 $Z,$a 〜 $z ただし(b,d,e,rはなし) RPGツクールVXの標準フォントだと半角サイズになるので微妙です。 http://www.tktkgame.com/ =end module TKG module SymbolFont SYMBOL_CODES = { "D" => "\xe2\x98\x80", "E" => "\xe2\x98\xbd", "F" => "\xe2\x98\xbf", "G" => "\xe2\x99\x80", "H" => "\xe2\x99\x81", "I" => "\xe2\x99\x82", "J" => "\xe2\x99\x83", "K" => "\xe2\x99\x84", "L" => "\xe2\x99\x85", "M" => "\xe2\x99\x86", "N" => "\xe2\x99\x87", "O" => "\xe2\x99\x88", "P" => "\xe2\x99\x89", "Q" => "\xe2\x99\x8a", "R" => "\xe2\x99\x8b", "S" => "\xe2\x99\x8c", "T" => "\xe2\x99\x8d", "U" => "\xe2\x99\x8e", "V" => "\xe2\x99\x8f", "W" => "\xe2\x99\x90", "X" => "\xe2\x99\x91", "Y" => "\xe2\x99\x92", "Z" => "\xe2\x99\x93", "a" => "\xe2\x98\xba", "c" => "\xe2\x98\xb9", "f" => "\xe2\x99\xa4", "g" => "\xe2\x99\xa1", "h" => "\xe2\x99\xa2", "i" => "\xe2\x99\xa7", "j" => "\xe2\x99\xa0", "k" => "\xe2\x99\xa5", "l" => "\xe2\x99\xa6", "m" => "\xe2\x99\xa3", "n" => "\xe2\x98\xa0", "o" => "\xe2\x9c\x9d", "p" => "\xe2\x98\x80", "q" => "\xe2\x98\xbd", "r" => "\xe2\x80\xa2", "s" => "\xe2\x87\x91", "t" => "\xe2\x87\x92", "u" => "\xe2\x87\x93", "v" => "\xe2\x87\x90", "w" => "\xe2\x87\x97", "x" => "\xe2\x87\x98", "y" => "\xe2\x87\x99", "z" => "\xe2\x87\x96", } def self.gaiji(text) return unless text.is_a?(String) # ツクール2000外字もどき # unicodeの類似記号に置き換え text.gsub(/\$([D-Zacf-z])/) { SYMBOL_CODES[$1].to_s } end end end # メッセージウィンドウの文字列の置き換え class Window_Message alias :tkg_gaiji__convert_special_characters :convert_special_characters unless method_defined?(:tkg_gaiji__convert_special_characters) def convert_special_characters @text = TKG::SymbolFont.gaiji(@text) unless @text.nil? tkg_gaiji__convert_special_characters end end # ヘルプウィンドウの文字列の置き換え class Window_Help alias :tkg_gaiji__set_text :set_text unless method_defined?(:tkg_gaiji__set_text) def set_text(text, align = 0) text = TKG::SymbolFont.gaiji(text) unless text.nil? tkg_gaiji__set_text(text, align) end end # 名前の置き換え class RPG::Actor def name TKG::SymbolFont.gaiji(@name) end end class RPG::Class def name TKG::SymbolFont.gaiji(@name) end end class RPG::BaseItem def name TKG::SymbolFont.gaiji(@name) end def description TKG::SymbolFont.gaiji(@description) end end class RPG::Enemy def name TKG::SymbolFont.gaiji(@name) end end class RPG::State def name TKG::SymbolFont.gaiji(@name) end end