Storm Sync

This commit is contained in:
2020-07-18 18:20:24 -05:00
parent 1d7cd19b41
commit ce90284001
10 changed files with 157 additions and 45 deletions

View File

@@ -2,19 +2,31 @@ class IMICFPS
class HUD
class Widget
include CommonMethods
attr_reader :options
# Widget margin from screen edge
# or how much widget is pushed in
def self.margin
@@margin ||= 10
end
def self.padding=(n)
@@padding = n
end
# Widget element padding
def self.padding
@@margin ||= 10
end
def self.padding=(n)
@@padding = n
end
attr_reader :options
def initialize(options = {})
@options = options
@player = options[:player]
# Widget margin from screen edge
# or how much widget is pushed in
@margin = 10
# Widget element padding
@padding = 10
setup
end