mirror of
https://github.com/ClovertaTheTrilobita/SanYeCao-Nonebot.git
synced 2026-04-01 22:04:51 +00:00
feature(slpatoon): 添加真格游戏模式
This commit is contained in:
parent
a7274b84b3
commit
76a4926995
7 changed files with 30 additions and 1 deletions
|
|
@ -5,7 +5,8 @@ from src.clover_splatoon.stages import RegularScheduleItem, BankaraScheduleItem,
|
|||
from src.configs.path_config import temp_path
|
||||
from nonebot_plugin_htmlrender import template_to_pic
|
||||
from playwright.async_api import async_playwright
|
||||
from src.clover_splatoon.splatoon_data import stage3
|
||||
from src.clover_splatoon.splatoon_data import stage3, game_types3
|
||||
|
||||
|
||||
async def save_img(data: bytes):
|
||||
|
||||
|
|
@ -43,6 +44,17 @@ async def generate_splatoon_report_image(regular: RegularScheduleItem, bankara:
|
|||
]
|
||||
]
|
||||
|
||||
bankara_vs_rule = [
|
||||
[
|
||||
game_types3[str(bankara.bankaraMatchSettings[0].vsRule.rule)]["image"],
|
||||
game_types3[str(bankara.bankaraMatchSettings[0].vsRule.rule)]["cname"],
|
||||
],
|
||||
[
|
||||
game_types3[str(bankara.bankaraMatchSettings[1].vsRule.rule)]["image"],
|
||||
game_types3[str(bankara.bankaraMatchSettings[1].vsRule.rule)]["cname"],
|
||||
]
|
||||
]
|
||||
|
||||
|
||||
bankara_list_challenge = [
|
||||
[
|
||||
|
|
@ -78,6 +90,7 @@ async def generate_splatoon_report_image(regular: RegularScheduleItem, bankara:
|
|||
|
||||
data = {
|
||||
"data_regular": regular_list,
|
||||
"data_bankara_vs_rule": bankara_vs_rule,
|
||||
"data_bankara_challenge": bankara_list_challenge,
|
||||
"data_bankara_open": bankara_list_open,
|
||||
"data_coop": coop_list,
|
||||
|
|
|
|||
|
|
@ -40,6 +40,7 @@
|
|||
</div>
|
||||
<div class="three-border-bankara">
|
||||
<div class="moyu-title"><img src="./res/icon/rank.png" class="title-img">蛮颓比赛(挑战)</div>
|
||||
<div class="moyu-title-sub"><img src="{{ data.data_bankara_vs_rule[0][0] }}" class="title-img">{{ data.data_bankara_vs_rule[0][1] }}</div>
|
||||
<ul class="match-list">
|
||||
{% for match in data.data_bankara_challenge %}
|
||||
|
||||
|
|
@ -54,6 +55,7 @@
|
|||
</div>
|
||||
<div class="three-border-bankara">
|
||||
<div class="moyu-title"><img src="./res/icon/rank.png" class="title-img">蛮颓比赛(开放)</div>
|
||||
<div class="moyu-title-sub"><img src="{{ data.data_bankara_vs_rule[1][0] }}" class="title-img">{{ data.data_bankara_vs_rule[1][1] }}</div>
|
||||
<ul class="match-list">
|
||||
{% for match in data.data_bankara_open %}
|
||||
|
||||
|
|
|
|||
BIN
src/clover_splatoon/resources/res/icon/AREA.png
Normal file
BIN
src/clover_splatoon/resources/res/icon/AREA.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.4 KiB |
BIN
src/clover_splatoon/resources/res/icon/CLAM.png
Normal file
BIN
src/clover_splatoon/resources/res/icon/CLAM.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.5 KiB |
BIN
src/clover_splatoon/resources/res/icon/GOAL.png
Normal file
BIN
src/clover_splatoon/resources/res/icon/GOAL.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.9 KiB |
BIN
src/clover_splatoon/resources/res/icon/LOFT.png
Normal file
BIN
src/clover_splatoon/resources/res/icon/LOFT.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.1 KiB |
|
|
@ -16,6 +16,20 @@ game_types = {
|
|||
'塔': '24px-Mode_Icon_Tower_Control.png'
|
||||
}
|
||||
|
||||
game_types3 = {
|
||||
"AREA": {"image": "./res/icon/AREA.png", "cname": "真格区域"},
|
||||
"CLAM": {
|
||||
"image": "./res/icon/CLAM.png", "cname": "真格蛤蜊" },
|
||||
"GOAL": {
|
||||
"image": "./res/icon/GOAL.png",
|
||||
"cname": "真格鱼虎"
|
||||
},
|
||||
"LOFT": {
|
||||
"image": "./res/icon/LOFT.png",
|
||||
"cname": "真格塔楼"
|
||||
}
|
||||
}
|
||||
|
||||
stage = {"0": {"image": "stage/300px-S2_Stage_The_Reef.png", "name": "寿司街"},
|
||||
"1": {"image": "stage/300px-S2_Stage_Musselforge_Fitness.png", "name": "健身房"},
|
||||
"2": {"image": "stage/300px-S2_Stage_Starfish_Mainstage.png", "name": "音乐堂"},
|
||||
|
|
|
|||
Loading…
Reference in a new issue