mirror of
https://github.com/bombsquad-community/plugin-manager.git
synced 2025-10-08 14:54:36 +00:00
Rename bastd stuff for colorscheme plugin
This commit is contained in:
parent
fe2fac53df
commit
43a07bab6e
2 changed files with 6 additions and 11 deletions
|
|
@ -223,12 +223,7 @@
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"versions": {
|
"versions": {
|
||||||
"2.0.0": {
|
"2.0.0": null,
|
||||||
"api_version": 8,
|
|
||||||
"commit_sha": "efa4149",
|
|
||||||
"released_on": "16-05-2023",
|
|
||||||
"md5sum": "febad34d0105335403daacbb63fc5054"
|
|
||||||
},
|
|
||||||
"1.2.3": {
|
"1.2.3": {
|
||||||
"api_version": 7,
|
"api_version": 7,
|
||||||
"commit_sha": "7753b87",
|
"commit_sha": "7753b87",
|
||||||
|
|
@ -715,4 +710,4 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ import _babase
|
||||||
import babase
|
import babase
|
||||||
import bauiv1 as bui
|
import bauiv1 as bui
|
||||||
|
|
||||||
from bastd.ui.colorpicker import ColorPicker
|
from bauiv1lib.colorpicker import ColorPicker
|
||||||
|
|
||||||
original_buttonwidget = bui.buttonwidget
|
original_buttonwidget = bui.buttonwidget
|
||||||
original_containerwidget = bui.containerwidget
|
original_containerwidget = bui.containerwidget
|
||||||
|
|
@ -144,9 +144,9 @@ class ColorSchemeWindow(bui.Window):
|
||||||
self.draw_ui()
|
self.draw_ui()
|
||||||
|
|
||||||
def draw_ui(self):
|
def draw_ui(self):
|
||||||
# Most of the stuff here for drawing the UI is referred from the
|
# NOTE: Most of the stuff here for drawing the UI is referred from the
|
||||||
# game's bastd/ui/profile/edit.py, and so there could be some
|
# legacy (1.6 < version <= 1.7.19) game's bastd/ui/profile/edit.py, and
|
||||||
# cruft here due to my oversight.
|
# so there could be some cruft here due to my oversight.
|
||||||
uiscale = bui.app.classic.ui.uiscale
|
uiscale = bui.app.classic.ui.uiscale
|
||||||
self._width = width = 480.0 if uiscale is babase.UIScale.SMALL else 380.0
|
self._width = width = 480.0 if uiscale is babase.UIScale.SMALL else 380.0
|
||||||
self._x_inset = x_inset = 40.0 if uiscale is babase.UIScale.SMALL else 0.0
|
self._x_inset = x_inset = 40.0 if uiscale is babase.UIScale.SMALL else 0.0
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue