mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-21 19:29:18 +08:00
Upd: Shop module
- Assume TW is unchanged
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import re
|
||||
|
||||
from module.base.button import ButtonGrid
|
||||
from module.base.decorator import cached_property
|
||||
from module.base.decorator import cached_property, Config
|
||||
from module.base.filter import Filter
|
||||
from module.base.timer import Timer
|
||||
from module.combat.assets import GET_ITEMS_1, GET_SHIP, GET_ITEMS_3
|
||||
@@ -97,13 +97,25 @@ class ShopBase(UI):
|
||||
return ''
|
||||
|
||||
@cached_property
|
||||
@Config.when(SERVER='tw')
|
||||
def shop_grid(self):
|
||||
"""
|
||||
Returns:
|
||||
ButtonGrid:
|
||||
"""
|
||||
shop_grid = ButtonGrid(
|
||||
origin=(477, 152), delta=(156, 214), button_shape=(96, 96), grid_shape=(5, 2), name='SHOP_GRID')
|
||||
origin=(476, 246), delta=(156, 213), button_shape=(98, 98), grid_shape=(5, 2), name='SHOP_GRID')
|
||||
return shop_grid
|
||||
|
||||
@cached_property
|
||||
@Config.when(SERVER=None)
|
||||
def shop_grid(self):
|
||||
"""
|
||||
Returns:
|
||||
ButtonGrid:
|
||||
"""
|
||||
shop_grid = ButtonGrid(
|
||||
origin=(476, 246), delta=(156, 213), button_shape=(98, 98), grid_shape=(5, 2), name='SHOP_GRID')
|
||||
return shop_grid
|
||||
|
||||
def shop_items(self):
|
||||
|
||||
Reference in New Issue
Block a user