[ci] auto-format

This commit is contained in:
Freaku17 2023-08-05 13:43:03 +00:00 committed by github-actions[bot]
parent 6bd0adc2c3
commit 59b55cb152

View file

@ -8,7 +8,8 @@
from __future__ import annotations
import _babase, babase
import _babase
import babase
import bascenev1 as bs
import bauiv1 as bui
from bauiv1lib.mainmenu import MainMenuWindow
@ -141,6 +142,7 @@ class Manual_camera_window:
on_activate_call=self._close)
bui.containerwidget(edit=self._root_widget,
cancel_button=self._done)
def _close(self):
bui.containerwidget(edit=self._root_widget,
transition=('out_scale'))
@ -202,6 +204,7 @@ class Manual_camera_window:
old_refresh_in_game = MainMenuWindow._refresh_in_game
def my_refresh_in_game(self, *args, **kwargs):
value = old_refresh_in_game.__get__(self)(*args, **kwargs)
camera_button = bui.buttonwidget(
@ -215,11 +218,14 @@ def my_refresh_in_game(self, *args, **kwargs):
on_activate_call=self._manual_camera)
return value
def _manual_camera(self):
bui.containerwidget(edit=self._root_widget, transition='out_scale')
Manual_camera_window()
# ba_meta export plugin
class ByDroopy(babase.Plugin):
def __init__(self):
MainMenuWindow._refresh_in_game = my_refresh_in_game