mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
Lots of rubocop
This commit is contained in:
@@ -195,14 +195,14 @@ class Window_PokemonOption < Window_DrawableCommand
|
||||
when EnumOption
|
||||
if @options[index].values.length > 1
|
||||
totalwidth = 0
|
||||
@options[index].values.each do |value|
|
||||
@options[index].each_value do |value|
|
||||
totalwidth += self.contents.text_size(value).width
|
||||
end
|
||||
spacing = (rect.width - rect.x - optionwidth - totalwidth) / (@options[index].values.length - 1)
|
||||
spacing = 0 if spacing < 0
|
||||
xpos = optionwidth + rect.x
|
||||
ivalue = 0
|
||||
@options[index].values.each do |value|
|
||||
@options[index].each_value do |value|
|
||||
pbDrawShadowText(self.contents, xpos, rect.y, optionwidth, rect.height, value,
|
||||
(ivalue == self[index]) ? SEL_VALUE_BASE_COLOR : self.baseColor,
|
||||
(ivalue == self[index]) ? SEL_VALUE_SHADOW_COLOR : self.shadowColor)
|
||||
@@ -325,7 +325,7 @@ class PokemonOption_Scene
|
||||
end
|
||||
|
||||
def pbOptions
|
||||
pbActivateWindow(@sprites, "option") {
|
||||
pbActivateWindow(@sprites, "option") do
|
||||
index = -1
|
||||
loop do
|
||||
Graphics.update
|
||||
@@ -342,7 +342,7 @@ class PokemonOption_Scene
|
||||
break if @sprites["option"].index == @options.length
|
||||
end
|
||||
end
|
||||
}
|
||||
end
|
||||
end
|
||||
|
||||
def pbEndScene
|
||||
|
||||
Reference in New Issue
Block a user