mirror of
https://github.com/cyberarm/cyberarm_engine.git
synced 2025-12-18 05:52:34 +00:00
Sliders work better, fixed CheckBox not passing along options hash, Text width/height now accept a string, changed EditLine text selection color, temporary back to back gui recalculations to fix positioning errors until Container#layout can safely be called after determining element width and height.
This commit is contained in:
21
lib/cyberarm_engine/stats.rb
Normal file
21
lib/cyberarm_engine/stats.rb
Normal file
@@ -0,0 +1,21 @@
|
||||
module CyberarmEngine
|
||||
class Stats
|
||||
@@hash = {
|
||||
gui_recalculations_last_frame: 0
|
||||
}
|
||||
|
||||
def self.get(key)
|
||||
@@hash.dig(key)
|
||||
end
|
||||
|
||||
def self.increment(key, n)
|
||||
@@hash[key] += n
|
||||
end
|
||||
|
||||
def self.clear
|
||||
@@hash.each do |key, value|
|
||||
@@hash[key] = 0
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user