Skip to content

Commit

Permalink
Added: Suggested by SKAN
Browse files Browse the repository at this point in the history
-Final Score MsgBox
  • Loading branch information
maestrith committed Sep 6, 2017
1 parent b126e35 commit e3e8431
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Tetris.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ m(x*){
ControlGetFocus,Focus,A
ControlGet,hwnd,hwnd,,%Focus%,ahk_id%active%
static list:={btn:{oc:1,ari:2,ync:3,yn:4,rc:5,ctc:6},ico:{"x":16,"?":32,"!":48,"i":64}},msg:=[],msgbox
list.title:="AHK Studio",list.def:=0,list.time:=0,value:=0,msgbox:=1,txt:=""
list.title:="Tetris",list.def:=0,list.time:=0,value:=0,msgbox:=1,txt:=""
for a,b in x
obj:=StrSplit(b,":"),(vv:=List[obj.1,obj.2])?(value+=vv):(list[obj.1]!="")?(List[obj.1]:=obj.2):txt.=b "`n"
msg:={option:value+262144+(list.def?(list.def-1)*256:0),title:list.title,time:list.time,txt:txt}
Expand Down Expand Up @@ -599,7 +599,8 @@ Run(Tet:=""){
if(All){
if(Count=1){
FileDelete,Board.xml
Reload
if(m("Final Score: " Tetris.Score,"Lines: " Tetris.Lines,"btn:ync")="Yes")
Reload
ExitApp
}return RegisterTetrimino(Tetrimino),Tetris.Swapped:=0,Count:=0,Tetrimino:=Tetris.PullQueue(),EvalGhost(1)
}
Expand Down
3 changes: 3 additions & 0 deletions Tetris.text
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
0.000.2
Added: Suggested by SKAN
-Final Score MsgBox
0.000.1
Initial Post

0 comments on commit e3e8431

Please sign in to comment.