mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-08 21:54:58 +00:00
More or less standardised separator comments in the code
This commit is contained in:
@@ -1,8 +1,11 @@
|
||||
#===============================================================================
|
||||
#
|
||||
#===============================================================================
|
||||
module BattleAnimationEditor
|
||||
module_function
|
||||
|
||||
#=============================================================================
|
||||
# Controls
|
||||
# Controls.
|
||||
#=============================================================================
|
||||
class Window_Menu < Window_CommandPokemon
|
||||
def initialize(commands, x, y)
|
||||
@@ -42,7 +45,7 @@ module BattleAnimationEditor
|
||||
end
|
||||
|
||||
#=============================================================================
|
||||
# Clipboard
|
||||
# Clipboard.
|
||||
#=============================================================================
|
||||
module Clipboard
|
||||
@data = nil
|
||||
@@ -95,7 +98,7 @@ module BattleAnimationEditor
|
||||
end
|
||||
|
||||
#=============================================================================
|
||||
# Sprite sheet scrolling bar
|
||||
# Sprite sheet scrolling bar.
|
||||
#=============================================================================
|
||||
class AnimationWindow < Sprite
|
||||
attr_reader :animbitmap
|
||||
@@ -247,7 +250,7 @@ module BattleAnimationEditor
|
||||
end
|
||||
|
||||
#=============================================================================
|
||||
# Cel sprite
|
||||
# Cel sprite.
|
||||
#=============================================================================
|
||||
class InvalidatableSprite < Sprite
|
||||
def initialize(viewport = nil)
|
||||
@@ -353,7 +356,7 @@ module BattleAnimationEditor
|
||||
end
|
||||
|
||||
#=============================================================================
|
||||
# Canvas
|
||||
# Canvas.
|
||||
#=============================================================================
|
||||
class AnimationCanvas < Sprite
|
||||
attr_reader :viewport
|
||||
@@ -575,7 +578,7 @@ module BattleAnimationEditor
|
||||
end
|
||||
end
|
||||
|
||||
# Clears all items in the frame except locked items
|
||||
# Clears all items in the frame except locked items.
|
||||
def clearFrame(frame)
|
||||
if frame >= 0 && frame < @animation.length
|
||||
PBAnimation::MAX_SPRITES.times do |i|
|
||||
@@ -620,7 +623,7 @@ module BattleAnimationEditor
|
||||
self.invalidate
|
||||
end
|
||||
|
||||
# This frame becomes a copy of the previous frame
|
||||
# This frame becomes a copy of the previous frame.
|
||||
def pasteLast
|
||||
copyFrame(@currentframe - 1, @currentframe) if @currentframe > 0
|
||||
end
|
||||
@@ -930,7 +933,7 @@ module BattleAnimationEditor
|
||||
end
|
||||
|
||||
#=============================================================================
|
||||
# Window classes
|
||||
# Window classes.
|
||||
#=============================================================================
|
||||
class BitmapDisplayWindow < SpriteWindow_Base
|
||||
attr_reader :bitmapname
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
#===============================================================================
|
||||
#
|
||||
#===============================================================================
|
||||
module BattleAnimationEditor
|
||||
#=============================================================================
|
||||
#
|
||||
|
||||
@@ -1,8 +1,11 @@
|
||||
#===============================================================================
|
||||
#
|
||||
#===============================================================================
|
||||
module BattleAnimationEditor
|
||||
module_function
|
||||
|
||||
#=============================================================================
|
||||
# Paths and interpolation
|
||||
# Paths and interpolation.
|
||||
#=============================================================================
|
||||
class ControlPointSprite < Sprite
|
||||
attr_accessor :dragging
|
||||
|
||||
@@ -1,8 +1,11 @@
|
||||
#===============================================================================
|
||||
#
|
||||
#===============================================================================
|
||||
module BattleAnimationEditor
|
||||
module_function
|
||||
|
||||
#=============================================================================
|
||||
# Importing and exporting
|
||||
# Importing and exporting.
|
||||
#=============================================================================
|
||||
def pbRgssChdir(dir)
|
||||
RTP.eachPathFor(dir) { |path| Dir.chdir(path) { yield } }
|
||||
@@ -84,7 +87,7 @@ module BattleAnimationEditor
|
||||
end
|
||||
|
||||
#=============================================================================
|
||||
# Format conversion
|
||||
# Format conversion.
|
||||
#=============================================================================
|
||||
def pbConvertAnimToNewFormat(textdata)
|
||||
needconverting = false
|
||||
|
||||
@@ -1,8 +1,11 @@
|
||||
#===============================================================================
|
||||
#
|
||||
#===============================================================================
|
||||
module BattleAnimationEditor
|
||||
module_function
|
||||
|
||||
#=============================================================================
|
||||
# Mini battle scene
|
||||
# Mini battle scene.
|
||||
#=============================================================================
|
||||
class MiniBattler
|
||||
attr_accessor :index
|
||||
@@ -24,7 +27,7 @@ module BattleAnimationEditor
|
||||
end
|
||||
|
||||
#=============================================================================
|
||||
# Pop-up menus for buttons in bottom menu
|
||||
# Pop-up menus for buttons in bottom menu.
|
||||
#=============================================================================
|
||||
def pbSelectAnim(canvas, animwin)
|
||||
animfiles = []
|
||||
@@ -183,7 +186,7 @@ module BattleAnimationEditor
|
||||
end
|
||||
|
||||
#=============================================================================
|
||||
# Pop-up menus for individual cels
|
||||
# Pop-up menus for individual cels.
|
||||
#=============================================================================
|
||||
def pbChooseNum(cel)
|
||||
ret = cel
|
||||
@@ -371,7 +374,7 @@ module BattleAnimationEditor
|
||||
end
|
||||
|
||||
#=============================================================================
|
||||
# Pop-up menus for buttons in right hand menu
|
||||
# Pop-up menus for buttons in right hand menu.
|
||||
#=============================================================================
|
||||
def pbTimingList(canvas)
|
||||
commands = []
|
||||
@@ -946,7 +949,7 @@ module BattleAnimationEditor
|
||||
end
|
||||
|
||||
#=============================================================================
|
||||
# Main
|
||||
# Main.
|
||||
#=============================================================================
|
||||
def animationEditorMain(animation)
|
||||
viewport = Viewport.new(0, 0, Settings::SCREEN_WIDTH + 288, Settings::SCREEN_HEIGHT + 288)
|
||||
@@ -1152,7 +1155,7 @@ module BattleAnimationEditor
|
||||
end
|
||||
|
||||
#===============================================================================
|
||||
# Start
|
||||
# Start.
|
||||
#===============================================================================
|
||||
def pbAnimationEditor
|
||||
pbBGMStop
|
||||
|
||||
Reference in New Issue
Block a user