Reorganized/Commented Cheat Search windows, underlined some of the shortcuts

This commit is contained in:
ipher
2005-05-25 05:44:59 +00:00
parent 6c27f735bf
commit e5311cd3b3
3 changed files with 148 additions and 156 deletions

View File

@@ -51,7 +51,7 @@ AddCSCheatCode:
jmp .cspardispagain jmp .cspardispagain
.cspardisploop .cspardisploop
push ecx push ecx
mov esi,GUICSrcTextQ mov esi,GUICSrcTextG1
mov ecx,3 mov ecx,3
mov eax,[curaddrvalcs] mov eax,[curaddrvalcs]
add eax,7E0000h add eax,7E0000h

View File

@@ -3117,7 +3117,8 @@ DisplayGUICheatSearchClick:
je near .view je near .view
cmp byte[CheatWinMode],3 cmp byte[CheatWinMode],3
je near .add je near .add
GUIPHoldbutton 95,140,140,152,50
GUIPHoldbutton 95,140,140,152,50 ; Main Menu
GUIPButtonHole 11,28,byte[CheatSrcByteSize],0 GUIPButtonHole 11,28,byte[CheatSrcByteSize],0
GUIPButtonHole 11,38,byte[CheatSrcByteSize],1 GUIPButtonHole 11,38,byte[CheatSrcByteSize],1
GUIPButtonHole 11,48,byte[CheatSrcByteSize],2 GUIPButtonHole 11,48,byte[CheatSrcByteSize],2
@@ -3127,29 +3128,32 @@ DisplayGUICheatSearchClick:
GUIPButtonHole 11,113,byte[CheatSrcSearchType],0 GUIPButtonHole 11,113,byte[CheatSrcSearchType],0
GUIPButtonHole 11,123,byte[CheatSrcSearchType],1 GUIPButtonHole 11,123,byte[CheatSrcSearchType],1
ret ret
.incheatmode
.incheatmode ; Exact Value
GUIPHoldbutton 30,140,80,152,51 GUIPHoldbutton 30,140,80,152,51
cmp byte[CheatSearchStatus],1 cmp byte[CheatSearchStatus],1
jne near .cheatsearching jne near .cheatsearching
jmp .nosearch jmp .nosearch
.cheatsearching
.cheatsearching ; Return and Re-Search
cmp byte[CheatSrcSearchType],1 cmp byte[CheatSrcSearchType],1
je near .cheatsearchingcomp je near .cheatsearchingcomp
jmp .searched jmp .searched
.cheatsearchingcomp
.cheatsearchingcomp ; Select Comparison
GUIPButtonHole 11,33,byte[CheatCompareValue],0 GUIPButtonHole 11,33,byte[CheatCompareValue],0
GUIPButtonHole 11,43,byte[CheatCompareValue],1 GUIPButtonHole 11,43,byte[CheatCompareValue],1
GUIPButtonHole 11,53,byte[CheatCompareValue],2 GUIPButtonHole 11,53,byte[CheatCompareValue],2
GUIPButtonHole 11,63,byte[CheatCompareValue],3 GUIPButtonHole 11,63,byte[CheatCompareValue],3
.searched .searched ; Restart/View/Search Buttons
GUIPHoldbutton 120,140,170,152,53 GUIPHoldbutton 120,140,170,152,53
.nosearch .nosearch
GUIPHoldbutton 10,140,60,152,51 GUIPHoldbutton 10,140,60,152,51
GUIPHoldbutton 70,140,110,152,52 GUIPHoldbutton 70,140,110,152,52
ret ret
; View Cheat
.preview .preview ; Preview Box
; x1,y1,x2,y2,upjump,downjump,holdpos,scsize,view,cur,listsize ; x1,y1,x2,y2,upjump,downjump,holdpos,scsize,view,cur,listsize
GUISlidebarPostImpl 173,28,180,100,.scrollup,.scrolldown,11,12,GUIcurrentchtsrcviewloc,GUIcurrentchtsrccursloc,NumCheatSrc,GUIBlankVar,1 GUISlidebarPostImpl 173,28,180,100,.scrollup,.scrolldown,11,12,GUIcurrentchtsrcviewloc,GUIcurrentchtsrccursloc,NumCheatSrc,GUIBlankVar,1
;x1,y1,x2,y2,view,curs,num,.scru,.scrd,jumpto,sizeofscreen ;x1,y1,x2,y2,view,curs,num,.scru,.scrd,jumpto,sizeofscreen
@@ -3160,16 +3164,19 @@ DisplayGUICheatSearchClick:
.skipscrol .skipscrol
; x,y,x2,y2,currentwin,vpos,#entries,starty,y/entry,cpos,winval,win#,dclicktick# ; x,y,x2,y2,currentwin,vpos,#entries,starty,y/entry,cpos,winval,win#,dclicktick#
GUIWinControl 5,23,171,21+12*7,GUIBlankVar,GUIcurrentchtsrcviewloc,NumCheatSrc,22,7,GUIcurrentchtsrccursloc,5,13,30 GUIWinControl 5,23,171,21+12*7,GUIBlankVar,GUIcurrentchtsrcviewloc,NumCheatSrc,22,7,GUIcurrentchtsrccursloc,5,13,30
GUIPHoldbutton 70,140,130,152,54
GUIPHoldbutton 70,140,130,152,54 ; Return/Add Buttons
GUIPHoldbutton 140,140,180,152,55 GUIPHoldbutton 140,140,180,152,55
ret ret
; DrawSlideBarWin 13,173,28,[GUIcurrentchtsrcviewloc],[NumCheatSrc],12,73,GUICSStA ; DrawSlideBarWin 13,173,28,[GUIcurrentchtsrcviewloc],[NumCheatSrc],12,73,GUICSStA
; DrawGUIWinBox 13,5,20,171,108,167 ; DrawGUIWinBox 13,5,20,171,108,167
.add
GUIPHoldbutton 60,155,120,167,56 .add ; Add Cheat
GUIPHoldbutton 60,155,120,167,56 ; Return/Add Buttons
GUIPHoldbutton 130,155,160,167,57 GUIPHoldbutton 130,155,160,167,57
GUIClickCButton 8,139,byte[CheatUpperByteOnly] GUIClickCButton 8,139,byte[CheatUpperByteOnly] ; Checkbox
GUIBoxVar 10,30,80,37,CurCStextpos,0 GUIBoxVar 10,30,80,37,CurCStextpos,0 ; Input Boxes
GUIBoxVar 10,55,126,62,CurCStextpos,1 GUIBoxVar 10,55,126,62,CurCStextpos,1
ret ret

View File

@@ -2966,6 +2966,13 @@ DrawWindowSearch:
GUIOuttextwin2 %1,%2,%3,%4 GUIOuttextwin2 %1,%2,%3,%4
%endmacro %endmacro
%macro TextWindowMacrou 5
sub byte[GUItextcolor],15
GUIOuttextwin2u %1,%2+1,%3+1,%4,%5
add byte[GUItextcolor],15
GUIOuttextwin2 %1,%2,%3,%4
%endmacro
CSRemoveFlash: CSRemoveFlash:
.loop .loop
cmp byte[esi],'_' cmp byte[esi],'_'
@@ -2994,26 +3001,6 @@ CSAddFlash:
ret ret
DisplayGUISearch: DisplayGUISearch:
jmp .startcheat
; call DrawWindowSearch ; Do we even need this?
; mov byte[GUItextcolor],217
; cmp byte[GUIWincoladd],0
; je .zero
; mov byte[GUItextcolor],211
;.zero
; sub byte[GUItextcolor],15
; GUIOuttextwin2 13,6,16,GUISrcText1
; GUIOuttextwin2 13,6,26,GUISrcText2
; GUIOuttextwin2 13,6,36,GUISrcText3
; add byte[GUItextcolor],15
; GUIOuttextwin2 13,5,15,GUISrcText1
; GUIOuttextwin2 13,5,25,GUISrcText2
; GUIOuttextwin2 13,5,35,GUISrcText3
; ret
;; DrawGUIButton 13,197,30,239,41,GUICSrcText8+2,40,0,0
; ret
.startcheat ; Start
cmp byte[CheatWinMode],1 ; Determine which CS window we're on cmp byte[CheatWinMode],1 ; Determine which CS window we're on
je near Incheatmode je near Incheatmode
cmp byte[CheatWinMode],2 cmp byte[CheatWinMode],2
@@ -3024,51 +3011,45 @@ DisplayGUISearch:
mov dword[GUIwinsizey+13*4],150 mov dword[GUIwinsizey+13*4],150
call DrawWindowSearch call DrawWindowSearch
mov al,[GUIWincol] ; Yellow Shadow mov al,[GUIWincol] ; Yellow Shadow
mov byte[GUItextcolor],al mov byte[GUItextcolor],al
GUIOuttextwin2 13,6,16,GUICSrcText1 GUIOuttextwin2 13,6,16,GUICSrcTextA1
GUIOuttextwin2 13,6,101,GUICSrcText8 GUIOuttextwin2 13,6,101,GUICSrcTextA2
mov byte[GUItextcolor],163 ; Yellow Text mov byte[GUItextcolor],163 ; Yellow Text
cmp byte[GUIWincoladd],0 cmp byte[GUIWincoladd],0
je .zero3 je .zero3
mov byte[GUItextcolor],164 mov byte[GUItextcolor],164
.zero3 .zero3
GUIOuttextwin2 13,5,15,GUICSrcText1 GUIOuttextwin2 13,5,15,GUICSrcTextA1
GUIOuttextwin2 13,5,100,GUICSrcText8 GUIOuttextwin2 13,5,100,GUICSrcTextA2
mov byte[GUItextcolor],217 ; Text AND Shadow in one
mov byte[GUItextcolor],217 ; Text AND Shadow
cmp byte[GUIWincoladd],0 ; maybe start converting other windows cmp byte[GUIWincoladd],0 ; maybe start converting other windows
je .zero2 ; to this format? je .zero2 ; to this format?
mov byte[GUItextcolor],211 mov byte[GUItextcolor],211
.zero2 .zero2
TextWindowMacro 13,25,30,GUICSrcText2 TextWindowMacrou 13,25,30,GUICSrcTextA1a,0
TextWindowMacro 13,25,40,GUICSrcText3 TextWindowMacrou 13,25,40,GUICSrcTextA1b,0
TextWindowMacro 13,25,50,GUICSrcText4 TextWindowMacrou 13,25,50,GUICSrcTextA1c,0
TextWindowMacro 13,25,60,GUICSrcText5 TextWindowMacrou 13,25,60,GUICSrcTextA1d,0
TextWindowMacrou 13,25,75,GUICSrcTextA1e,0
TextWindowMacro 13,25,75,GUICSrcText6 TextWindowMacrou 13,25,85,GUICSrcTextA1f,0
TextWindowMacro 13,25,85,GUICSrcText7 TextWindowMacrou 13,25,115,GUICSrcTextA2a,0
TextWindowMacrou 13,25,125,GUICSrcTextA2b,0
TextWindowMacro 13,25,115,GUICSrcText9
TextWindowMacro 13,25,125,GUICSrcTextA
DrawGUIButton 13,95,140,140,152,GUICSrcTextB,50,0,1 ; Button DrawGUIButton 13,95,140,140,152,GUICSrcTextA3,50,0,1 ; Button
GUIDisplayButtonHole 13,11,28,byte[CheatSrcByteSize],0 ; Ratio Buttons GUIDisplayButtonHole 13,11,28,byte[CheatSrcByteSize],0 ; Ratio Buttons
GUIDisplayButtonHole 13,11,38,byte[CheatSrcByteSize],1 GUIDisplayButtonHole 13,11,38,byte[CheatSrcByteSize],1
GUIDisplayButtonHole 13,11,48,byte[CheatSrcByteSize],2 GUIDisplayButtonHole 13,11,48,byte[CheatSrcByteSize],2
GUIDisplayButtonHole 13,11,58,byte[CheatSrcByteSize],3 GUIDisplayButtonHole 13,11,58,byte[CheatSrcByteSize],3
GUIDisplayButtonHole 13,11,73,byte[CheatSrcByteBase],0 GUIDisplayButtonHole 13,11,73,byte[CheatSrcByteBase],0
GUIDisplayButtonHole 13,11,83,byte[CheatSrcByteBase],1 GUIDisplayButtonHole 13,11,83,byte[CheatSrcByteBase],1
GUIDisplayButtonHole 13,11,113,byte[CheatSrcSearchType],0 GUIDisplayButtonHole 13,11,113,byte[CheatSrcSearchType],0
GUIDisplayButtonHole 13,11,123,byte[CheatSrcSearchType],1 GUIDisplayButtonHole 13,11,123,byte[CheatSrcSearchType],1
ret ret
Incheatmode: ; Return and Re-search Incheatmode: ; Return and Re-search Window
mov dword[GUIwinsizex+13*4],180 mov dword[GUIwinsizex+13*4],180
mov dword[GUIwinsizey+13*4],150 mov dword[GUIwinsizey+13*4],150
call DrawWindowSearch call DrawWindowSearch
@@ -3080,19 +3061,19 @@ Incheatmode: ; Return and Re-search
.zero2 .zero2
cmp byte[CheatSearchStatus],1 cmp byte[CheatSearchStatus],1
jne near CheatSearching jne near CheatSearching
TextWindowMacro 13,5,20,GUICSrcTextM TextWindowMacro 13,5,20,GUICSrcTextC1
TextWindowMacro 13,5,30,GUICSrcTextN TextWindowMacro 13,5,30,GUICSrcTextC2
TextWindowMacro 13,5,40,GUICSrcTextO TextWindowMacro 13,5,40,GUICSrcTextC3
TextWindowMacro 13,5,50,GUICSrcTextP TextWindowMacro 13,5,50,GUICSrcTextC4
jmp DisplayChtSrcRes.nosearch jmp DisplayChtSrcRes.nosearch
CheatSearching: ; Exact Value Search CheatSearching: ; Exact Value Search
cmp byte[CheatSrcSearchType],1 cmp byte[CheatSrcSearchType],1
je near CheatSearchingComp je near CheatSearchingComp
TextWindowMacro 13,5,20,GUICSrcTextD ; Text (setup?) TextWindowMacro 13,5,20,GUICSrcTextB1 ; Text (setup?)
TextWindowMacro 13,5,65,GUICSrcTextT TextWindowMacro 13,5,65,GUICSrcTextG1a
DrawGUIWinBox 13,10,40,80,47,167 ; Input Box DrawGUIWinBox 13,10,40,80,47,167 ; Input Box
@@ -3141,20 +3122,13 @@ CheatSearching: ; Exact Value Search
.notdark2 .notdark2
GUIOuttextwin2 13,12,41,CSInputDisplay GUIOuttextwin2 13,12,41,CSInputDisplay
mov byte[GUItextcolor],217 ; More Text (Moved)
cmp byte[GUIWincoladd],0
je .zero2
mov byte[GUItextcolor],211
.zero2
; TextWindowMacro 13,5,65,GUICSrcTextT
mov esi,CSInputDisplay ; More flash? mov esi,CSInputDisplay ; More flash?
call CSAddFlash call CSAddFlash
xor eax,eax ; Find Max Size xor eax,eax ; Find Max Size
mov al,[CheatSrcByteSize] mov al,[CheatSrcByteSize]
mov eax,[SrcMask+eax*4] mov eax,[SrcMask+eax*4]
mov esi,GUICSrcTextQ mov esi,GUICSrcTextG1
cmp byte[CheatSrcByteBase],1 cmp byte[CheatSrcByteBase],1
je .hex je .hex
call convertnum call convertnum
@@ -3165,37 +3139,40 @@ CheatSearching: ; Exact Value Search
inc ecx inc ecx
call converthex call converthex
.dec .dec
TextWindowMacro 13,71,65,GUICSrcTextQ ; Max Size Text (setup?) mov byte[GUItextcolor],217 ; Max Size Text
cmp byte[GUIWincoladd],0
je .zero2
mov byte[GUItextcolor],211
.zero2
TextWindowMacro 13,71,65,GUICSrcTextG1
jmp DisplayChtSrcRes jmp DisplayChtSrcRes
CheatSearchingComp: ; Comparative search CheatSearchingComp: ; Comparative search
mov al,[GUIWincol] mov al,[GUIWincol]
mov byte[GUItextcolor],al mov byte[GUItextcolor],al
GUIOuttextwin2 13,6,16,GUICSrcTextE GUIOuttextwin2 13,6,16,GUICSrcTextD
mov byte[GUItextcolor],163 mov byte[GUItextcolor],163
cmp byte[GUIWincoladd],0 cmp byte[GUIWincoladd],0
je .zero3 je .zero3
mov byte[GUItextcolor],164 mov byte[GUItextcolor],164
.zero3 .zero3
GUIOuttextwin2 13,5,15,GUICSrcTextE GUIOuttextwin2 13,5,15,GUICSrcTextD
mov byte[GUItextcolor],217 mov byte[GUItextcolor],217
cmp byte[GUIWincoladd],0 cmp byte[GUIWincoladd],0
je .zero2 je .zero2
mov byte[GUItextcolor],211 mov byte[GUItextcolor],211
.zero2 .zero2
TextWindowMacro 13,25,35,GUICSrcTextF TextWindowMacro 13,25,35,GUICSrcTextD1
TextWindowMacro 13,25,45,GUICSrcTextG TextWindowMacro 13,25,45,GUICSrcTextD2
TextWindowMacro 13,25,55,GUICSrcTextH TextWindowMacro 13,25,55,GUICSrcTextD3
TextWindowMacro 13,25,65,GUICSrcTextHb TextWindowMacro 13,25,65,GUICSrcTextD4
GUIDisplayButtonHole 13,11,33,byte[CheatCompareValue],0 GUIDisplayButtonHole 13,11,33,byte[CheatCompareValue],0
GUIDisplayButtonHole 13,11,43,byte[CheatCompareValue],1 GUIDisplayButtonHole 13,11,43,byte[CheatCompareValue],1
GUIDisplayButtonHole 13,11,53,byte[CheatCompareValue],2 GUIDisplayButtonHole 13,11,53,byte[CheatCompareValue],2
GUIDisplayButtonHole 13,11,63,byte[CheatCompareValue],3 GUIDisplayButtonHole 13,11,63,byte[CheatCompareValue],3
jmp DisplayChtSrcRes jmp DisplayChtSrcRes
FindChtSrcRes: ; Calculate search results FindChtSrcRes: ; Calculate search results
inc edi inc edi
mov eax,dword[vidbuffer] mov eax,dword[vidbuffer]
@@ -3227,30 +3204,29 @@ FindChtSrcRes: ; Calculate search results
jmp .notset jmp .notset
DisplayChtSrcRes: ; Buttons (Restart/View/Search) DisplayChtSrcRes: ; Buttons (Restart/View/Search)
DrawGUIButton 13,120,140,170,152,GUICSrcTextI,53,0,1 DrawGUIButton 13,120,140,170,152,GUICSrcTextG2a,53,0,1
.nosearch .nosearch
DrawGUIButton 13,10,140,60,152,GUICSrcTextJ,51,0,1 DrawGUIButton 13,10,140,60,152,GUICSrcTextG2b,51,0,1
DrawGUIButton 13,70,140,110,152,GUICSrcTextL,52,0,1 DrawGUIButton 13,70,140,110,152,GUICSrcTextG2c,52,0,1
xor edi,edi ; Call and display # of results xor edi,edi ; Call and display # of results
call FindChtSrcRes call FindChtSrcRes
mov esi,GUICSrcTextQ mov esi,GUICSrcTextG1
call convertnum call convertnum
TextWindowMacro 13,12,125,GUICSrcTextK TextWindowMacro 13,12,125,GUICSrcTextG1b
TextWindowMacro 13,97,125,GUICSrcTextQ TextWindowMacro 13,97,125,GUICSrcTextG1
mov dword[GUIcurrentchtsrcviewloc],0 mov dword[GUIcurrentchtsrcviewloc],0
mov dword[GUIcurrentchtsrccursloc],0 mov dword[GUIcurrentchtsrccursloc],0
ret ; End of Window ret
Cheatmodeview: ; View Cheatmodeview: ; View ResultsWindow
mov byte[GUICSrcTextS+12],32 mov byte[GUICSrcTextE+12],32
cmp byte[CheatSrcByteSize],3 cmp byte[CheatSrcByteSize],3
jne .yesprev jne .yesprev
cmp byte[CheatSrcByteBase],0 cmp byte[CheatSrcByteBase],0
jne .yesprev jne .yesprev
mov byte[GUICSrcTextS+12],0 mov byte[GUICSrcTextE+12],0
.yesprev .yesprev
mov dword[GUIwinsizex+13*4],185 mov dword[GUIwinsizex+13*4],185
mov dword[GUIwinsizey+13*4],150 mov dword[GUIwinsizey+13*4],150
call DrawWindowSearch call DrawWindowSearch
@@ -3260,7 +3236,7 @@ Cheatmodeview: ; View
je .zero je .zero
mov byte[GUItextcolor],211 mov byte[GUItextcolor],211
.zero .zero
TextWindowMacro 13,10,12,GUICSrcTextS TextWindowMacro 13,10,12,GUICSrcTextE
DrawGUIWinBox 13,5,20,171,108,167 ; Box DrawGUIWinBox 13,5,20,171,108,167 ; Box
@@ -3282,13 +3258,11 @@ Cheatmodeview: ; View
add dl,4 add dl,4
DrawGUIWinBox 13,5,109,171,109,dl DrawGUIWinBox 13,5,109,171,109,dl
mov edi,[GUIcurrentchtsrcviewloc] mov edi,[GUIcurrentchtsrcviewloc]
call FindChtSrcRes call FindChtSrcRes
mov [NumCheatSrc],eax mov [NumCheatSrc],eax
mov dword[ccheatnpos],esi mov dword[ccheatnpos],esi
; Display Window Contents ; Display Window Contents
mov byte[GUItextcolor],223 mov byte[GUItextcolor],223
mov eax,[NumCheatSrc] mov eax,[NumCheatSrc]
sub eax,[GUIcurrentchtsrcviewloc] sub eax,[GUIcurrentchtsrcviewloc]
@@ -3323,14 +3297,14 @@ Cheatmodeview: ; View
.notzero .notzero
dec dword[curentryleft] dec dword[curentryleft]
mov esi,GUICSrcTextQ mov esi,GUICSrcTextG1
mov ecx,3 mov ecx,3
mov eax,[CSCurEntry] mov eax,[CSCurEntry]
add eax,7E0000h add eax,7E0000h
call converthex call converthex
GUIOuttextwin2 13,[CheatSearchXPos],[CheatSearchYPos],GUICSrcTextQ GUIOuttextwin2 13,[CheatSearchXPos],[CheatSearchYPos],GUICSrcTextG1
mov esi,GUICSrcTextQ mov esi,GUICSrcTextG1
mov ebx,[wramdata] mov ebx,[wramdata]
add ebx,[CSCurEntry] add ebx,[CSCurEntry]
mov eax,[ebx] mov eax,[ebx]
@@ -3348,12 +3322,12 @@ Cheatmodeview: ; View
call convertnum call convertnum
.hex .hex
add dword[CheatSearchXPos],42 add dword[CheatSearchXPos],42
GUIOuttextwin2 13,[CheatSearchXPos],[CheatSearchYPos],GUICSrcTextQ GUIOuttextwin2 13,[CheatSearchXPos],[CheatSearchYPos],GUICSrcTextG1
add dword[CheatSearchXPos],60 add dword[CheatSearchXPos],60
cmp byte[GUICSrcTextS+12],0 cmp byte[GUICSrcTextE+12],0
je near .noprevious je near .noprevious
mov esi,GUICSrcTextQ mov esi,GUICSrcTextG1
mov ebx,dword[vidbuffer] mov ebx,dword[vidbuffer]
add ebx,129600 add ebx,129600
add ebx,[CSCurEntry] add ebx,[CSCurEntry]
@@ -3371,7 +3345,7 @@ Cheatmodeview: ; View
and eax,[SrcMask+ebx*4] and eax,[SrcMask+ebx*4]
call convertnum call convertnum
.hexb .hexb
GUIOuttextwin2 13,[CheatSearchXPos],[CheatSearchYPos],GUICSrcTextQ GUIOuttextwin2 13,[CheatSearchXPos],[CheatSearchYPos],GUICSrcTextG1
.noprevious .noprevious
sub dword[CheatSearchXPos],102 sub dword[CheatSearchXPos],102
add dword[CheatSearchYPos],7 add dword[CheatSearchYPos],7
@@ -3405,9 +3379,7 @@ Cheatmodeview: ; View
cmp byte[CheatLooped],2 cmp byte[CheatLooped],2
jne near .nextdisplay jne near .nextdisplay
.noentry .noentry
; Slidebar
; Slidebar
; win#,X,Y start, %4-List Loc, %5-List size, %6-Screen size, %7-Bar Size ; win#,X,Y start, %4-List Loc, %5-List size, %6-Screen size, %7-Bar Size
DrawSlideBarWin 13,173,28,[GUIcurrentchtsrcviewloc],[NumCheatSrc],12,73,GUICSStA DrawSlideBarWin 13,173,28,[GUIcurrentchtsrcviewloc],[NumCheatSrc],12,73,GUICSStA
cmp byte[GUICHold],11 cmp byte[GUICHold],11
@@ -3433,8 +3405,8 @@ Cheatmodeview: ; View
je .zero3 je .zero3
mov byte[GUItextcolor],211 mov byte[GUItextcolor],211
.zero3 .zero3
DrawGUIButton 13,70,140,130,152,GUICSrcTextR,54,0,1 DrawGUIButton 13,70,140,130,152,GUICSrcTextG2d,54,0,1
DrawGUIButton 13,140,140,180,152,GUICSrcTextU,55,0,1 DrawGUIButton 13,140,140,180,152,GUICSrcTextG2e,55,0,1
ret ret
Cheatmodeadd: ; Add Window Cheatmodeadd: ; Add Window
@@ -3447,10 +3419,10 @@ Cheatmodeadd: ; Add Window
je .zero3 je .zero3
mov byte[GUItextcolor],211 mov byte[GUItextcolor],211
.zero3 .zero3
TextWindowMacro 13,5,20,GUICSrcTextV TextWindowMacro 13,5,20,GUICSrcTextF1
TextWindowMacro 13,5,45,GUICSrcTextW TextWindowMacro 13,5,45,GUICSrcTextF2
TextWindowMacro 13,5,70,GUICSrcTextX TextWindowMacro 13,5,70,GUICSrcTextF3
TextWindowMacro 13,22,143,GUICSrcTextY TextWindowMacro 13,22,143,GUICSrcTextF4
mov dword[GUITemp],GUIIconDataCheckBoxUC ; Checkbox mov dword[GUITemp],GUIIconDataCheckBoxUC ; Checkbox
cmp byte[CheatUpperByteOnly],1 cmp byte[CheatUpperByteOnly],1
@@ -3492,14 +3464,14 @@ Cheatmodeadd: ; Add Window
DrawGUIWinBox 13,128,55,127,62,dl ; 2,0,1,0 DrawGUIWinBox 13,128,55,127,62,dl ; 2,0,1,0
DrawGUIWinBox 13,82,80,81,120,dl ; 2,0,1,0 DrawGUIWinBox 13,82,80,81,120,dl ; 2,0,1,0
DrawGUIButton 13,60,155,120,167,GUICSrcTextR,56,0,1 ; Buttons DrawGUIButton 13,60,155,120,167,GUICSrcTextG2d,56,0,1 ; Buttons
DrawGUIButton 13,130,155,160,167,GUICSrcTextU,57,0,1 DrawGUIButton 13,130,155,160,167,GUICSrcTextG2e,57,0,1
TextWindowMacro 13,5,130,GUICSrcTextT ; Max Value Text TextWindowMacro 13,5,130,GUICSrcTextG1a ; Max Value Text
xor eax,eax xor eax,eax
mov al,[CheatSrcByteSize] mov al,[CheatSrcByteSize]
mov eax,[SrcMask+eax*4] mov eax,[SrcMask+eax*4]
mov esi,GUICSrcTextQ mov esi,GUICSrcTextG1
cmp byte[CheatSrcByteBase],1 cmp byte[CheatSrcByteBase],1
je .hex je .hex
call convertnum call convertnum
@@ -3510,7 +3482,7 @@ Cheatmodeadd: ; Add Window
inc ecx inc ecx
call converthex call converthex
.dec .dec
TextWindowMacro 13,71,130,GUICSrcTextQ TextWindowMacro 13,71,130,GUICSrcTextG1
cmp byte[CurCStextpos],0 ; Cheat Input cmp byte[CurCStextpos],0 ; Cheat Input
jne near .nofirstbox jne near .nofirstbox
@@ -3581,26 +3553,26 @@ Cheatmodeadd: ; Add Window
jmp .cspardispagain jmp .cspardispagain
.cspardisploop ; Max Value Display? .cspardisploop ; Max Value Display?
push ecx push ecx
mov esi,GUICSrcTextQ mov esi,GUICSrcTextG1
mov ecx,3 mov ecx,3
mov eax,[curaddrvalcs] mov eax,[curaddrvalcs]
add eax,7E0000h add eax,7E0000h
call converthex call converthex
mov esi,GUICSrcTextQ+6 mov esi,GUICSrcTextG1+6
mov ecx,1 mov ecx,1
mov al,[curvaluecs] mov al,[curvaluecs]
call converthex call converthex
shr dword[curvaluecs],8 shr dword[curvaluecs],8
mov byte[GUItextcolor],223 mov byte[GUItextcolor],223
inc dword[CheatSearchYPos] inc dword[CheatSearchYPos]
GUIOuttextwin2 13,13,[CheatSearchYPos],GUICSrcTextQ GUIOuttextwin2 13,13,[CheatSearchYPos],GUICSrcTextG1
dec dword[CheatSearchYPos] dec dword[CheatSearchYPos]
mov byte[GUItextcolor],221 mov byte[GUItextcolor],221
cmp byte[GUIWincoladd],0 cmp byte[GUIWincoladd],0
je .zero4c je .zero4c
mov byte[GUItextcolor],222 mov byte[GUItextcolor],222
.zero4c .zero4c
GUIOuttextwin2 13,12,[CheatSearchYPos],GUICSrcTextQ GUIOuttextwin2 13,12,[CheatSearchYPos],GUICSrcTextG1
add dword[CheatSearchYPos],10 add dword[CheatSearchYPos],10
inc dword[curaddrvalcs] inc dword[curaddrvalcs]
pop ecx pop ecx
@@ -3637,43 +3609,56 @@ curvaluecs resd 1
GUICSStA resd 3 GUICSStA resd 3
SECTION .data SECTION .data
GUISrcText1 db 'CHEAT SEARCH',0
GUISrcText2 db 'HAS NOT BEEN',0 ; A = Opening Screen
GUISrcText3 db 'IMPLEMENTED YET',0 ; B = Exact Value Search
GUICSrcText1 db 'SELECT SIZE AND FORMAT:',0 ; C = Comparison Search Message
GUICSrcText2 db '1 BYTE [0..255]',0 ; D = Comparison Search Method
GUICSrcText3 db '2 BYTES [0..65535]',0 ; E = View Results
GUICSrcText4 db '3 BYTES [0..16777215]',0 ; F = Add Cheat
GUICSrcText5 db '4 BYTES [0..4294967295]',0 ; G = General Use
GUICSrcText6 db 'DEC (BASE 10)',0
GUICSrcText7 db 'HEX (BASE 16)',0 GUICSrcTextA1 db 'SELECT SIZE AND FORMAT:',0
GUICSrcText8 db 'SELECT SEARCH TYPE:',0 GUICSrcTextA1a db '1 BYTE [0..255]',0
GUICSrcText9 db 'EXACT VALUE SEARCH',0 GUICSrcTextA1b db '2 BYTES [0..65535]',0
GUICSrcTextA db 'COMPARATIVE SEARCH',0 GUICSrcTextA1c db '3 BYTES [0..16777215]',0
GUICSrcTextB db 'START',0 GUICSrcTextA1d db '4 BYTES [0..4294967295]',0
GUICSrcTextD db 'ENTER VALUE:',0 GUICSrcTextA1e db 'DEC (BASE 10)',0
GUICSrcTextE db 'SELECT COMPARISON:',0 GUICSrcTextA1f db 'HEX (BASE 16)',0
GUICSrcTextF db 'NEW VALUE IS > OLD VALUE',0 GUICSrcTextA2 db 'SELECT SEARCH TYPE:',0
GUICSrcTextG db 'NEW VALUE IS < OLD VALUE',0 GUICSrcTextA2a db 'EXACT VALUE SEARCH',0
GUICSrcTextH db 'NEW VALUE IS = OLD VALUE',0 GUICSrcTextA2b db 'COMPARATIVE SEARCH',0
GUICSrcTextHb db 'NEW VALUE IS != OLD VALUE',0 GUICSrcTextA3 db 'START',0 ; Button
GUICSrcTextI db 'SEARCH',0
GUICSrcTextJ db 'RESTART',0 GUICSrcTextB1 db 'ENTER VALUE:',0 ; Make Yellow
GUICSrcTextK db '# OF RESULTS:',0
GUICSrcTextL db 'VIEW',0 GUICSrcTextC1 db 'NOW RETURN TO YOUR GAME',0
GUICSrcTextQ db ' ',0 GUICSrcTextC2 db 'AND COME BACK WHEN ',0
GUICSrcTextM db 'NOW RETURN TO YOUR GAME',0 GUICSrcTextC3 db 'THE NEXT SEARCH',0
GUICSrcTextN db 'AND COME BACK WHEN ',0 GUICSrcTextC4 db 'SHOULD BE PROCESSED',0
GUICSrcTextO db 'THE NEXT SEARCH',0
GUICSrcTextP db 'SHOULD BE PROCESSED',0 GUICSrcTextD db 'SELECT COMPARISON:',0
GUICSrcTextR db 'RETURN',0 GUICSrcTextD1 db 'NEW VALUE IS > OLD VALUE',0
GUICSrcTextS db 'ADDR VALUE PVALUE',0 GUICSrcTextD2 db 'NEW VALUE IS < OLD VALUE',0
GUICSrcTextT db 'MAX VALUE:',0 GUICSrcTextD3 db 'NEW VALUE IS = OLD VALUE',0
GUICSrcTextU db 'ADD',0 GUICSrcTextD4 db 'NEW VALUE IS != OLD VALUE',0
GUICSrcTextV db 'ENTER NEW VALUE:',0
GUICSrcTextW db 'ENTER CHEAT DESCRIPTION:',0 GUICSrcTextE db 'ADDR VALUE PVALUE',0
GUICSrcTextX db 'PAR CODE EQUIVALENT:',0
GUICSrcTextY db 'USE ONLY UPPER BYTE',0 GUICSrcTextF1 db 'ENTER NEW VALUE:',0
GUICSrcTextF2 db 'ENTER CHEAT DESCRIPTION:',0
GUICSrcTextF3 db 'PAR CODE EQUIVALENT:',0
GUICSrcTextF4 db 'USE ONLY UPPER BYTE',0
GUICSrcTextG1 db ' ',0 ; All variables
GUICSrcTextG1a db 'MAX VALUE:',0
GUICSrcTextG1b db '# OF RESULTS:',0
GUICSrcTextG2a db 'SEARCH',0 ; Buttons
GUICSrcTextG2b db 'RESTART',0
GUICSrcTextG2c db 'VIEW',0
GUICSrcTextG2d db 'RETURN',0
GUICSrcTextG2e db 'ADD',0
SECTION .bss SECTION .bss
CCursLoc resd 1 CCursLoc resd 1