mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-07 13:15:01 +00:00
More or less standardised separator comments in the code
This commit is contained in:
@@ -1,23 +1,28 @@
|
||||
#===============================================================================
|
||||
#
|
||||
#===============================================================================
|
||||
module ScreenPosHelper
|
||||
def self.pbScreenZoomX(ch)
|
||||
@heightcache = {}
|
||||
|
||||
module_function
|
||||
|
||||
def pbScreenZoomX(ch)
|
||||
return Game_Map::TILE_WIDTH / 32.0
|
||||
end
|
||||
|
||||
def self.pbScreenZoomY(ch)
|
||||
def pbScreenZoomY(ch)
|
||||
return Game_Map::TILE_HEIGHT / 32.0
|
||||
end
|
||||
|
||||
def self.pbScreenX(ch)
|
||||
def pbScreenX(ch)
|
||||
return ch.screen_x
|
||||
end
|
||||
|
||||
def self.pbScreenY(ch)
|
||||
def pbScreenY(ch)
|
||||
return ch.screen_y
|
||||
end
|
||||
|
||||
@heightcache = {}
|
||||
|
||||
def self.bmHeight(bm)
|
||||
def bmHeight(bm)
|
||||
h = @heightcache[bm]
|
||||
if !h
|
||||
bmap = AnimatedBitmap.new("Graphics/Characters/" + bm, 0)
|
||||
@@ -28,7 +33,7 @@ module ScreenPosHelper
|
||||
return h
|
||||
end
|
||||
|
||||
def self.pbScreenZ(ch, height = nil)
|
||||
def pbScreenZ(ch, height = nil)
|
||||
if height.nil?
|
||||
height = 0
|
||||
if ch.tile_id > 0
|
||||
|
||||
Reference in New Issue
Block a user