사진 보시는 것 처럼
레벨이 두자리 수가 되면서 저렇게 쪼그라 들듯이 붙어버리구요
체력, 마력 << 이 글씨도 그렇네요
체력도 높아지면 쪼그라들길래... 보기 흉해서 일부러 체력도 대폭 낮춘건데
다른부분이 또그러네요 ㅠㅠ
이거 해결 방법 없을까요??? 부탁드립니다
폰트 변경해서 바른고딕 쓰고있는데 폰트 문제는 아닌듯 한데요...ㅠㅠ
첨부 '1' |
---|
사진 보시는 것 처럼
레벨이 두자리 수가 되면서 저렇게 쪼그라 들듯이 붙어버리구요
체력, 마력 << 이 글씨도 그렇네요
체력도 높아지면 쪼그라들길래... 보기 흉해서 일부러 체력도 대폭 낮춘건데
다른부분이 또그러네요 ㅠㅠ
이거 해결 방법 없을까요??? 부탁드립니다
폰트 변경해서 바른고딕 쓰고있는데 폰트 문제는 아닌듯 한데요...ㅠㅠ
정말!! 감사합니다
이렇게 스크립트에 새로 추가 해주니까
정보 창에 들어가서 볼때는 제대로 표기가 됩니다.
그런데 메뉴창에서는 여전히 레벨 숫자와 체력 글씨가 작은데 이건 어떻게 하나요?ㅠㅠ
그렇다면 차라리 가장 상위 클래스인 Window_Base의 메서드를 재정의합시다.
그렇게 되면 Window_Status도 WIndow_MenuStatus도 Window_BattleStatus도 기타 등등도 전부 Window_Base의 메서드를 받아서 이용하게 됩니다.
지금까지 제가 올린 2개의 스크립트를 지우시고 아래의 스크립트 하나만 추가해주세요.
module Window_9qxb6
#자주 쓰여서 그냥 모듈의 상수로 집어 넣었습니다.
FONT_SIZE_SMALL = 20 #<= 적당한 수로 수정해주세요.
end
class Window_Base < Window
def draw_actor_hp(actor, x, y, width = 124, font_size = Window_9qxb6::FONT_SIZE_SMALL)
contents.font.size = font_size
draw_gauge(x, y, width, actor.hp_rate, hp_gauge_color1, hp_gauge_color2)
change_color(system_color)
draw_text(x, y, 45, line_height, Vocab::hp_a) #원래는 30
draw_current_and_max_values(x, y, width, actor.hp, actor.mhp,
hp_color(actor), normal_color)
contents.font.size = Font.default_size
end
def draw_actor_mp(actor, x, y, width = 124, font_size = Window_9qxb6::FONT_SIZE_SMALL)
contents.font.size = font_size
draw_gauge(x, y, width, actor.mp_rate, mp_gauge_color1, mp_gauge_color2)
change_color(system_color)
draw_text(x, y, 45, line_height, Vocab::mp_a) #원래는 30
draw_current_and_max_values(x, y, width, actor.mp, actor.mmp,
mp_color(actor), normal_color)
contents.font.size = Font.default_size
end
def draw_actor_tp(actor, x, y, width = 124, font_size = Window_9qxb6::FONT_SIZE_SMALL)
contents.font.size = font_size
draw_gauge(x, y, width, actor.tp_rate, tp_gauge_color1, tp_gauge_color2)
change_color(system_color)
draw_text(x, y, 45, line_height, Vocab::tp_a) #원래는 30
change_color(tp_color(actor))
draw_text(x + width - 42, y, 42, line_height, actor.tp.to_i, 2)
contents.font.size = Font.default_size
end
def draw_actor_level(actor, x, y, font_size = Window_9qxb6::FONT_SIZE_SMALL)
contents.font.size = font_size
change_color(system_color)
draw_text(x, y, 32, line_height, Vocab::level_a)
change_color(normal_color)
draw_text(x + 32, y, 36, line_height, actor.level, 2) #원래 width는 24
contents.font.size = Font.default_size
end
end
처음부터 이렇게 할껄 그랬나봐요.
Sketchbook5, 스케치북5
Sketchbook5, 스케치북5
스크립트로 기본 폰트 사이즈를 크게 하셨군요. '체력', '마력', 레벨 등의 정보를 그릴 때 폰트 사이즈를 지정해주지 않으면 전부 기본 폰트 사이즈를 따라가기 때문에 이런 일이 생깁니다.
그러므로 일단 이 정보들만을 위해서 폰트 사이즈를 따로 지정해줍시다.
"contents.font.size = 20" <= 임의로 20을 넣었지만 적당한 값을 입력하셔도 됩니다. 원래 폰트 보다는 작아야겠죠?