Skip to content

Commit

Permalink
将组队判断阈值设置卡片移动到设置界面
Browse files Browse the repository at this point in the history
  • Loading branch information
Zzaphkiel committed Sep 11, 2023
1 parent 403ec49 commit 5adcbc3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
8 changes: 0 additions & 8 deletions app/view/auxiliary_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
from PyQt5.QtCore import Qt
from PyQt5.QtWidgets import QWidget, QLabel, QCompleter

from .setting_interface import LineEditSettingCard
from ..common.icons import Icon
from ..common.config import cfg
from ..common.style_sheet import StyleSheet
Expand Down Expand Up @@ -77,12 +76,6 @@ def __init__(self, parent=None):
cfg.enableAutoSelectChampion, cfg.autoSelectChampion,
self.gameGroup)

# 预组队判定阈值(共同游戏高于该局数的被视为预组队)
self.teamGamesNumberCard = LineEditSettingCard(
cfg.teamGamesNumber, self.tr("Apply"),
self.tr("Pre-team threshold"), 1, Icon.TEAM,
self.tr("Pre-team threshold for common game rounds"), self.gameGroup)

# self.copyPlayersInfoCard = SwitchSettingCard(
# Icon.COPY, self.tr("Auto copy players' info"),
# self.tr("Copy players' infomation to clipboard when game starts"),
Expand Down Expand Up @@ -122,7 +115,6 @@ def __initLayout(self):
self.gameGroup.addSettingCard(self.spectateCard)
# self.gameGroup.addSettingCard(self.dodgeCard)
self.gameGroup.addSettingCard(self.lockConfigCard)
self.gameGroup.addSettingCard(self.teamGamesNumberCard)

self.expandLayout.setSpacing(30)
self.expandLayout.setContentsMargins(36, 0, 36, 0)
Expand Down
7 changes: 7 additions & 0 deletions app/view/setting_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@ def __init__(self, parent=None):

self.functionGroup = SettingCardGroup(self.tr("Functions"),
self.scrollWidget)

self.teamGamesNumberCard = LineEditSettingCard(
cfg.teamGamesNumber, self.tr("Apply"),
self.tr("Pre-team threshold"), 1, Icon.TEAM,
self.tr("Pre-team threshold for common game rounds"), self.functionGroup)

self.careerGamesCount = LineEditSettingCard(
cfg.careerGamesNumber, self.tr("Apply"),
self.tr("Default games number"), 10, Icon.SLIDESEARCH,
Expand Down Expand Up @@ -190,6 +196,7 @@ def __initLayout(self):

# add cards to group
self.functionGroup.addSettingCard(self.careerGamesCount)
self.functionGroup.addSettingCard(self.teamGamesNumberCard)
self.functionGroup.addSettingCard(self.gameInfoShowTierCard)

self.generalGroup.addSettingCard(self.lolFolderCard)
Expand Down

0 comments on commit 5adcbc3

Please sign in to comment.