[ci] auto-format

This commit is contained in:
Freaku17 2023-08-05 17:46:09 +00:00 committed by github-actions[bot]
parent 020cae53f1
commit c26342d320

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
@ -151,6 +152,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'))
@ -212,6 +214,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(
@ -225,11 +228,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