clean up warnings, make message fit in messagebar

This commit is contained in:
Jeremy Penner 2011-02-04 11:16:07 -08:00
parent 02fcfd66ca
commit 54720c58bb

View file

@ -234,13 +234,14 @@ package
dragView = null; dragView = null;
} }
var rgtok: Array;
if (Input.mousePressed) if (Input.mousePressed)
{ {
if (Input.check(Key.SHIFT)) // shift-click -- begin view dragging if (Input.check(Key.SHIFT)) // shift-click -- begin view dragging
dragView = Drag.Claim(); dragView = Drag.Claim();
else // click -- select a token else // click -- select a token
{ {
var rgtok: Array = []; rgtok = [];
getLayer(LAYER_TOKENS, rgtok); getLayer(LAYER_TOKENS, rgtok);
tokSelected = null; tokSelected = null;
// getLayer returns tokens in draw order, which means furthest back first // getLayer returns tokens in draw order, which means furthest back first
@ -269,7 +270,7 @@ package
var fDirty:Boolean = false; var fDirty:Boolean = false;
if (!fForceQuit) if (!fForceQuit)
{ {
var rgtok: Array = []; rgtok = [];
getLayer(LAYER_TOKENS, rgtok); getLayer(LAYER_TOKENS, rgtok);
for each (var tok:Token in rgtok) for each (var tok:Token in rgtok)
{ {
@ -283,7 +284,7 @@ package
if (fDirty && !fForceQuit) if (fDirty && !fForceQuit)
{ {
fForceQuit = true; fForceQuit = true;
ShowMsg("Unsaved! Press ESC again to confirm.", function() { fForceQuit = false; }); ShowMsg("Unsaved! Press ESC again to quit.", function():void { fForceQuit = false; });
} }
else else
FP.world = dgWorldPrev(); FP.world = dgWorldPrev();