Skip to content

Commit

Permalink
1.2.6pre8 简化变量存取 PreRelease
Browse files Browse the repository at this point in the history
  • Loading branch information
Ginsakura committed Apr 30, 2024
1 parent a2b781c commit 190348f
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 14 deletions.
23 changes: 11 additions & 12 deletions MainWindowOldStyle.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,8 @@ def fixed_map(option):
self.analyzeFilePathVar.set('Input Analyze File Dir (or not)')
self.windowInfo = [root.winfo_x(),root.winfo_y(),root.winfo_width(),root.winfo_height()]
self.saveCount = 0
self.saveCountVar = StringVar()
self.saveCountVar.set(str(self.saveCount))
self.totalSync = 0
self.avgSyncVar = StringVar()
self.avgSyncVar.set(f'{(self.totalSync / (1 if self.saveCount==0 else self.saveCount))}')
self.excludeCount = 0
self.dataSortMethodsort = [None,True]
self.dataSelectMethod = None
self.treeviewColumns = ["SpeedStall",'SongName',"Keys","Difficulty","DifficultyNumber","SyncNumber","Rank","UploadScore","PlayCount","Status"]
Expand All @@ -97,7 +94,7 @@ def fixed_map(option):
self.CountFrameLanel.place(x=8,y=48,width=164,height=34)
self.PrintLabel0 = Label(self.root, text='显示计数: ', font=self.font, relief="flat")
self.PrintLabel0.place(x=10,y=50,width=100,height=30)
self.saveCountLabel = Label(self.root, text=self.saveCountVar.get(), font=self.font, relief="flat")
self.saveCountLabel = Label(self.root, text=str(self.saveCount+self.excludeCount), font=self.font, relief="flat")
self.saveCountLabel.place(x=110,y=50,width=60,height=30)

self.saveFilePathEntry = Entry(self.root, textvariable=self.saveFilePathVar, font=self.font, relief="sunken")
Expand Down Expand Up @@ -125,7 +122,7 @@ def fixed_map(option):
self.totalSyncFrameLabel.place(x=868,y=48,width=124,height=74)
self.totalSyncTextLabel = Label(self.root, text='综合同步率', anchor="center", font=self.font, relief="flat")
self.totalSyncTextLabel.place(x=870,y=50,width=120,height=30)
self.avgSyncLabel = Label(self.root, text=self.avgSyncVar.get()+'%', anchor="w", font=self.font, relief="flat")
self.avgSyncLabel = Label(self.root, text=f'{(self.totalSync / (1 if self.saveCount==0 else self.saveCount))}%', anchor="w", font=self.font, relief="flat")
self.avgSyncLabel.place(x=870,y=90,width=120,height=30)

#筛选控件
Expand Down Expand Up @@ -519,8 +516,11 @@ def Rank(sync):
if (float(saveLine["SyncNumber"][0:-1]) < 75) or (float(saveLine["SyncNumber"][0:-1]) >= 95):continue
elif self.dataSelectMethod == "RankC":
if (float(saveLine["SyncNumber"][0:-1]) == 0) or (float(saveLine["SyncNumber"][0:-1]) >= 75):continue
self.saveCount += 1
self.totalSync += float(saveLine["UploadScore"][0:-1])
if saveLine["Status"] in [' ', 'Favo']:
self.saveCount += 1
self.totalSync += float(saveLine["UploadScore"][0:-1])
else:
self.excludeCount += 1
self.saveData.insert('', END, values=(saveLine["SpeedStall"], #谱面号
("" if saveLine["SongName"] is None else saveLine["SongName"][0]), #曲名
("" if saveLine["SongName"] is None else saveLine["SongName"][1]), #键数
Expand Down Expand Up @@ -573,10 +573,9 @@ def UpdateWindowInfo(self):
if not self.wh == self.windowInfo[2:]:
self.TreeviewWidthUptate()
self.VScroll1.place(x=self.windowInfo[2]-22, y=1, width=20, height=self.windowInfo[3]-162)
self.saveCountVar.set(self.saveCount)
self.saveCountLabel.configure(text=self.saveCountVar.get())
self.avgSyncVar.set(f'{(self.totalSync / (1 if self.saveCount==0 else self.saveCount))}')
self.avgSyncLabel.configure(text=self.avgSyncVar.get()[0:10]+"%")
# self.saveCountVar.set()
self.saveCountLabel.configure(text=str(self.saveCount+self.excludeCount))
self.avgSyncLabel.configure(text=f'{(self.totalSync / (1 if self.saveCount==0 else self.saveCount))}%')
self.developer.place(x=0,y=self.windowInfo[3]-30,width=420,height=30)
self.gitHubLink.place(x=420,y=self.windowInfo[3]-30,width=self.windowInfo[2]-420,height=30)

Expand Down
4 changes: 2 additions & 2 deletions MusyncSavDecodeGUI.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@

version = '1.2.6rc3'
isPreRelease = True
preVersion = "1.2.6pre7"
isPreRelease = False
preVersion = "1.2.6pre8"
# isPreRelease = False

class MusyncSavDecodeGUI(object):
"""docstring for MusyncSavDecodeGUI"""
Expand Down
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,13 @@ HitDelay模块用法:启用DLL注入后,在本次游戏进行首次谱面游玩
1. xxx
-->
### Version 1.2.6
#### Release 4
1. 更新
1. xxx
2. 修复
1. xxx
3. 优化
1. 简化变量存储与读取流程
#### Release 3
1. 更新
1. 编写使用说明与wiki
Expand Down
7 changes: 7 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@
8. 1.2.6 更新ci

### Version 1.2.6
#### Release 4
1. 更新
1. xxx
2. 修复
1. xxx
3. 优化
1. 简化变量存储与读取流程
#### Release 3
1. 更新
1. 编写使用说明与wiki
Expand Down

0 comments on commit 190348f

Please sign in to comment.