Upd: Full template of CLICK_PRESERVATION

This commit is contained in:
LmeSzinc 2024-01-01 21:47:37 +08:00
parent a24fa14550
commit 5d6768ba80
3 changed files with 17 additions and 8 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

View File

@ -164,13 +164,22 @@ CLICK_NIHILITY = ButtonWrapper(
)
CLICK_PRESERVATION = ButtonWrapper(
name='CLICK_PRESERVATION',
share=Button(
file='./assets/share/rogue/path/CLICK_PRESERVATION.png',
area=(65, 340, 88, 405),
search=(45, 320, 108, 425),
color=(31, 34, 44),
button=(65, 340, 88, 405),
),
share=[
Button(
file='./assets/share/rogue/path/CLICK_PRESERVATION.png',
area=(65, 340, 88, 405),
search=(45, 320, 108, 425),
color=(31, 34, 44),
button=(65, 340, 88, 405),
),
Button(
file='./assets/share/rogue/path/CLICK_PRESERVATION.2.png',
area=(150, 345, 200, 395),
search=(130, 325, 220, 415),
color=(71, 75, 85),
button=(150, 345, 200, 395),
),
],
)
CLICK_REMEMBRANCE = ButtonWrapper(
name='CLICK_REMEMBRANCE',

View File

@ -59,7 +59,7 @@ class RoguePathHandler(RogueUI):
}
# Path list is sliding, expand search area
for b in buttons.values():
b.load_search(area_pad_around(b.area, pad=(-100, -5, -100, -5)))
b.load_search(area_pad_around(b.area, pad=(-150, -5, -150, -5)))
return buttons
@cached_property