clean up warnings, make message fit in messagebar
This commit is contained in:
parent
02fcfd66ca
commit
54720c58bb
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue