Skip to content

Commit

Permalink
Merge pull request #7 from DRincs-Productions/6-tag-logic-for-enable-…
Browse files Browse the repository at this point in the history
…or-disable-element

tags system
  • Loading branch information
BlackRam-oss committed Sep 20, 2023
2 parents c4132db + 647d1da commit 89a0987
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
11 changes: 11 additions & 0 deletions game/renpy_utility_tool/tags_system.rpy
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
5 changes: 5 additions & 0 deletions game/tags.rpy
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
label update_tags:
# Custom code
# ...
# $ cur_tags_enabled = [ ... ]
return

0 comments on commit 89a0987

Please sign in to comment.