mirror of
https://forgejo.xatacraft.ru/Sunshine/mkxp-sunshine.git
synced 2026-08-22 23:06:18 +00:00
Changed password input colors
This lets the number input for the PC be multicolored, just like the number is everywhere else.
This commit is contained in:
parent
33d6f38f96
commit
8ac51ee38a
1 changed files with 17 additions and 2 deletions
|
|
@ -87,8 +87,23 @@ class Window_InputNumber < Window_Base
|
||||||
self.contents.clear
|
self.contents.clear
|
||||||
self.contents.font.color = normal_color
|
self.contents.font.color = normal_color
|
||||||
s = sprintf("%0*d", @digits_max, @number)
|
s = sprintf("%0*d", @digits_max, @number)
|
||||||
for i in 0...@digits_max
|
if($game_switches[179] == true)
|
||||||
self.contents.draw_text(i * @cursor_width + 4, 0, 32, 32, s[i,1])
|
for i in 0...@digits_max
|
||||||
|
case i
|
||||||
|
when 0
|
||||||
|
self.contents.font.color = Window_Base.text_color(1)
|
||||||
|
when 1
|
||||||
|
self.contents.font.color = Window_Base.text_color(2)
|
||||||
|
when 2
|
||||||
|
self.contents.font.color = Window_Base.text_color(4)
|
||||||
|
when 3
|
||||||
|
self.contents.font.color = Window_Base.text_color(3)
|
||||||
|
end
|
||||||
|
self.contents.draw_text(i * @cursor_width + 4, 0, 32, 32, s[i,1])
|
||||||
|
end
|
||||||
|
for i in 0...@digits_max
|
||||||
|
self.contents.draw_text(i * @cursor_width + 4, 0, 32, 32, s[i,1])
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue