mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-04-01 01:10:35 +08:00
Upd: Storage filters (fixed #2254)
This commit is contained in:
@@ -12,12 +12,14 @@ from module.ui.ui import UI
|
|||||||
class StorageUI(UI):
|
class StorageUI(UI):
|
||||||
@cached_property
|
@cached_property
|
||||||
def storage_filter(self) -> Setting:
|
def storage_filter(self) -> Setting:
|
||||||
|
delta = (147 + 1 / 3, 57)
|
||||||
|
button_shape = (139, 42)
|
||||||
setting = Setting(name='STORAGE', main=self)
|
setting = Setting(name='STORAGE', main=self)
|
||||||
setting.add_setting(
|
setting.add_setting(
|
||||||
setting='rarity',
|
setting='rarity',
|
||||||
option_buttons=ButtonGrid(
|
option_buttons=ButtonGrid(
|
||||||
origin=(284, 446), delta=(158, 0), button_shape=(137, 38), grid_shape=(6, 1), name='FILTER_RARITY'),
|
origin=(219, 444), delta=delta, button_shape=button_shape, grid_shape=(7, 1), name='FILTER_RARITY'),
|
||||||
option_names=['all', 'common', 'rare', 'elite', 'super_rare', 'ultra_rare'],
|
option_names=['all', 'common', 'rare', 'elite', 'super_rare', 'ultra_rare', 'not_available'],
|
||||||
option_default='all'
|
option_default='all'
|
||||||
)
|
)
|
||||||
return setting
|
return setting
|
||||||
|
|||||||
Reference in New Issue
Block a user