home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SeeIn AO
/
ALICE-CD.BIN
/
Šj”ƒlƒbƒg�•‚»‚Ì‘¼
/
nv_mini
/
source
/
nvdebug.adv
< prev
next >
Wrap
Text File
|
1998-08-31
|
3KB
|
110 lines
;===============================================================================
; NVSYSTEM-mini programmed by ALICE SOFT
;===============================================================================
**DebugMsgPut f01:{ Debug=TRUE:ZD 2,f01:}~0,0:
**DebugNumPut f01:{ Debug=TRUE:ZD 3,f01:}~0,0:
**AbortMsgPut f01:~PutMessage f01:~0,0:
**MessageBox f01:~PutMessage f01:~0,0:
;===============================================================================
**PutMessage f01:
US a01,30:
!a01:f01!
ML a02,a01: ;; Get Strings Length
!a11:24!
~SetFSize a11:
~SetFColor StrNrmColor:
!a14:a11*a02+16!
!a15:a11+StrYSpace+16!
!a12:(XSize-a14)/2! ; (a12,a13) = Top X,Y value
!a13:(YSize-a15)/2! ; (a14,a15) = X,Y Size
CC a12,a13,a14,a15,XSize,YSize: ;
WZ 0,0: ;
CK 1,a12,a13,a14,a15,SelStrColor,224,0,0: ;
CB a12+1,a13+1,a14-1,a15-1,SelStrColor: ;
CB a12 ,a13 ,a14-1,a15-1,StrNrmColor: ;
T a12+8,a13+8:X a01: ;
WZ 0,1: ;
~SetFSize StrFontSize:
~SetFColor StrFontColor:
~TimerSet 0:!a01:0!
<@ a01<100:
~TimerGet:~~a01:
~GetKey:
{ Mkd\0:@exit_putmessage:}
>
*exit_putmessage:
CC XSize,YSize,a14,a15,a12,a13:
UG a01,30:
~0,0:
;===============================================================================
**DebugNumPutData f01,f02:
US a01,30:
NB a01,f01,2:
{ Debug=TRUE:
~SetFSize 16:
B10,a29,a30:
CF 640-6*16,a02*18,6*16,18,0:
T 640-6*16+12,a02*18:
H5,a01:
~SetFSize StrFontSize:
T a29,a30:
}
~0,0:
;===============================================================================
**StackCheck: ~0,0:
;===============================================================================
**StrArrayCheck:
US a01,30:
!a04:0xffff!
CC 0,YSize,XSize,YSize,0,0:
*Loop_StrArrayCheck:
~GetKey:
< a01,0,StrXMax-1,1,1:
< a02,0,StrYMax-1,1,1:
~GsP a01,a02:~~a03:
{ (sX[a03]<Msx)*(sY[a03]<Msy)*(Msx<(sX[a03]+sFSize[a03]))*(Msy<(sY[a03]+sFSize[a03])):
@Skip_StrArrayCheck:}
>
>
!a03:0xffff!
*Skip_StrArrayCheck:
{ a03\a04:
{ a04\0xffff:
CC sX[a04],sY[a04]+YSize,sFSize[a04],sFSize[a04],sX[a04],sY[a04]:
CC a13,a14+YSize,a11,a12,a13,a14:
}
{ a03\0xffff:
CK 1,sX[a03],sY[a03],sFSize[a03],sFSize[a03],254,128,0,0:
~SetFSize 16:
~SetFColor StrNrmColor:
!a10:16!
!a11:5*a10!
!a12:5*(a10+StrYSpace)!
!a13:XSize-a11!
!a14:a10+StrYSpace!
CK 1,a13,a14,a11,a12,254,128,0,0:
T a13,a14*1:H 5,a01:
T a13,a14*2:H 5,a02:
T a13,a14*3:H 5,sX[a03]:
T a13,a14*4:H 5,sY[a03]:
~SetFSize StrFontSize:
~SetFColor StrFontColor:
}
!a04:a03!
}
*Skip_StrArrayCheck1:
{(Mkd&32)\0:@Exit_StrArrayCheck:}
@Loop_StrArrayCheck:
*Exit_StrArrayCheck:
UG a01,30:
~0,0: