-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
382 additions
and
237 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,28 @@ | ||
extends Node | ||
|
||
var log_level = Logger.Level.DEBUG | ||
var version = "dev" : set = _set_version | ||
var _logger = Logger.new("Env") | ||
var log_level := Logger.Level.DEBUG | ||
var version := "dev" : set = _set_version | ||
var _logger := Logger.new("Env") | ||
var _demo := false | ||
|
||
func _ready(): | ||
if is_prod(): | ||
log_level = Logger.Level.INFO | ||
|
||
_logger.info("Running version %s on %s" % [version, OS.get_name()]) | ||
|
||
func _set_version(v: String) -> void: | ||
if v == "": return | ||
version = v | ||
|
||
if is_prod(): | ||
_demo = true # TODO: steam | ||
|
||
func is_prod() -> bool: | ||
return version != "dev" | ||
|
||
func is_web() -> bool: | ||
return OS.has_feature("web") | ||
|
||
func is_demo() -> bool: | ||
return _demo |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
@tool | ||
extends BaseButton | ||
|
||
var unfocus_color = Color("999999") | ||
|
||
func _ready(): | ||
modulate = unfocus_color | ||
mouse_entered.connect(func(): modulate = Color.WHITE) | ||
mouse_exited.connect(func(): modulate = unfocus_color) |
Oops, something went wrong.