mirror of
https://forgejo.xatacraft.ru/Sunshine/mkxp-sunshine.git
synced 2026-08-19 13:29:54 +00:00
fixed sliders math
This commit is contained in:
parent
e33d960823
commit
af900611f9
1 changed files with 2 additions and 2 deletions
|
|
@ -483,8 +483,8 @@ class Window_Settings
|
|||
end
|
||||
|
||||
def get_display_value()
|
||||
percent = (self.value.to_f - @min_value.to_f) / @max_value.to_f
|
||||
(percent * 100.0).to_i.to_s + "%"
|
||||
percent = (self.value - @min_value) * 100 / @max_value
|
||||
percent.to_s + "%"
|
||||
end
|
||||
|
||||
def redraw()
|
||||
|
|
|
|||
Loading…
Reference in a new issue