-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #81 from DRincs-Productions/79-move-into-renpy-che…
…ckifisactivebytag 79 move into renpy checkifisactivebytag
- Loading branch information
Showing
14 changed files
with
136 additions
and
102 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
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 |
---|---|---|
@@ -1,6 +1,17 @@ | ||
# https://github.com/DRincs-Productions/renpy-utility-lib/wiki/Flags | ||
# Wiki: https://github.com/DRincs-Productions/renpy-utility-lib/wiki/Flags | ||
define flag_keys = [ | ||
# Block all spend_time | ||
"not_can_spend_time", | ||
"goout", | ||
"weekend", | ||
] | ||
|
||
# Wiki: https://github.com/DRincs-Productions/renpy-utility-lib/wiki/Flags#update_current_flags | ||
label update_current_flags_custom: | ||
# Custom code | ||
$ log_info("is_weekend: " + str(tm.is_weekend)) | ||
if tm.is_weekend: | ||
$ set_flags("weekend", True) | ||
else: | ||
$ set_flags("weekend", False) | ||
return |
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
Submodule renpy_utility_tool
updated
3 files
+7 −0 | flags_system.rpy | |
+3 −3 | log_system.rpy | |
+13 −0 | timed_menu.rpy |
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,29 @@ | ||
from typing import Union | ||
|
||
from pythonpackages.renpy_utility.flags import * | ||
from pythonpackages.renpy_utility.renpy_custom_log import * | ||
from pythonpackages.renpy_utility.utility import * | ||
|
||
|
||
class DisabledClass(object): | ||
def __init__( | ||
self, | ||
disabled: Union[bool, str] = False, | ||
): | ||
self.disabled = disabled | ||
|
||
@property | ||
def disabled(self) -> Union[bool, str]: | ||
"""Disabled""" | ||
return self._disabled | ||
|
||
@disabled.setter | ||
def disabled(self, value: Union[bool, str]): | ||
self._disabled = value | ||
|
||
def is_disabled(self, flags: dict[str, bool] = {}) -> bool: | ||
""" "If disabled is a string: get the value of the flags system""" | ||
if isinstance(self.disabled, str): | ||
return get_flags(self.disabled, flags) | ||
else: | ||
return self.disabled |
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
Oops, something went wrong.