Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class NameBox
- #---------------------------------------------------------------------------
- # * Update balloon placement
- #---------------------------------------------------------------------------
- def update_balloon_placement
- self.y = screen_y_formula
- if @right_side
- self.x = @msg_window.x + Graphics.width - width - Buffer_X
- else
- self.x = @msg_window.x + Buffer_X
- end
- end
- #---------------------------------------------------------------------------
- # * Screen Y Formula
- #---------------------------------------------------------------------------
- def screen_y_formula
- if @msg_window.y - self.height + Buffer_Y < 0
- @msg_window.y + @msg_window.height - Buffer_Y
- else
- @msg_window.y - self.height + Buffer_Y
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment