-
Notifications
You must be signed in to change notification settings - Fork 1
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 #7 from DRincs-Productions/6-tag-logic-for-enable-…
…or-disable-element tags system
- Loading branch information
Showing
2 changed files
with
16 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
default cur_tags_enabled = [] | ||
|
||
label update_tags: | ||
if renpy.has_label("update_tags_enabled"): | ||
call update_tags_enabled | ||
python: | ||
if not isinstance(cur_tags_enabled, list[str]): | ||
cur_tags_enabled = [] | ||
else: | ||
$ cur_tags_enabled = [] | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
label update_tags: | ||
# Custom code | ||
# ... | ||
# $ cur_tags_enabled = [ ... ] | ||
return |