fixed sliders math
This commit is contained in:
parent
e33d960823
commit
af900611f9
|
|
@ -483,8 +483,8 @@ class Window_Settings
|
||||||
end
|
end
|
||||||
|
|
||||||
def get_display_value()
|
def get_display_value()
|
||||||
percent = (self.value.to_f - @min_value.to_f) / @max_value.to_f
|
percent = (self.value - @min_value) * 100 / @max_value
|
||||||
(percent * 100.0).to_i.to_s + "%"
|
percent.to_s + "%"
|
||||||
end
|
end
|
||||||
|
|
||||||
def redraw()
|
def redraw()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue