mirror of
https://github.com/cyberarm/cyberarm_engine.git
synced 2025-12-16 13:12:34 +00:00
Fixed passing nil for :enabled state as boolean causing it to be set as true instead of false
This commit is contained in:
@@ -13,9 +13,9 @@ module CyberarmEngine
|
|||||||
@options = options
|
@options = options
|
||||||
@block = block
|
@block = block
|
||||||
|
|
||||||
@focus = @options[:focus].nil? ? false : @options[:focus]
|
@focus = !@options.key?(:focus) ? false : @options[:focus]
|
||||||
@enabled = @options[:enabled].nil? ? true : @options[:enabled]
|
@enabled = !@options.key?(:enabled) ? true : @options[:enabled]
|
||||||
@visible = @options[:visible].nil? ? true : @options[:visible]
|
@visible = !@options.key?(:visible) ? true : @options[:visible]
|
||||||
@tip = @options[:tip] || ""
|
@tip = @options[:tip] || ""
|
||||||
|
|
||||||
@debug_color = @options[:debug_color].nil? ? Gosu::Color::RED : @options[:debug_color]
|
@debug_color = @options[:debug_color].nil? ? Gosu::Color::RED : @options[:debug_color]
|
||||||
|
|||||||
Reference in New Issue
Block a user