>.!RunImage "Hourglass_On" window%1024,menu%80,redraw%64,q%2560:windowend%=window%+1024:mode%=12:finished%= "Wimp_Initialise",200,&4B534154,"Sprite Mode" wimp%,taskh% "Interface_Initialise",taskh% 4sprite$=".Sprites": wimp%>=300 xsprite2$=sprite$: "XWimp_ReadSysInfo",2 a%;f%: 1)=0 sprite$+= a%?1:h%= sprite$: h%=0 sprite$=sprite2$ ch%= sprite$:sprlen%= wspr% sprlen%+4:!wspr%=sprlen%: "OS_File",255,sprite$,wspr%+4 "Wimp_OpenTemplate",,".Templates" "Wimp_LoadTemplate",,q%,window%,windowend%,-1,"info" ,,window% "Wimp_CreateWindow",,q% info% "Wimp_LoadTemplate",,q%,window%,windowend%,-1,"main" ,,window% /q%!64=wspr%: "Wimp_CreateWindow",,q% main% "Wimp_CloseTemplate" ("Load .Menu "+ ~menu%):menu%!32=info% h!q%=-1:q%!4=0:q%!8=0:q%!12=68:q%!16=64:q%!20=&3002:$(q%+24)="!spritemde": "Wimp_CreateIcon",,q% opt%=0 2:P%=redraw%:[OPT opt%:ADR R1,q%:SWI"Wimp_RedrawWindow":.loop:CMN R0,#1:MOVNE PC,R14:ADR R1,q%:SWI"Interface_Render3dWindow":SWI"Wimp_GetRectangle":B loop:]: error "Hourglass_Off" "Wimp_Poll",,q% reason% "Interface_Poll",reason%,,taskh% "Interface_PreProcessKey",reason%,q%,taskh% reason% reason% redraw% "Wimp_OpenWindow",,q% "Wimp_CloseWindow",,q% 6:buttons%=q%!8:window%=q%!12:icon%=q%!16: window% icon% buttons% openwindow(main%) "Wimp_CreateMenu",,menu%,!q%-72,184 main% buttons% q%!8=1 seticonstate(main%,icon%,1<<21,1<<21) icon% seticontext(main%,37,"4") seticontext(main%,37,"1") seticontext(main%,37,"9") seticontext(main%,37,"13") seticontext(main%,37,"0") seticontext(main%,37,"8") seticontext(main%,37,"12") seticontext(main%,37,"15") seticontext(main%,37,"25") seticontext(main%,37,"26") seticontext(main%,37,"27") seticontext(main%,37,"28") seticontext(main%,37,"18") seticontext(main%,37,"19") seticontext(main%,37,"20") seticontext(main%,37,"21") seticontext(main%,37,"16") seticontext(main%,37,"24") seticontext(main%,37,"33") seticontext(main%,37,"34") seticontext(main%,37,"35") seticontext(main%,37,"36") seticontext(main%,37,"66") seticontext(main%,37,"67") q%!24 n%=12 seticonstate(main%,n%,0,1<<21): "Wimp_SetCaretPosition",-1 "Wimp_ProcessKey",q%!24 1:finished%= 17,18: receive(reason%) finished% "Interface_CloseDown",taskh% "Wimp_CloseDown",taskh%,&4B534154 var(ptr%):string$="": ?ptr%<>0:string$+= ?ptr%:ptr%+=1: :=string$ openwindow(wind%):!q%=wind%: "Wimp_GetWindowState",,q%:q%!28=-1: "Wimp_OpenWindow",,q%: numfromicon(wind%,icon%):q%!256=wind%:q%!260=icon%: "Wimp_GetIconState",,q%+256:string$=$q%!284: string$=""string$= string$ seticonstate(wind%,icon%,eor%,clear%):q%!256=wind%:q%!260=icon%:q%!264=eor%:q%!268=clear%: "Wimp_SetIconState",,q%+256: geticonstate(wind%,icon%):q%!256=wind%:q%!260=icon%: "Wimp_GetIconState",,q%+256: seticontext(wind%,icon%,text$) geticonstate(wind%,icon%):$ textaddr(wind%,icon%)=text$:q%!264=0:q%!268=0: "Wimp_SetIconState",,q%+256 "Wimp_SetCaretPosition",-1 textaddr(wind%,icon%): geticonstate(wind%,icon%):=q%!284 receive(r%) q%!16 0:finished%= q%!40=&FF9 dosprite( var(q%+44)) error k.r$= $+" (IEC "+ +") (Cancel to quit app)" :$(q%+4)=r$+ "Wimp_ReportError",q%,3,"Sprite Mode" ,buttons% buttons%=2 finished%= dosprite(filename$) (filename$) #ch%=4 #ch%= #ch%+36 #ch%, numfromicon(main%,37) word:= #ch%<<8 #ch%<<16 #ch%<<24