03/02/10 19:15 HK5iMaxI
[eval exp="var loaded=false"]
[macro name=historyStore][eval exp="historyStore()"][endmacro]
[macro name=historyRestore][eval exp="historyRestore()"][endmacro]
[iscript]
function historyStore()
{
var i;
f.history=[];
for(i=0;i<kag.historyLayer.data.count;i++)
{
f.history[i]=kag.historyLayer.data[i];
}}
function historyRestore()
{
if(loaded==true)
{
var i;
kag.historyLayer.clear();
kag.historyLayer.dataPos=0;
for(i=0;i<f.history.count;i++)
{
kag.historyLayer.currentLine = f.history[i];
if(i!=f.history.count-1) kag.historyLayer.reline();
}
loaded=false;
}}
[endscript]