[男の娘ソフト] ベルダーシュ ~僕と私の逃避行~这游戏怎么回事? 我好不容易才下完 打开却出现个例外通知方框里面还有一大堆乱码- -// KAGLayer.tjs - KAG 偺儗僀儎偺婎杮僋儔僗
// Copyright (C)2001-2009, W.Dee and contributors 夵曄丒攝晍偼帺桼偱偡
/*
儗僀儎娭楢偺僋儔僗奒憌
Layer ( 媑棦媑棦僱僀僥傿償僋儔僗 )
|
+-- KAGLayer ( 偙偺僼傽僀儖 )
|
+-- AnimationLayer ( AnimationLayer.tjs )
| |
| +-- ClickGlyphLayer ( AnimationLayer.tjs )
| |
| +-- GraphicLayer ( GraphicLayer.tjs )
| |
| +-- BaseLayer ( GraphicLayer.tjs )
| |
| +-- CharacterLayer ( GraphicLayer.tjs )
|
+-- MessageLayer ( MessageLayer.tjs )
|
+-- ButtonLayer ( ButtonLayer.tjs )
| |
| +-- LinkButtonLayer ( MessageLayer.tjs )
| |
| +-- LButtonLayer ( HistoryLayer.tjs )
|
+-- EditLayer ( EditLayer.tjs )
| |
| +-- LinkEditLayer ( MessageLayer.tjs )
|
+-- CheckBoxLayer ( CheckBoxLayer.tjs )
|
+-- LinkCheckBoxLayer ( MessageLayer.tjs )
*/
/*
丂偪傚偭偲傢偐傝偯傜偄丄僩儔儞僕僔儑儞廔椆帪偺摦嶌偵偮偄偰妎偊彂偒
丂媑棦媑棦偼僩儔儞僕僔儑儞廔椆帪偵丄僩儔儞僕僔儑儞尦(src=憡庤)偑偁傞応崌偼丄
巕儗僀儎傪娷傓(children=true)応崌偼憡庤偲僣儕乕偛偲帺暘帺恎偺儗僀儎傪岎姺偟丄
巕儗僀儎傪娷傑側偄(children=false)応崌偼丄巕偺愨懳揑側僣儕乕忋偺埵抲偼偦偺
傑傑偵偟偰憡庤偲擖傟懼傢傞丅
丂巕儗僀儎傪娷傑側偄僩儔儞僕僔儑儞傪峴偊傞偺偼攚宨儗僀儎偺傒丅
僩儔儞僕僔儑儞傪峴偆偲丄忋婰偵偍偗傞乽擖傟懼偊乿傪峴偆偑丄媑棦媑棦杮懱偺
擖傟懼偊丄偼 name 側偳偺廳梫側忣曬傕擖傟懼偊偰偟傑偆偺偱丄
GraphicLayer.exchangeInfo 偱撪梕傪岎姺偡傞丅
傑偨丄trans 懏惈偱 exchange=true 偑巜掕偝傟偨応崌偼丄椉幰偺儗僀儎偼擖傟懼傢
傞偑丄exchange=false (僨僼僅儖僩) 偑巜掕偝傟偨応崌偼丄僩儔儞僕僔儑儞尦(src)
偐傜僩儔儞僕僔儑儞愭傊偺忣曬偺僐僺乕傪峴傢側偄偲側傜側偄丅
src側偟 偺帪偼儗僀儎扨撈偱偺僩儔儞僕僔儑儞偑峴傢傟傞偺偱偙傟傜偺峫椂偼
昁梫側偄偑丄廔椆帪偵偼巕儗僀儎偑偡傋偰旕昞帵偵側傞丅
丒儊僢僙乕僕儗僀儎丄慜宨儗僀儎偑丄src側偟偱僩儔儞僕僔儑儞 (children=true)
丂壗傕偟側偔偰傛偄偑丄廔椆屻偦傟傜偺巕儗僀儎偼帺摦揑偵旕昞帵偵側傞丅
丒儊僢僙乕僕儗僀儎丄慜宨儗僀儎偑丄src偁傝偱僩儔儞僕僔儑儞 (children=true)
丂廳梫側忣曬傪僩儔儞僕僔儑儞尦偲岎姺丄exchange=false 偺応崌偼偝傜偵
丂僩儔儞僕僔儑儞尦偺忣曬傪僩儔儞僕僔儑儞愭偵僐僺乕丅偨偩偟丄偙偺僐僺乕偺嵺偵
丂僂傿儞僪僂偺壜帇丒晄壜帇偺忣曬偼僐僺乕偟側偄丅
丒攚宨儗僀儎偑src側偟偱僩儔儞僕僔儑儞(children=true)
丂壗傕偟側偔偰傛偄偑丄廔椆帪偵巕儗僀儎偼旕昞帵偵側傞丅
丒攚宨儗僀儎偑src側偟偱僩儔儞僕僔儑儞(children=false)
丂杮摉偵壗傕偟側偄丅
丒攚宨儗僀儎偑src偁傝偱僩儔儞僕僔儑儞(children=true)
丂廳梫側忣曬傪僩儔儞僕僔儑儞尦偲岎姺丄偟偐傕巕儗僀儎偵懳偟偰傕偙偺
丂乽廳梫側忣曬傪憡庤偲岎姺乿偺巜帵傪弌偡丅exchange=false 偺応崌偼偝傜偵
丂僩儔儞僕僔儑儞尦偺忣曬傪僩儔儞僕僔儑儞愭偵僐僺乕丅偙傟傕丄巕儗僀儎偡傋偰
丂偵懳偟偰傕巜帵偡傞丅
丒攚宨儗僀儎偑src偁傝偱僩儔儞僕僔儑儞(children=false)
丂廳梫側忣曬傪僩儔儞僕僔儑儞尦偲岎姺丅巕儗僀儎偵懳偟偰偼
丂乽廳梫側忣曬傪憡庤偲岎姺乿偺巜帵傪偩偝側偄丅exchange=false 偺応崌偼
丂偝傜偵僩儔儞僕僔儑儞尦偺忣曬傪僩儔儞僕僔儑儞愭偵僐僺乕丅
丂偙傟傕巕儗僀儎偵懳偟偰偼巜帵偟側偄丅
*/
class KAGLayer extends Layer
{
// KAG 偱梡偄傞攚宨/慜宨儗僀儎丄儊僢僙乕僕儗僀儎丄儃僞儞儗僀儎側偳偺婎杮僋儔僗
var inTransition = false; // 僩儔儞僕僔儑儞拞偐
var transExchange = false; // 僩儔儞僕僔儑儞廔椆帪偵擖傟懼偊傪峴偆偐
var transWithChildren = false; // 僩儔儞僕僔儑儞偼巕儗僀儎傕娷傔偰峴偆偐
var moveObject; // 尰嵼恑峴拞偺帺摦堏摦梡僆僽僕僃僋僩(恑峴偟偰偄側偄偲偒偼void)
function KAGLayer(win, par)
{
super.Layer(win, par);
}
function finalize()
{
invalidate moveObject if moveObject !== void;
super.finalize(...);
}
function setOptions(elm)
{
// elm 偵廬偭偰儗僀儎偺僆僾僔儑儞傪愝掕
visible = +elm.visible if elm.visible !== void;
left = +elm.left if elm.left !== void;
top = +elm.top if elm.top !== void;
opacity = +elm.opacity if elm.opacity !== void;
if(elm.modal !== void)
{
// this would not work well
var modal = elm.modal;
if(modal) setMode(), focus(); else removeMode();
}
absolute = +elm.index if elm.index !== void;
}
function loadImages(storage, key)
{
// loadImages 僆乕僶乕儔僀僪
key = adjustColorKey(key);
return super.loadImages(storage, key);
}
function adjustColorKey(key)
{
// 暥帤楍偱梌偊傜傟偨僇儔乕僉乕偺曄姺
if(key === void)
key = clNone;
else if(typeof key == "String")
{
if(key == "adapt")
key = clAdapt; // adaptive color key
else
{
if(key.length >= 7)
key = +key;
else
key = +key + 0x3000000; // 0x3000000 = 僷儗僢僩僀儞僨僢僋僗偵傛傞巜掕
}
}
return key;
}
function assignImages(src, copyvisiblestate = false)
{
// assignImages 僆乕僶乕儔僀僪
// src 偺乽栚偵尒偊傞乿忣曬傪偙偺儗僀儎偵僐僺乕偡傞
// 僐僺乕偝傟傞撪梕偼丄
// 丒摟柧搙
// 丒埵抲
// 丒昞帵僒僀僘
// 丒儗僀儎撪夋憸昞帵埵抲(imageLeft, imageTop)
// ( 忋婰俁偮偼 copyvisiblestate = true 偺偽偁偄 )
// 丒夋憸僒僀僘
// 丒儗僀儎夋憸丄椞堟夋憸
super.assignImages(src);
if(copyvisiblestate)
{
var su = super;
su.visible = src.visible;
su.opacity = src.opacity;
su.absolute = src.absolute if !src.isPrimary && src.parent.absoluteOrderMode;
su.type = src.type;
su.setPos(src.left, src.top, src.width, src.height);
su.setImagePos(src.imageLeft, src.imageTop);
}
}
function assignVisibleState(src)
{
// src 偐傜忋婰 assignImages 偺偆偪丄copyvisiblestate = true 偵
// 偟偨偲偒偩偗偵僐僺乕偝傟傞忣曬傪僐僺乕
visible = src.visible;
opacity = src.opacity;
absolute = src.absolute if !src.isPrimary && src.parent.absoluteOrderMode;
type = src.type;
setPos(src.left, src.top, src.width, src.height);
setImagePos(src.imageLeft, src.imageTop);
}
function beginTransition(elm, src)
{
// beginTransition 僆乕僶乕儔僀僪
// elm 偵廬偄丄僩儔儞僕僔儑儞傪奐巒偡傞
// src 偵偼僩儔儞僕僔儑儞偺憡庤傪巜掕
// stopTransition(); // 尰嵼偺僩儔儞僕僔儑儞偼掆巭
if(elm.exchange !== void) transExchange = +elm.exchange; else transExchange = false;
var method = elm.method;
if(elm.time !== void)
{
elm.time = 1 if +elm.time == 0; // 帪娫偵 0 偼巜掕偱偒側偄偺偱
}
if(method === void)
{
method = 'universal'; // 僨僼僅儖僩偱儐僯僶乕僒儖
}
else if(method == 'scroll')
{
// 僷儔儊乕僞偺曄姺
switch(elm.from)
{
case 'left': elm.from = sttLeft; break;
case 'top': elm.from = sttTop; break;
case 'right': elm.from = sttRight; break;
case 'bottom': elm.from = sttBottom; break;
}
switch(elm.stay)
{
case 'nostay': elm.stay = ststNoStay; break;
case 'stayback': elm.stay = ststStaySrc; break;
case 'stayfore': elm.stay = ststStayDest; break;
default: elm.stay = ststNoStay; break;
}
}
var withchildren = elm.children;
if(withchildren === void)
withchildren = true;
else
withchildren = +withchildren;
transWithChildren = withchildren;
inTransition = true;
window.transCount++; // 恑峴拞偺僩儔儞僕僔儑儞偺悢傪憹傗偡
super.beginTransition(method, withchildren, src, elm);
}
function onTransitionCompleted(dest, src)
{
super.onTransitionCompleted(...);
if(window != null)
{
inTransition = false;
window.transCount--; // 恑峴拞偺僩儔儞僕僔儑儞偺悢傪尭傜偡
atEndOfTransition(src, transWithChildren, transExchange);
window.onLayerTransitionCompleted(this, dest, src);
}
}
function atEndOfTransition(src, withchildren, exchange)
{
// 昁梫偵墳偠偰 僆乕僶乕儔僀僪偡傞偙偲
// 僩儔儞僕僔儑儞偑廔椆偟偨偲偒偵屇偽傟傞丅
// 儗僀儎扨撈偱僩儔儞僕僔儑儞偑峴傢傟偨応崌偼 src 偼 null 偵側傞丅
// 偦偆偱側偄応崌丄exchange 偑 true 偺帪偼丄src 偲 帺暘偺撪梕
// 傪庢傝懼偊丄偦偆偱側偗傟偽 src 偵帺暘偺撪梕
// 傪僐僺乕丅
// 巕儗僀儎傕娷傔偰僩儔儞僕僔儑儞偑峴傢傟偨応崌偼 withchildren 偑
// true 偵側傞丅
// root 偼丄僩儔儞僕僔儑儞偺戝杮偵懳偟偰屇偽傟傞偲偒偵 true 偵側傞丅
}
function beginMove(elm)
{
// elm 偵廬偄帺摦堏摦傪奐巒偡傞
stopMove();
// path 偺暘夝
var array = [].split("(), ", elm.path, , true);
for(var i = array.count-1; i>=0; i--) array[i+3] = +array;
array[0] = left;
array[1] = top;
array[2] = opacity;
// 堏摦梡僆僽僕僃僋僩偺嶌惉
if(elm.spline !== void && +elm.spline)
{
// 僗僾儔僀儞曗娫
moveObject = new SplineMover(this, array, +elm.time,
elm.accel === void ? 0 : +elm.accel, moveFinalFunction);
}
else
{
// 捈慄曗娫
moveObject = new LinearMover(this, array, +elm.time,
elm.accel === void ? 0 : +elm.accel, moveFinalFunction);
}
window.moveCount++;
moveObject.startMove(+elm.delay);
}
function moveFinalFunction()
{
// 帺摦堏摦偑廔椆偡傞偲偒偵屇偽傟傞娭悢
window.moveCount--;
window.onLayerMoveStop();
}
function stopMove()
{
if(moveObject !== void) invalidate moveObject, moveObject = void;
}
// 僼儗乕儉斣崋傪巜掕偟偨move
function beginFrameMove(elm)
{
// elm 偵廬偄帺摦堏摦傪奐巒偡傞
stopMove();
var ox = elm.ox === void ? 0 : +elm.ox;
var oy = elm.oy === void ? 0 : +elm.oy;
var fps = elm.fps === void ? 30 : +elm.fps;
// path 偺暘夝
var array = [].split("(), ", elm.path, , true);
for(var i = array.count-1; i>=0; i--) array[i+4] = +array;
array[0] = 0;
array[1] = left - ox;
array[2] = top - oy;
array[3] = opacity;
// 堏摦梡僆僽僕僃僋僩偺嶌惉
moveObject = new LinearFrameMover(this, array, fps, moveFinalFunction, ox, oy );
window.moveCount++;
moveObject.startMove();
}
function store()
{
// 帿彂攝楍偵尰嵼偺忬懺傪曐懚偡傞
var dic = %[];
dic.left = left;
dic.top = top;
dic.width = width;
dic.height = height;
dic.imageWidth = imageWidth;
dic.imageHeight = imageHeight;
dic.opacity = opacity;
dic.visible = visible;
dic.imageLeft = imageLeft;
dic.imageTop = imageTop;
dic.absolute = absolute;
dic.type = type;
return dic;
}
function restore(dic)
{
// 帿彂攝楍 dic 偐傜忣曬傪撉傒弌偟丄偙偺儗僀儎偵愝掕偡傞
setImageSize(dic.imageWidth, dic.imageHeight);
setPos(dic.left, dic.top, dic.width, dic.height);
setImagePos(dic.imageLeft, dic.imageTop);
opacity = dic.opacity;
visible = dic.visible;
absolute = dic.absolute if !isPrimary && dic.absolute !== void;
type = dic.type if !isPrimary && dic.type !== void;
}
/**
* 儗僀儎傊偺怓斀塮張棟
* @param left
* @param top
* @param width
* @param height
* @param color 揾傝偮傇偡怓(儅僗僋抣傪娷傓乯
* @param mode 崌惉儌乕僪
*/
function fillOperateRect(left, top, width, height, color, mode)
{
var tw = 128;
var th = 64;
var fillLayer = new global.Layer(window, this);
// 尦乆媑棦媑棦偺傕偺側傜丄晄摟柧偺堦怓儗僀儎乕傪丄晄摟柧搙傪巜掕偟偰昤夋丅
// PhotoShop弨嫆偺傕偺側傜丄敿摟柧偺堦怓儗僀儎乕傪丄摟柧搙傪巜掕偣偢(opacity=255)偵昤夋丅
var orgmodes = %[ltOpaque=>1,ltAlpha=>1,ltAddAlpha=>1,ltAdditive=>1,ltSubtractive=>1,ltMultiplicative=>1,ltDodge=>1,ltLighten=>1,ltDarken=>1,ltScreen=>1];
fillLayer.setSize(tw, th);
var opacity = 255;
var lastface = face, lastha = holdAlpha;
if(orgmodes[mode])
{
fillLayer.fillRect(0, 0, tw, th, color | 0xFF000000);
opacity = (color >> 24) & 0xFF;
face = dfOpaque;
}
else
fillLayer.fillRect(0, 0, tw, th, color);
holdAlpha = true if !isPrimary;
var x = 0;
var y = 0;
while (y < height) {
var x2 = x;
while (x2 < width) {
//Debug.message("pos:" + x2 + "," + y);
global.Layer.operateRect(x2, y, fillLayer, 0, 0, tw, th, mode, opacity);
x2 += tw;
}
y += th;
}
face = lastface, holdAlpha = lastha;
// 屻曅晅偗
invalidate fillLayer;
}
/**
* 塭傪捛壛偡傞
* @param dx 塭偺X堏摦検 (塃偵僾儔僗)
* @param dy 塭偺Y堏摦検 (壓偵僾儔僗)
* @param blur 傏偐偟検
* @param shadowColor 塭偺怓
* @param shadoAlpha 塭偺晄摟柧搙
*/
function doDropShadow(dx=10, dy=10, blur=3, shadowColor=0x000000, shadowOpacity=200)
{
var THIS = global.Layer;
// 嶌嬈梡儗僀儎
var work = new THIS(window, parent);
work.setImagePos(THIS.imageLeft, THIS.imageTop);
work.setImageSize(THIS.imageWidth, THIS.imageHeight);
// 塭惗惉張棟
var shadow = new THIS(window, parent);
shadow.assignImages(this);
// 揾傝偮傇偟
shadow.face = dfMain;
shadow.holdAlpha = true;
shadow.fillRect(THIS.imageLeft, THIS.imageTop, THIS.imageWidth, THIS.imageHeight, shadowColor);
shadow.face = dfBoth;
shadow.holdAlpha = false;
// 傏偐偡
shadow.doBoxBlur(blur, blur);
// 塭傪僐僺乕
work.operateRect(THIS.imageLeft + dx, THIS.imageTop + dy, shadow, THIS.imageLeft, THIS.imageTop, THIS.imageWidth, THIS.imageHeight, ltPsNormal, shadowOpacity);
// 帺暘傪僐僺乕
work.operateRect(THIS.imageLeft, THIS.imageTop, this, THIS.imageLeft, THIS.imageTop, THIS.imageWidth, THIS.imageHeight, ltPsNormal, 255);
// 夋憸偝偟偐偊
THIS.assignImages(work);
// 屻曅晅偗
invalidate work;
invalidate shadow;
};
}
以上是这个例外通知里的乱码 我也不知道是怎么回事 哪位大哥 知道的告诉下小弟我怎么搞 谢谢 小弟在此跪求了╮(╯▽╰)╭