mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-11 07:04:59 +00:00
Removed excessive draw command in Options menu
This commit is contained in:
@@ -333,7 +333,6 @@ class Window_PokemonOption < Window_DrawableCommand
|
|||||||
optionwidth = rect.width*9/20
|
optionwidth = rect.width*9/20
|
||||||
pbDrawShadowText(self.contents,rect.x,rect.y,optionwidth,rect.height,optionname,
|
pbDrawShadowText(self.contents,rect.x,rect.y,optionwidth,rect.height,optionname,
|
||||||
@nameBaseColor,@nameShadowColor)
|
@nameBaseColor,@nameShadowColor)
|
||||||
self.contents.draw_text(rect.x,rect.y,optionwidth,rect.height,optionname)
|
|
||||||
return if index==@options.length
|
return if index==@options.length
|
||||||
if @options[index].is_a?(EnumOption)
|
if @options[index].is_a?(EnumOption)
|
||||||
if @options[index].values.length>1
|
if @options[index].values.length>1
|
||||||
@@ -350,7 +349,6 @@ class Window_PokemonOption < Window_DrawableCommand
|
|||||||
(ivalue==self[index]) ? @selBaseColor : self.baseColor,
|
(ivalue==self[index]) ? @selBaseColor : self.baseColor,
|
||||||
(ivalue==self[index]) ? @selShadowColor : self.shadowColor
|
(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 += self.contents.text_size(value).width
|
||||||
xpos += spacing
|
xpos += spacing
|
||||||
ivalue += 1
|
ivalue += 1
|
||||||
|
|||||||
Reference in New Issue
Block a user