refacto update ; pretify code
This commit is contained in:
parent
6bd3ee31dc
commit
fbb1c913ba
11 changed files with 594 additions and 310 deletions
|
|
@ -6,6 +6,7 @@ from PyQt6.QtCore import Qt
|
|||
ROLE_TYPE = Qt.ItemDataRole.UserRole
|
||||
ROLE_ID = Qt.ItemDataRole.UserRole + 1
|
||||
|
||||
|
||||
class ItemType(StrEnum):
|
||||
PLAYER = "player"
|
||||
WAR = "war"
|
||||
|
|
@ -18,6 +19,7 @@ class ItemType(StrEnum):
|
|||
CHOICE = "choice"
|
||||
BATTLE = "battle"
|
||||
|
||||
|
||||
class RefreshScope(Enum):
|
||||
NONE = auto()
|
||||
PLAYERS_LIST = auto()
|
||||
|
|
@ -25,4 +27,3 @@ class RefreshScope(Enum):
|
|||
WAR_DETAILS = auto()
|
||||
CAMPAIGN_DETAILS = auto()
|
||||
ROUND_DETAILS = auto()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue