mirror of
https://forgejo.xatacraft.ru/Sunshine/mkxp-sunshine.git
synced 2026-08-19 21:39:57 +00:00
gamepad color change based on map
This commit is contained in:
parent
83fcae68bc
commit
34fa296f88
2 changed files with 4 additions and 1 deletions
|
|
@ -61,3 +61,4 @@ Added 16:10 support
|
|||
SecurityManager can detect Flatpak and Snap now
|
||||
Added 3:2 support
|
||||
Modloader settings
|
||||
supported gamepads can now change LED color based on map
|
||||
|
|
@ -58,7 +58,8 @@ class Scene_Map
|
|||
@blackfade.bitmap.fill_rect(0, 0, Graphics.width, Graphics.height, Color.new(0, 0, 0))
|
||||
@blackfade.visible = false
|
||||
@blackfade.z = 9999
|
||||
|
||||
color = GamepadMapColors::COLORS[$game_map.map_id] || GamepadMapColors::SUN
|
||||
Input.set_led(color.red, color.green, color.blue)
|
||||
RPG::Mod.exec_hooks("hooks/Scene_Map/main", binding)
|
||||
|
||||
# Transition run
|
||||
|
|
@ -391,6 +392,7 @@ class Scene_Map
|
|||
@spriteset = Spriteset_Map.new
|
||||
# Update map (run parallel process event)
|
||||
$game_map.update
|
||||
Input.set_led(GamepadMapColors::COLORS[$game_map.map_id].red, GamepadMapColors::COLORS[$game_map.map_id].green, GamepadMapColors::COLORS[$game_map.map_id].blue)
|
||||
@spriteset.update
|
||||
# Run automatic change for BGM and BGS set on the map
|
||||
$game_map.autoplay
|
||||
|
|
|
|||
Loading…
Reference in a new issue