Epic mode option in Practise Tools

This commit is contained in:
Rikko 2023-06-15 23:05:11 +05:30
parent 12913051a7
commit 7ab457676d
2 changed files with 10 additions and 3 deletions

View file

@ -606,6 +606,7 @@
}
],
"versions": {
"1.1.0": null,
"1.0.0": {
"api_version": 7,
"commit_sha": "800125c",

View file

@ -1348,8 +1348,8 @@ class OthersPracticeTab(PracticeTab):
self.count = 1
self.parent_widget = None
self.activity = _ba.get_foreground_host_activity()
self.setting_name = (['Pause On Window', 'Invincible'])
self.config = (['pause', 'invincible'])
self.setting_name = (['Pause On Window', 'Invincible', 'Epic Mode'])
self.config = (['pause', 'invincible', 'epic'])
def on_activate(
self,
@ -1462,6 +1462,12 @@ class OthersPracticeTab(PracticeTab):
i.actor.node.invincible = False
except:
pass
elif setting == 2:
activity = _ba.get_foreground_host_activity()
if value:
activity.globalsnode.slow_motion = True
else:
activity.globalsnode.slow_motion = False
class PracticeWindow(ba.Window):