Fixes
Moved get_user_name back to where it belongs, and added self to the wallpaper methods so they would be accessible from the event parser.
This commit is contained in:
parent
cea46f76e8
commit
2e73c99b8a
|
|
@ -16,18 +16,6 @@ class Game_Oneshot
|
||||||
@plight_timer = nil
|
@plight_timer = nil
|
||||||
@wallpaper = nil
|
@wallpaper = nil
|
||||||
end
|
end
|
||||||
end
|
|
||||||
|
|
||||||
module Wallpaper
|
|
||||||
def set_persistent(name)
|
|
||||||
$game_oneshot.wallpaper = name
|
|
||||||
Wallpaper.set(name)
|
|
||||||
end
|
|
||||||
|
|
||||||
def reset_persistent
|
|
||||||
$game_oneshot.wallpaper = nil
|
|
||||||
Wallpaper.reset
|
|
||||||
end
|
|
||||||
def self.get_user_name
|
def self.get_user_name
|
||||||
user_name = (Steam.enabled? ? Steam::USER_NAME : Oneshot::USER_NAME).split(/\s+/)
|
user_name = (Steam.enabled? ? Steam::USER_NAME : Oneshot::USER_NAME).split(/\s+/)
|
||||||
if user_name[0].casecmp('the') == 0 || user_name[0].casecmp('a') == 0
|
if user_name[0].casecmp('the') == 0 || user_name[0].casecmp('a') == 0
|
||||||
|
|
@ -37,3 +25,15 @@ module Wallpaper
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
module Wallpaper
|
||||||
|
def self.set_persistent(name)
|
||||||
|
$game_oneshot.wallpaper = name
|
||||||
|
Wallpaper.set(name)
|
||||||
|
end
|
||||||
|
|
||||||
|
def self.reset_persistent
|
||||||
|
$game_oneshot.wallpaper = nil
|
||||||
|
Wallpaper.reset
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue