More Rubocop changes

This commit is contained in:
Maruno17
2022-02-13 00:57:54 +00:00
parent cca5989746
commit f68e699cc9
108 changed files with 708 additions and 808 deletions

View File

@@ -193,14 +193,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)
@@ -215,7 +215,7 @@ class Window_PokemonOption < Window_DrawableCommand
when NumberOption
value = _INTL("Type {1}/{2}", @options[index].lowest_value + self[index],
@options[index].highest_value - @options[index].lowest_value + 1)
xpos = optionwidth + rect.x * 2
xpos = optionwidth + (rect.x * 2)
pbDrawShadowText(self.contents, xpos, rect.y, optionwidth, rect.height, value,
SEL_VALUE_BASE_COLOR, SEL_VALUE_SHADOW_COLOR, 1)
when SliderOption