mirror of
https://forgejo.xatacraft.ru/Sunshine/mkxp-sunshine.git
synced 2026-08-19 13:29:54 +00:00
glen and light update fix
This commit is contained in:
parent
0b3ae5954e
commit
45d4f10828
9 changed files with 33 additions and 8 deletions
|
|
@ -118,7 +118,7 @@ module RPG
|
|||
end
|
||||
def self.clear
|
||||
@cache = {}
|
||||
GC.start
|
||||
__send__(:gc) if respond_to?(:gc, true)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
|
|
@ -363,6 +363,12 @@ class Window_Settings
|
|||
:parameter => :controls_debug,
|
||||
:bind => Input::DEBUGACTION
|
||||
},
|
||||
{ :type => :sep },
|
||||
{
|
||||
:type => :action,
|
||||
:name => tr("Clear image cache"),
|
||||
:action => Proc.new { RPG::Cache.clear }
|
||||
}
|
||||
],
|
||||
}
|
||||
end
|
||||
|
|
|
|||
|
|
@ -760,6 +760,7 @@ class Window_Settings
|
|||
@func.call(@arg1, @arg2, @arg3, @arg4)
|
||||
end
|
||||
@settings_content.redraw_all
|
||||
$game_system.se_play($data_system.buzzer_se)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
@ -20,6 +20,9 @@ class Game_Picture
|
|||
attr_reader :blend_type # blend method
|
||||
attr_reader :tone # color tone
|
||||
attr_reader :angle # rotation angle
|
||||
|
||||
attr_accessor :width
|
||||
attr_accessor :height
|
||||
#--------------------------------------------------------------------------
|
||||
# * Object Initialization
|
||||
# number : picture number
|
||||
|
|
@ -45,6 +48,9 @@ class Game_Picture
|
|||
@tone_duration = 0
|
||||
@angle = 0
|
||||
@rotate_speed = 0
|
||||
|
||||
@width = 0
|
||||
@height = 0
|
||||
RPG::Mod.exec_hooks("hooks/Game_Picture/init", binding)
|
||||
end
|
||||
#--------------------------------------------------------------------------
|
||||
|
|
|
|||
|
|
@ -273,12 +273,16 @@ class Interpreter
|
|||
formated_script << "%3d | %s\n" % [index, line.chomp]
|
||||
end
|
||||
end
|
||||
result = "[EVENT] Failed to execute event script | " + event_info
|
||||
result << "\n-----------------------------------------\n"
|
||||
result = "\n[EVENT] Failed to execute event script | " + event_info
|
||||
result << "\n------------------------------------------\n"
|
||||
result << formated_script
|
||||
result << "-----------------------------------------\n"
|
||||
result << "------------------------------------------\n"
|
||||
result << e.message
|
||||
result << "\n-----------------------------------------\n"
|
||||
result << "\n----------------Backtrace-----------------\n"
|
||||
e.backtrace.each do |line|
|
||||
result << "#{line}\n"
|
||||
end
|
||||
result << "------------------------------------------\n"
|
||||
STDERR.puts result
|
||||
end
|
||||
return true
|
||||
|
|
|
|||
|
|
@ -9,10 +9,16 @@
|
|||
# save unless $game_switches[99] || ($game_system.map_interpreter.running? || !$scene.is_a?(Scene_Map))
|
||||
#end
|
||||
|
||||
class Float
|
||||
def to_f
|
||||
return self
|
||||
end
|
||||
end
|
||||
|
||||
begin
|
||||
RPG::Mod.exec_hooks("hooks/Main/start", binding)
|
||||
$console = Graphics.fullscreen
|
||||
Graphics.frame_rate = 60
|
||||
Graphics.frame_rate = 60
|
||||
Font.default_size = 20
|
||||
#debug shit
|
||||
Input.set_led(255, 150, 30)
|
||||
|
|
|
|||
|
|
@ -79,7 +79,7 @@ class Particle_Firefly < Particle
|
|||
@wavelength = rand(120..240)
|
||||
@vx = rand(0.2..1.5) * (rand(2) * 2 - 1)
|
||||
@vy = rand(0.2..1.5) * (rand(2) * 2 - 1)
|
||||
@light_power = 0.5
|
||||
@light_power = 1.0
|
||||
self.light_scale = 0.2
|
||||
self.scale = rand(0.02..0.08)
|
||||
@sprite.blend_type = 1
|
||||
|
|
|
|||
|
|
@ -259,7 +259,6 @@ class Scene_Map
|
|||
$game_temp.transition_processing = false
|
||||
# Execute transition
|
||||
if $game_temp.transition_name == ""
|
||||
update
|
||||
Graphics.transition(20)
|
||||
elsif $game_temp.transition_name == "black"
|
||||
@blackfade.visible = true
|
||||
|
|
|
|||
|
|
@ -80,5 +80,8 @@ class Sprite_Picture < Sprite
|
|||
# Set rotation angle and color tone
|
||||
self.angle = @picture.angle
|
||||
self.tone = @picture.tone
|
||||
|
||||
@picture.width = self.width * self.zoom_x
|
||||
@picture.height = self.height * self.zoom_y
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue