Removed unnecessary text drawing in Options screen, misc tweaks

This commit is contained in:
Maruno17
2020-09-09 23:03:27 +01:00
parent ebbc4a0ad8
commit aaf5949c13
5 changed files with 22 additions and 23 deletions

View File

@@ -333,7 +333,6 @@ class Window_PokemonOption < Window_DrawableCommand
optionwidth = rect.width*9/20
pbDrawShadowText(self.contents,rect.x,rect.y,optionwidth,rect.height,optionname,
@nameBaseColor,@nameShadowColor)
self.contents.draw_text(rect.x,rect.y,optionwidth,rect.height,optionname)
return if index==@options.length
if @options[index].is_a?(EnumOption)
if @options[index].values.length>1
@@ -350,7 +349,6 @@ class Window_PokemonOption < Window_DrawableCommand
(ivalue==self[index]) ? @selBaseColor : self.baseColor,
(ivalue==self[index]) ? @selShadowColor : self.shadowColor
)
self.contents.draw_text(xpos,rect.y,optionwidth,rect.height,value)
xpos += self.contents.text_size(value).width
xpos += spacing
ivalue += 1
@@ -384,7 +382,6 @@ class Window_PokemonOption < Window_DrawableCommand
xpos = optionwidth+rect.x
pbDrawShadowText(self.contents,xpos,rect.y,optionwidth,rect.height,value,
@selBaseColor,@selShadowColor)
self.contents.draw_text(xpos,rect.y,optionwidth,rect.height,value)
end
end