mirror of
https://github.com/MapMakersAndProgrammers/TankiOnline2.0DemoClient.git
synced 2025-10-26 01:49:11 -07:00
package_6 alternativa.osgi.service.console
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
package_1 alternativa.osgi.service.console.variables
|
||||
package_6 alternativa.osgi.service.console
|
||||
package_7 alternativa.tanks
|
||||
package_10 alternativa.tanks.game
|
||||
package_13 alternativa.tanks.config
|
||||
@@ -35,7 +35,7 @@ package
|
||||
import package_4.name_28;
|
||||
import package_4.name_6;
|
||||
import package_5.name_3;
|
||||
import package_6.name_4;
|
||||
import alternativa.osgi.service.console.IConsole;
|
||||
import alternativa.tanks.InitBattleTask;
|
||||
import alternativa.tanks.TankTestTask;
|
||||
import package_8.name_24;
|
||||
@@ -102,7 +102,7 @@ package
|
||||
new ConsoleVarFloat("horizon_offset",0,-1000000,1000000,this.onFogSettingsChange);
|
||||
new ConsoleVarFloat("horizon_size",5000,0,1000000,this.onFogSettingsChange);
|
||||
new ConsoleVarString("fog_color","0x0",this.onFogSettingsChange);
|
||||
var _loc1_:name_4 = name_4(name_3.name_8().name_30(name_4));
|
||||
var _loc1_:IConsole = IConsole(name_3.name_8().name_30(IConsole));
|
||||
_loc1_.name_45("fog_texture",this.onFogTextureChange);
|
||||
new ConsoleVarFloat("beam_distance",7000,0,1000000,this.onLightSettingsChange);
|
||||
new ConsoleVarFloat("beam_spot",140,0,180,this.onLightSettingsChange);
|
||||
@@ -168,7 +168,7 @@ package
|
||||
}
|
||||
}
|
||||
|
||||
private function onFogTextureChange(param1:name_4, param2:Array) : void
|
||||
private function onFogTextureChange(param1:IConsole, param2:Array) : void
|
||||
{
|
||||
this.gameKernel.name_5().name_36(param2.join(" "));
|
||||
}
|
||||
@@ -192,7 +192,7 @@ package
|
||||
|
||||
private function initConsole() : void
|
||||
{
|
||||
var _loc1_:name_4 = name_4(name_3.name_8().name_30(name_4));
|
||||
var _loc1_:IConsole = IConsole(name_3.name_8().name_30(IConsole));
|
||||
_loc1_.width = 100;
|
||||
_loc1_.alpha = 0.8;
|
||||
_loc1_.height = 30;
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
package package_6
|
||||
package alternativa.osgi.service.console
|
||||
{
|
||||
import package_39.name_160;
|
||||
import package_39.name_450;
|
||||
|
||||
public class name_356 implements name_450
|
||||
public class ClientLogConnector implements name_450
|
||||
{
|
||||
private static const ALL_CHANNELS:String = "all";
|
||||
|
||||
private var clientLog:name_160;
|
||||
|
||||
private var console:name_4;
|
||||
private var console:IConsole;
|
||||
|
||||
public function name_356(clientLog:name_160, console:name_4)
|
||||
public function ClientLogConnector(clientLog:name_160, console:IConsole)
|
||||
{
|
||||
super();
|
||||
this.clientLog = clientLog;
|
||||
@@ -23,7 +23,7 @@ package package_6
|
||||
this.console.method_143(channelName + " ",logText);
|
||||
}
|
||||
|
||||
public function name_371(console:name_4, args:Array) : void
|
||||
public function name_371(console:IConsole, args:Array) : void
|
||||
{
|
||||
if(args.length < 1)
|
||||
{
|
||||
@@ -35,11 +35,11 @@ package package_6
|
||||
{
|
||||
case "c":
|
||||
case "connect":
|
||||
this.method_624(args);
|
||||
this.connectChannels(args);
|
||||
break;
|
||||
case "d":
|
||||
case "disconnect":
|
||||
this.method_625(args);
|
||||
this.disconnectChannels(args);
|
||||
break;
|
||||
case "show":
|
||||
if(args.length == 0)
|
||||
@@ -47,7 +47,7 @@ package package_6
|
||||
console.name_145("Usage: log show channel_name [filter_string]");
|
||||
break;
|
||||
}
|
||||
this.method_623(console,args[0],args[1]);
|
||||
this.printFilteredLines(console,args[0],args[1]);
|
||||
break;
|
||||
case "ls":
|
||||
case "list":
|
||||
@@ -56,7 +56,7 @@ package package_6
|
||||
}
|
||||
}
|
||||
|
||||
private function method_623(console:name_4, channelName:String, filterString:String) : void
|
||||
private function printFilteredLines(console:IConsole, channelName:String, filterString:String) : void
|
||||
{
|
||||
var filteredStrings:Vector.<String> = null;
|
||||
var channelStrings:Vector.<String> = this.clientLog.getChannelStrings(channelName);
|
||||
@@ -82,7 +82,7 @@ package package_6
|
||||
}
|
||||
}
|
||||
|
||||
private function method_624(channels:Array) : void
|
||||
private function connectChannels(channels:Array) : void
|
||||
{
|
||||
var channelName:String = null;
|
||||
if(channels.length == 0)
|
||||
@@ -108,7 +108,7 @@ package package_6
|
||||
}
|
||||
}
|
||||
|
||||
private function method_625(channels:Array) : void
|
||||
private function disconnectChannels(channels:Array) : void
|
||||
{
|
||||
var channelName:String = null;
|
||||
if(channels.length == 0)
|
||||
@@ -1,4 +1,4 @@
|
||||
package package_6
|
||||
package alternativa.osgi.service.console
|
||||
{
|
||||
import flash.display.Graphics;
|
||||
import flash.display.Sprite;
|
||||
@@ -18,7 +18,7 @@ package package_6
|
||||
import package_15.name_634;
|
||||
import package_15.name_635;
|
||||
|
||||
public class name_354 implements name_4
|
||||
public class Console implements IConsole
|
||||
{
|
||||
private static const DEFAULT_BG_COLOR:uint = 16777215;
|
||||
|
||||
@@ -82,33 +82,33 @@ package package_6
|
||||
|
||||
private var filter:String;
|
||||
|
||||
public function name_354(stage:Stage, widthPercent:int, heightPercent:int, hAlign:int, vAlign:int)
|
||||
public function Console(stage:Stage, widthPercent:int, heightPercent:int, hAlign:int, vAlign:int)
|
||||
{
|
||||
super();
|
||||
this.stage = stage;
|
||||
this.buffer = new name_634(1000);
|
||||
this.method_566(stage);
|
||||
this.method_584();
|
||||
this.method_580();
|
||||
this.calcTextMetrics(stage);
|
||||
this.initInput();
|
||||
this.initOutput();
|
||||
this.method_140(widthPercent,heightPercent);
|
||||
this.method_138 = hAlign;
|
||||
this.method_137 = vAlign;
|
||||
stage.addEventListener(KeyboardEvent.KEY_UP,this.method_233);
|
||||
stage.addEventListener(Event.RESIZE,this.method_4);
|
||||
this.name_45("hide",this.method_571);
|
||||
this.name_45("copy",this.method_583);
|
||||
this.name_45("clear",this.method_577);
|
||||
this.name_45("cmdlist",this.method_574);
|
||||
this.name_45("con_height",this.method_573);
|
||||
this.name_45("con_width",this.method_564);
|
||||
this.name_45("con_halign",this.method_575);
|
||||
this.name_45("con_valign",this.method_572);
|
||||
this.name_45("con_alpha",this.method_569);
|
||||
this.name_45("con_bg",this.method_570);
|
||||
this.name_45("con_fg",this.method_589);
|
||||
this.name_45("filter",this.method_582);
|
||||
this.name_45("varlist",this.method_565);
|
||||
this.name_45("varlistv",this.method_579);
|
||||
stage.addEventListener(KeyboardEvent.KEY_UP,this.onKeyUp);
|
||||
stage.addEventListener(Event.RESIZE,this.onResize);
|
||||
this.name_45("hide",this.onHide);
|
||||
this.name_45("copy",this.copyConsoleContent);
|
||||
this.name_45("clear",this.clearConsole);
|
||||
this.name_45("cmdlist",this.listCommands);
|
||||
this.name_45("con_height",this.onConsoleHeight);
|
||||
this.name_45("con_width",this.onConsoleWidth);
|
||||
this.name_45("con_halign",this.onHorizontalAlign);
|
||||
this.name_45("con_valign",this.onVerticalAlign);
|
||||
this.name_45("con_alpha",this.onAlpha);
|
||||
this.name_45("con_bg",this.onBackgroundColor);
|
||||
this.name_45("con_fg",this.onForegroundColor);
|
||||
this.name_45("filter",this.onFilterCommand);
|
||||
this.name_45("varlist",this.printVars);
|
||||
this.name_45("varlistv",this.printVarsValues);
|
||||
}
|
||||
|
||||
public function name_147(variable:ConsoleVar) : void
|
||||
@@ -125,7 +125,7 @@ package package_6
|
||||
{
|
||||
value = this.clamp(value,1,3);
|
||||
this.align = this.align & ~3 | value;
|
||||
this.method_556();
|
||||
this.updateAlignment();
|
||||
}
|
||||
|
||||
public function get method_138() : int
|
||||
@@ -137,7 +137,7 @@ package package_6
|
||||
{
|
||||
value = this.clamp(value,1,3);
|
||||
this.align = this.align & ~0x0C | value << 2;
|
||||
this.method_556();
|
||||
this.updateAlignment();
|
||||
}
|
||||
|
||||
public function get method_137() : int
|
||||
@@ -148,20 +148,20 @@ package package_6
|
||||
public function name_145(text:String) : void
|
||||
{
|
||||
var needScroll:Boolean = this.buffer.size - this.var_530 <= this.var_529;
|
||||
var linesAdded:int = this.method_558(text);
|
||||
var linesAdded:int = this.addLine(text);
|
||||
if(needScroll)
|
||||
{
|
||||
this.method_555(linesAdded);
|
||||
this.scrollOutput(linesAdded);
|
||||
}
|
||||
}
|
||||
|
||||
public function method_143(prefix:String, text:String) : void
|
||||
{
|
||||
var needScroll:Boolean = this.buffer.size - this.var_530 <= this.var_529;
|
||||
var linesAdded:int = this.method_560(prefix,text);
|
||||
var linesAdded:int = this.addPrefixedLine(prefix,text);
|
||||
if(needScroll)
|
||||
{
|
||||
this.method_555(linesAdded);
|
||||
this.scrollOutput(linesAdded);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -172,11 +172,11 @@ package package_6
|
||||
var needScroll:Boolean = this.buffer.size - this.var_530 <= this.var_529;
|
||||
for each(line in lines)
|
||||
{
|
||||
linesAdded += this.method_558(line);
|
||||
linesAdded += this.addLine(line);
|
||||
}
|
||||
if(needScroll)
|
||||
{
|
||||
this.method_555(linesAdded);
|
||||
this.scrollOutput(linesAdded);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -187,11 +187,11 @@ package package_6
|
||||
var needScroll:Boolean = this.buffer.size - this.var_530 <= this.var_529;
|
||||
for each(line in lines)
|
||||
{
|
||||
linesAdded += this.method_560(prefix,line);
|
||||
linesAdded += this.addPrefixedLine(prefix,line);
|
||||
}
|
||||
if(needScroll)
|
||||
{
|
||||
this.method_555(linesAdded);
|
||||
this.scrollOutput(linesAdded);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -204,8 +204,8 @@ package package_6
|
||||
this.stage.addChild(this.container);
|
||||
this.stage.focus = this.input;
|
||||
this.visible = true;
|
||||
this.method_4(null);
|
||||
this.method_555(0);
|
||||
this.onResize(null);
|
||||
this.scrollOutput(0);
|
||||
}
|
||||
|
||||
public function hide() : void
|
||||
@@ -237,8 +237,8 @@ package package_6
|
||||
}
|
||||
this.var_535 = widthPercent;
|
||||
this.var_534 = heightPercent;
|
||||
this.method_557();
|
||||
this.method_556();
|
||||
this.updateSize();
|
||||
this.updateAlignment();
|
||||
}
|
||||
|
||||
public function set width(widthPercent:int) : void
|
||||
@@ -321,7 +321,7 @@ package package_6
|
||||
public function set alpha(value:Number) : void
|
||||
{
|
||||
this.var_541 = value;
|
||||
this.method_557();
|
||||
this.updateSize();
|
||||
}
|
||||
|
||||
public function get alpha() : Number
|
||||
@@ -329,7 +329,7 @@ package package_6
|
||||
return this.var_541;
|
||||
}
|
||||
|
||||
private function method_566(stage:Stage) : void
|
||||
private function calcTextMetrics(stage:Stage) : void
|
||||
{
|
||||
var tf:TextField = new TextField();
|
||||
tf.defaultTextFormat = DEFAULT_TEXT_FORMAT;
|
||||
@@ -340,7 +340,7 @@ package package_6
|
||||
stage.removeChild(tf);
|
||||
}
|
||||
|
||||
private function method_584() : void
|
||||
private function initInput() : void
|
||||
{
|
||||
this.input = new TextField();
|
||||
this.input.defaultTextFormat = DEFAULT_TEXT_FORMAT;
|
||||
@@ -350,25 +350,25 @@ package package_6
|
||||
this.input.backgroundColor = DEFAULT_BG_COLOR;
|
||||
this.input.border = true;
|
||||
this.input.borderColor = DEFAULT_FONT_COLOR;
|
||||
this.input.addEventListener(KeyboardEvent.KEY_DOWN,this.method_568);
|
||||
this.input.addEventListener(KeyboardEvent.KEY_UP,this.method_585);
|
||||
this.input.addEventListener(TextEvent.TEXT_INPUT,this.method_567);
|
||||
this.input.addEventListener(KeyboardEvent.KEY_DOWN,this.onInputKeyDown);
|
||||
this.input.addEventListener(KeyboardEvent.KEY_UP,this.onInputKeyUp);
|
||||
this.input.addEventListener(TextEvent.TEXT_INPUT,this.onTextInput);
|
||||
this.container.addChild(this.input);
|
||||
}
|
||||
|
||||
private function method_580() : void
|
||||
private function initOutput() : void
|
||||
{
|
||||
this.var_538 = new Sprite();
|
||||
this.var_538.addEventListener(MouseEvent.MOUSE_WHEEL,this.onMouseWheel);
|
||||
this.container.addChild(this.var_538);
|
||||
}
|
||||
|
||||
private function method_578(w:int, h:int) : void
|
||||
private function resizeOutput(w:int, h:int) : void
|
||||
{
|
||||
this.var_529 = h / (this.var_543 + this.var_545);
|
||||
this.var_542 = w / this.var_546 - 1;
|
||||
this.method_581(w);
|
||||
this.method_555(0);
|
||||
this.updateTextFields(w);
|
||||
this.scrollOutput(0);
|
||||
var g:Graphics = this.var_538.graphics;
|
||||
g.clear();
|
||||
g.beginFill(this.var_539,this.var_541);
|
||||
@@ -376,7 +376,7 @@ package package_6
|
||||
g.endFill();
|
||||
}
|
||||
|
||||
private function method_581(w:int) : void
|
||||
private function updateTextFields(w:int) : void
|
||||
{
|
||||
for(var tf:TextField = null; this.var_532.length > this.var_529; )
|
||||
{
|
||||
@@ -384,7 +384,7 @@ package package_6
|
||||
}
|
||||
while(this.var_532.length < this.var_529)
|
||||
{
|
||||
this.method_457();
|
||||
this.createTextField();
|
||||
}
|
||||
var lineHeight:int = this.var_543 + this.var_545;
|
||||
for(var i:int = 0; i < this.var_532.length; i++)
|
||||
@@ -395,7 +395,7 @@ package package_6
|
||||
}
|
||||
}
|
||||
|
||||
private function method_457() : void
|
||||
private function createTextField() : void
|
||||
{
|
||||
var tf:TextField = new TextField();
|
||||
tf.height = this.var_543;
|
||||
@@ -406,7 +406,7 @@ package package_6
|
||||
this.var_532.push(tf);
|
||||
}
|
||||
|
||||
private function method_555(delta:int) : void
|
||||
private function scrollOutput(delta:int) : void
|
||||
{
|
||||
this.var_530 += delta;
|
||||
if(this.var_530 + this.var_529 > this.buffer.size)
|
||||
@@ -417,18 +417,18 @@ package package_6
|
||||
{
|
||||
this.var_530 = 0;
|
||||
}
|
||||
this.method_576();
|
||||
this.updateOutput();
|
||||
}
|
||||
|
||||
private function method_576() : void
|
||||
private function updateOutput() : void
|
||||
{
|
||||
if(this.container.parent != null)
|
||||
{
|
||||
this.method_588();
|
||||
this.printPage();
|
||||
}
|
||||
}
|
||||
|
||||
private function method_588() : void
|
||||
private function printPage() : void
|
||||
{
|
||||
var pageLineIndex:int = 0;
|
||||
var iterator:name_632 = this.buffer.name_633(this.var_530);
|
||||
@@ -442,16 +442,16 @@ package package_6
|
||||
}
|
||||
}
|
||||
|
||||
private function method_568(e:KeyboardEvent) : void
|
||||
private function onInputKeyDown(e:KeyboardEvent) : void
|
||||
{
|
||||
if(this.method_559(e))
|
||||
if(this.isToggleKey(e))
|
||||
{
|
||||
this.var_544 = true;
|
||||
}
|
||||
switch(e.keyCode)
|
||||
{
|
||||
case Keyboard.ENTER:
|
||||
this.method_587();
|
||||
this.processInput();
|
||||
break;
|
||||
case Keyboard.ESCAPE:
|
||||
if(this.input.text != "")
|
||||
@@ -462,29 +462,29 @@ package package_6
|
||||
this.method_561(50);
|
||||
break;
|
||||
case Keyboard.UP:
|
||||
this.method_563();
|
||||
this.historyUp();
|
||||
break;
|
||||
case Keyboard.DOWN:
|
||||
this.method_586();
|
||||
this.historyDown();
|
||||
break;
|
||||
case Keyboard.PAGE_UP:
|
||||
this.method_555(-this.var_529);
|
||||
this.scrollOutput(-this.var_529);
|
||||
break;
|
||||
case Keyboard.PAGE_DOWN:
|
||||
this.method_555(this.var_529);
|
||||
this.scrollOutput(this.var_529);
|
||||
}
|
||||
e.stopPropagation();
|
||||
}
|
||||
|
||||
private function method_585(e:KeyboardEvent) : void
|
||||
private function onInputKeyUp(e:KeyboardEvent) : void
|
||||
{
|
||||
if(!this.method_559(e))
|
||||
if(!this.isToggleKey(e))
|
||||
{
|
||||
e.stopPropagation();
|
||||
}
|
||||
}
|
||||
|
||||
private function method_567(e:TextEvent) : void
|
||||
private function onTextInput(e:TextEvent) : void
|
||||
{
|
||||
if(this.var_544)
|
||||
{
|
||||
@@ -493,21 +493,21 @@ package package_6
|
||||
}
|
||||
}
|
||||
|
||||
private function method_559(e:KeyboardEvent) : Boolean
|
||||
private function isToggleKey(e:KeyboardEvent) : Boolean
|
||||
{
|
||||
return e.keyCode == 75 && Boolean(e.ctrlKey) && Boolean(e.shiftKey);
|
||||
}
|
||||
|
||||
private function method_587() : void
|
||||
private function processInput() : void
|
||||
{
|
||||
this.method_555(this.buffer.size);
|
||||
this.scrollOutput(this.buffer.size);
|
||||
var text:String = this.input.text;
|
||||
this.input.text = "";
|
||||
this.name_145("> " + text);
|
||||
this.method_139(text);
|
||||
}
|
||||
|
||||
private function method_563() : void
|
||||
private function historyUp() : void
|
||||
{
|
||||
if(this.var_531 == 0)
|
||||
{
|
||||
@@ -518,7 +518,7 @@ package package_6
|
||||
this.input.text = command == null ? "" : command;
|
||||
}
|
||||
|
||||
private function method_586() : void
|
||||
private function historyDown() : void
|
||||
{
|
||||
++this.var_531;
|
||||
if(this.var_531 >= this.var_533.length)
|
||||
@@ -532,9 +532,9 @@ package package_6
|
||||
}
|
||||
}
|
||||
|
||||
private function method_233(e:KeyboardEvent) : void
|
||||
private function onKeyUp(e:KeyboardEvent) : void
|
||||
{
|
||||
if(this.method_559(e))
|
||||
if(this.isToggleKey(e))
|
||||
{
|
||||
if(this.visible)
|
||||
{
|
||||
@@ -547,13 +547,13 @@ package package_6
|
||||
}
|
||||
}
|
||||
|
||||
private function method_4(event:Event) : void
|
||||
private function onResize(event:Event) : void
|
||||
{
|
||||
this.method_557();
|
||||
this.method_556();
|
||||
this.updateSize();
|
||||
this.updateAlignment();
|
||||
}
|
||||
|
||||
private function method_558(s:String) : int
|
||||
private function addLine(s:String) : int
|
||||
{
|
||||
var linesAdded:int = 0;
|
||||
var line:String = null;
|
||||
@@ -574,7 +574,7 @@ package package_6
|
||||
return linesAdded;
|
||||
}
|
||||
|
||||
private function method_560(prefix:String, s:String) : int
|
||||
private function addPrefixedLine(prefix:String, s:String) : int
|
||||
{
|
||||
var linesAdded:int = 0;
|
||||
var line:String = null;
|
||||
@@ -598,7 +598,7 @@ package package_6
|
||||
|
||||
private function onMouseWheel(event:MouseEvent) : void
|
||||
{
|
||||
this.method_555(-event.delta);
|
||||
this.scrollOutput(-event.delta);
|
||||
}
|
||||
|
||||
private function clamp(value:int, min:int, max:int) : int
|
||||
@@ -614,17 +614,17 @@ package package_6
|
||||
return value;
|
||||
}
|
||||
|
||||
private function method_557() : void
|
||||
private function updateSize() : void
|
||||
{
|
||||
var pixelHeight:int = 0.01 * this.var_534 * this.stage.stageHeight;
|
||||
var pixelWidth:int = 0.01 * this.var_535 * this.stage.stageWidth;
|
||||
var outputHeight:int = pixelHeight - INPUT_HEIGHT;
|
||||
this.method_578(pixelWidth,outputHeight);
|
||||
this.resizeOutput(pixelWidth,outputHeight);
|
||||
this.input.y = outputHeight;
|
||||
this.input.width = pixelWidth;
|
||||
}
|
||||
|
||||
private function method_556() : void
|
||||
private function updateAlignment() : void
|
||||
{
|
||||
var hAlign:int = this.align & 3;
|
||||
switch(hAlign)
|
||||
@@ -652,12 +652,12 @@ package package_6
|
||||
}
|
||||
}
|
||||
|
||||
private function method_571(console:name_4, params:Array) : void
|
||||
private function onHide(console:IConsole, params:Array) : void
|
||||
{
|
||||
this.method_561(100);
|
||||
}
|
||||
|
||||
private function method_583(console:name_4, params:Array) : void
|
||||
private function copyConsoleContent(console:IConsole, params:Array) : void
|
||||
{
|
||||
var iterator:name_632 = this.buffer.name_633(0);
|
||||
var result:String = "Console content:\n";
|
||||
@@ -669,13 +669,13 @@ package package_6
|
||||
this.name_145("Content has been copied to clipboard");
|
||||
}
|
||||
|
||||
private function method_577(console:name_4, params:Array) : void
|
||||
private function clearConsole(console:IConsole, params:Array) : void
|
||||
{
|
||||
this.buffer.clear();
|
||||
this.method_555(0);
|
||||
this.scrollOutput(0);
|
||||
}
|
||||
|
||||
private function method_574(console:name_4, params:Array) : void
|
||||
private function listCommands(console:IConsole, params:Array) : void
|
||||
{
|
||||
var commandName:String = null;
|
||||
var list:Array = [];
|
||||
@@ -690,7 +690,7 @@ package package_6
|
||||
}
|
||||
}
|
||||
|
||||
private function method_575(console:name_4, params:Array) : void
|
||||
private function onHorizontalAlign(console:IConsole, params:Array) : void
|
||||
{
|
||||
if(params.length == 0)
|
||||
{
|
||||
@@ -702,7 +702,7 @@ package package_6
|
||||
}
|
||||
}
|
||||
|
||||
private function method_572(console:name_4, params:Array) : void
|
||||
private function onVerticalAlign(console:IConsole, params:Array) : void
|
||||
{
|
||||
if(params.length == 0)
|
||||
{
|
||||
@@ -714,7 +714,7 @@ package package_6
|
||||
}
|
||||
}
|
||||
|
||||
private function method_564(console:name_4, params:Array) : void
|
||||
private function onConsoleWidth(console:IConsole, params:Array) : void
|
||||
{
|
||||
if(params.length == 0)
|
||||
{
|
||||
@@ -726,7 +726,7 @@ package package_6
|
||||
}
|
||||
}
|
||||
|
||||
private function method_573(console:name_4, params:Array) : void
|
||||
private function onConsoleHeight(console:IConsole, params:Array) : void
|
||||
{
|
||||
if(params.length == 0)
|
||||
{
|
||||
@@ -738,7 +738,7 @@ package package_6
|
||||
}
|
||||
}
|
||||
|
||||
private function method_569(console:name_4, params:Array) : void
|
||||
private function onAlpha(console:IConsole, params:Array) : void
|
||||
{
|
||||
if(params.length == 0)
|
||||
{
|
||||
@@ -750,7 +750,7 @@ package package_6
|
||||
}
|
||||
}
|
||||
|
||||
private function method_570(console:name_4, params:Array) : void
|
||||
private function onBackgroundColor(console:IConsole, params:Array) : void
|
||||
{
|
||||
if(params.length == 0)
|
||||
{
|
||||
@@ -759,13 +759,13 @@ package package_6
|
||||
else
|
||||
{
|
||||
this.var_539 = uint(params[0]);
|
||||
this.method_557();
|
||||
this.updateSize();
|
||||
this.input.backgroundColor = this.var_539;
|
||||
this.name_145("Background color set to " + this.var_539);
|
||||
}
|
||||
}
|
||||
|
||||
private function method_589(console:name_4, params:Array) : void
|
||||
private function onForegroundColor(console:IConsole, params:Array) : void
|
||||
{
|
||||
var tf:TextField = null;
|
||||
if(params.length == 0)
|
||||
@@ -787,7 +787,7 @@ package package_6
|
||||
}
|
||||
}
|
||||
|
||||
private function method_582(console:name_4, params:Array) : void
|
||||
private function onFilterCommand(console:IConsole, params:Array) : void
|
||||
{
|
||||
if(params.length < 2)
|
||||
{
|
||||
@@ -795,22 +795,22 @@ package package_6
|
||||
return;
|
||||
}
|
||||
this.filter = params.shift();
|
||||
this.method_558("filter: " + this.filter);
|
||||
this.addLine("filter: " + this.filter);
|
||||
this.method_139(params.join(" "));
|
||||
this.filter = null;
|
||||
}
|
||||
|
||||
private function method_565(console:name_4, args:Array) : void
|
||||
private function printVars(console:IConsole, args:Array) : void
|
||||
{
|
||||
this.method_562(args[0],false);
|
||||
this.printVariables(args[0],false);
|
||||
}
|
||||
|
||||
private function method_579(console:name_4, args:Array) : void
|
||||
private function printVarsValues(console:IConsole, args:Array) : void
|
||||
{
|
||||
this.method_562(args[0],true);
|
||||
this.printVariables(args[0],true);
|
||||
}
|
||||
|
||||
private function method_562(start:String, showValues:Boolean) : void
|
||||
private function printVariables(start:String, showValues:Boolean) : void
|
||||
{
|
||||
var name:String = null;
|
||||
var variable:ConsoleVar = null;
|
||||
@@ -1,8 +1,8 @@
|
||||
package package_6
|
||||
package alternativa.osgi.service.console
|
||||
{
|
||||
import alternativa.osgi.service.console.variables.ConsoleVar;
|
||||
|
||||
public interface name_4
|
||||
public interface IConsole
|
||||
{
|
||||
function show() : void;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package alternativa.osgi.service.console.variables
|
||||
{
|
||||
import package_5.name_3;
|
||||
import package_6.name_4;
|
||||
import alternativa.osgi.service.console.IConsole;
|
||||
|
||||
public class ConsoleVar
|
||||
{
|
||||
@@ -14,7 +14,7 @@ package alternativa.osgi.service.console.variables
|
||||
super();
|
||||
this.varName = varName;
|
||||
this.inputListener = inputListener;
|
||||
var console:name_4 = name_4(name_3.name_8().name_30(name_4));
|
||||
var console:IConsole = IConsole(name_3.name_8().name_30(IConsole));
|
||||
if(console != null)
|
||||
{
|
||||
console.name_147(this);
|
||||
@@ -28,7 +28,7 @@ package alternativa.osgi.service.console.variables
|
||||
|
||||
public function destroy() : void
|
||||
{
|
||||
var console:name_4 = name_4(name_3.name_8().name_30(name_4));
|
||||
var console:IConsole = IConsole(name_3.name_8().name_30(IConsole));
|
||||
if(console != null)
|
||||
{
|
||||
console.name_146(this.varName);
|
||||
@@ -36,7 +36,7 @@ package alternativa.osgi.service.console.variables
|
||||
this.inputListener = null;
|
||||
}
|
||||
|
||||
public function method_77(console:name_4, params:Array) : void
|
||||
public function method_77(console:IConsole, params:Array) : void
|
||||
{
|
||||
var oldValue:String = null;
|
||||
var errorText:String = null;
|
||||
|
||||
@@ -40,7 +40,7 @@ package alternativa.tanks
|
||||
import package_46.name_194;
|
||||
import package_47.name_193;
|
||||
import package_5.name_3;
|
||||
import package_6.name_4;
|
||||
import alternativa.osgi.service.console.IConsole;
|
||||
import package_71.name_234;
|
||||
import package_71.name_249;
|
||||
import package_71.name_252;
|
||||
@@ -207,7 +207,7 @@ package alternativa.tanks
|
||||
this.var_81 = new name_290(this.gameKernel.name_5());
|
||||
this.var_75 = new name_285();
|
||||
this.gameKernel.stage.addChild(this.var_75);
|
||||
var _loc3_:name_4 = name_4(name_3.name_8().name_30(name_4));
|
||||
var _loc3_:IConsole = IConsole(name_3.name_8().name_30(IConsole));
|
||||
_loc3_.name_45("addtank",this.consoleAddTankHandler);
|
||||
var _loc4_:XMLList = this.config.xml.elements("console-commands");
|
||||
if(_loc4_.length() > 0)
|
||||
@@ -272,7 +272,7 @@ package alternativa.tanks
|
||||
}
|
||||
}
|
||||
|
||||
private function executeConsoleCommands(param1:name_4, param2:String) : void
|
||||
private function executeConsoleCommands(param1:IConsole, param2:String) : void
|
||||
{
|
||||
var _loc4_:String = null;
|
||||
var _loc3_:Array = param2.split(/\r*\n/);
|
||||
@@ -282,7 +282,7 @@ package alternativa.tanks
|
||||
}
|
||||
}
|
||||
|
||||
private function consoleAddTankHandler(param1:name_4, param2:Array) : void
|
||||
private function consoleAddTankHandler(param1:IConsole, param2:Array) : void
|
||||
{
|
||||
this.addTank(TankParams.name_322(param2));
|
||||
}
|
||||
@@ -1140,7 +1140,7 @@ package alternativa.tanks
|
||||
return this.var_80.method_84(param1,FrameMaterialsFactory.INSTANCE) as Vector.<class_4>;
|
||||
}
|
||||
|
||||
private function listTanks(param1:name_4, param2:Array) : void
|
||||
private function listTanks(param1:IConsole, param2:Array) : void
|
||||
{
|
||||
var _loc3_:Entity = null;
|
||||
var _loc4_:name_237 = null;
|
||||
|
||||
@@ -2,7 +2,7 @@ package package_102
|
||||
{
|
||||
import flash.utils.Dictionary;
|
||||
import package_5.name_3;
|
||||
import package_6.name_4;
|
||||
import alternativa.osgi.service.console.IConsole;
|
||||
|
||||
public class name_359 implements name_355
|
||||
{
|
||||
@@ -16,7 +16,7 @@ package package_102
|
||||
{
|
||||
super();
|
||||
this.osgi = osgi;
|
||||
var console:name_4 = name_4(osgi.name_30(name_4));
|
||||
var console:IConsole = IConsole(osgi.name_30(IConsole));
|
||||
console.name_45("dump",this.method_594);
|
||||
this.var_548 = new Dictionary(false);
|
||||
this.var_547 = new Vector.<name_636>();
|
||||
@@ -89,7 +89,7 @@ package package_102
|
||||
return s;
|
||||
}
|
||||
|
||||
private function method_594(console:name_4, params:Array) : void
|
||||
private function method_594(console:IConsole, params:Array) : void
|
||||
{
|
||||
var dumperName:String = params.shift();
|
||||
console.name_145(this.dump(dumperName,params));
|
||||
|
||||
@@ -21,9 +21,9 @@ package package_11
|
||||
import package_39.name_160;
|
||||
import package_39.name_368;
|
||||
import package_5.name_3;
|
||||
import package_6.name_354;
|
||||
import package_6.name_356;
|
||||
import package_6.name_4;
|
||||
import alternativa.osgi.service.console.Console;
|
||||
import alternativa.osgi.service.console.ClientLogConnector;
|
||||
import alternativa.osgi.service.console.IConsole;
|
||||
import package_8.class_16;
|
||||
import package_8.name_24;
|
||||
import package_8.name_25;
|
||||
@@ -34,7 +34,7 @@ package package_11
|
||||
|
||||
private var clientLog:name_160;
|
||||
|
||||
private var console:name_354;
|
||||
private var console:Console;
|
||||
|
||||
private var var_83:KeyboardShortcut;
|
||||
|
||||
@@ -82,14 +82,14 @@ package package_11
|
||||
private function method_6(stage:Stage, urlParams:name_19) : void
|
||||
{
|
||||
var channelName:String = null;
|
||||
this.console = new name_354(stage,50,100,1,1);
|
||||
this.osgi.method_116(name_4,this.console);
|
||||
this.console = new Console(stage,50,100,1,1);
|
||||
this.osgi.method_116(IConsole,this.console);
|
||||
var consoleParams:String = urlParams.method_24("console");
|
||||
if(Boolean(consoleParams))
|
||||
{
|
||||
this.method_192(stage,this.console,consoleParams);
|
||||
}
|
||||
var clientLogConnector:name_356 = new name_356(this.clientLog,this.console);
|
||||
var clientLogConnector:ClientLogConnector = new ClientLogConnector(this.clientLog,this.console);
|
||||
this.console.name_45("log",clientLogConnector.name_371);
|
||||
var logChannels:String = urlParams.method_24("showlog");
|
||||
if(Boolean(logChannels))
|
||||
@@ -108,7 +108,7 @@ package package_11
|
||||
}
|
||||
}
|
||||
|
||||
private function method_192(stage:Stage, console:name_354, consoleParams:String) : void
|
||||
private function method_192(stage:Stage, console:Console, consoleParams:String) : void
|
||||
{
|
||||
var pair:String = null;
|
||||
var parts:Array = null;
|
||||
|
||||
@@ -37,7 +37,7 @@ package package_2
|
||||
import package_46.Matrix4;
|
||||
import package_46.name_194;
|
||||
import package_5.name_3;
|
||||
import package_6.name_4;
|
||||
import alternativa.osgi.service.console.IConsole;
|
||||
import package_76.name_235;
|
||||
import package_96.name_279;
|
||||
|
||||
@@ -405,7 +405,7 @@ package package_2
|
||||
{
|
||||
decal.offset = this.var_90;
|
||||
}
|
||||
name_4(name_3.name_8().name_30(name_4)).name_145("Decals offset: " + this.var_90);
|
||||
IConsole(name_3.name_8().name_30(IConsole)).name_145("Decals offset: " + this.var_90);
|
||||
}
|
||||
|
||||
private function method_212(containerId:String) : void
|
||||
|
||||
@@ -2,7 +2,7 @@ package package_98
|
||||
{
|
||||
import package_18.name_44;
|
||||
import package_5.name_3;
|
||||
import package_6.name_4;
|
||||
import alternativa.osgi.service.console.IConsole;
|
||||
|
||||
public class name_290
|
||||
{
|
||||
@@ -22,7 +22,7 @@ package package_98
|
||||
{
|
||||
super();
|
||||
this.renderSystem = param1;
|
||||
var _loc2_:name_4 = name_4(name_3.name_8().name_30(name_4));
|
||||
var _loc2_:IConsole = IConsole(name_3.name_8().name_30(IConsole));
|
||||
_loc2_.name_45("light",this.method_469);
|
||||
this.var_471[LIGHT_TYPE_AMBIENT] = new name_558(param1);
|
||||
this.var_471[LIGHT_TYPE_DIRECTIONAL] = new name_559(param1);
|
||||
@@ -30,7 +30,7 @@ package package_98
|
||||
this.var_471[LIGHT_TYPE_SPOT] = new name_561(param1);
|
||||
}
|
||||
|
||||
private function method_469(param1:name_4, param2:Array) : void
|
||||
private function method_469(param1:IConsole, param2:Array) : void
|
||||
{
|
||||
var _loc3_:String = null;
|
||||
var _loc4_:name_557 = null;
|
||||
|
||||
@@ -2,7 +2,7 @@ package package_98
|
||||
{
|
||||
import package_18.name_44;
|
||||
import package_21.name_116;
|
||||
import package_6.name_4;
|
||||
import alternativa.osgi.service.console.IConsole;
|
||||
|
||||
public class name_557
|
||||
{
|
||||
@@ -16,7 +16,7 @@ package package_98
|
||||
this.renderSystem = param1;
|
||||
}
|
||||
|
||||
final public function name_562(param1:name_4, param2:Array) : void
|
||||
final public function name_562(param1:IConsole, param2:Array) : void
|
||||
{
|
||||
var _loc4_:int = 0;
|
||||
var _loc5_:name_116 = null;
|
||||
@@ -66,7 +66,7 @@ package package_98
|
||||
}
|
||||
}
|
||||
|
||||
private function clear(param1:name_4) : void
|
||||
private function clear(param1:IConsole) : void
|
||||
{
|
||||
var _loc3_:Vector.<String> = null;
|
||||
var _loc4_:name_116 = null;
|
||||
@@ -86,7 +86,7 @@ package package_98
|
||||
}
|
||||
}
|
||||
|
||||
private function list(param1:name_4) : void
|
||||
private function list(param1:IConsole) : void
|
||||
{
|
||||
var _loc3_:name_116 = null;
|
||||
var _loc2_:Vector.<name_116> = this.getLigts();
|
||||
@@ -106,17 +106,17 @@ package package_98
|
||||
return "[None]";
|
||||
}
|
||||
|
||||
protected function modify(param1:name_4, param2:String, param3:Array) : name_116
|
||||
protected function modify(param1:IConsole, param2:String, param3:Array) : name_116
|
||||
{
|
||||
throw new Error("Not implemented");
|
||||
}
|
||||
|
||||
protected function create(param1:name_4, param2:Array, param3:int) : name_116
|
||||
protected function create(param1:IConsole, param2:Array, param3:int) : name_116
|
||||
{
|
||||
throw new Error("Not implemented");
|
||||
}
|
||||
|
||||
protected function del(param1:name_4, param2:String) : name_116
|
||||
protected function del(param1:IConsole, param2:String) : name_116
|
||||
{
|
||||
throw new Error("Not implemented");
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@ package package_98
|
||||
import package_18.name_44;
|
||||
import package_21.name_116;
|
||||
import package_24.name_376;
|
||||
import package_6.name_4;
|
||||
import alternativa.osgi.service.console.IConsole;
|
||||
|
||||
public class name_558 extends name_557
|
||||
{
|
||||
@@ -17,7 +17,7 @@ package package_98
|
||||
return "AmbientLight color: 0x" + name_376(param1).color.toString(16);
|
||||
}
|
||||
|
||||
override protected function create(param1:name_4, param2:Array, param3:int) : name_116
|
||||
override protected function create(param1:IConsole, param2:Array, param3:int) : name_116
|
||||
{
|
||||
var _loc4_:uint = 0;
|
||||
var _loc5_:name_376 = null;
|
||||
@@ -33,7 +33,7 @@ package package_98
|
||||
return _loc5_;
|
||||
}
|
||||
|
||||
override protected function modify(param1:name_4, param2:String, param3:Array) : name_116
|
||||
override protected function modify(param1:IConsole, param2:String, param3:Array) : name_116
|
||||
{
|
||||
var _loc4_:name_376 = renderSystem.lights.ambientLight;
|
||||
if(_loc4_ != null)
|
||||
@@ -56,7 +56,7 @@ package package_98
|
||||
return Vector.<name_116>([renderSystem.lights.ambientLight]);
|
||||
}
|
||||
|
||||
override protected function del(param1:name_4, param2:String) : name_116
|
||||
override protected function del(param1:IConsole, param2:String) : name_116
|
||||
{
|
||||
var _loc3_:name_376 = renderSystem.lights.ambientLight;
|
||||
renderSystem.lights.ambientLight = null;
|
||||
|
||||
@@ -3,7 +3,7 @@ package package_98
|
||||
import package_18.name_44;
|
||||
import package_21.name_116;
|
||||
import package_24.DirectionalLight;
|
||||
import package_6.name_4;
|
||||
import alternativa.osgi.service.console.IConsole;
|
||||
|
||||
public class name_559 extends name_557
|
||||
{
|
||||
@@ -17,7 +17,7 @@ package package_98
|
||||
return Vector.<name_116>(renderSystem.lights.directionalLigths.lights);
|
||||
}
|
||||
|
||||
override protected function del(param1:name_4, param2:String) : name_116
|
||||
override protected function del(param1:IConsole, param2:String) : name_116
|
||||
{
|
||||
var _loc3_:DirectionalLight = this.method_762(param2);
|
||||
if(_loc3_ != null)
|
||||
|
||||
@@ -4,7 +4,7 @@ package package_98
|
||||
import package_18.name_44;
|
||||
import package_21.name_116;
|
||||
import package_24.OmniLight;
|
||||
import package_6.name_4;
|
||||
import alternativa.osgi.service.console.IConsole;
|
||||
|
||||
public class name_560 extends name_557
|
||||
{
|
||||
@@ -19,7 +19,7 @@ package package_98
|
||||
return name_718.name_719("OmniLight color: 0x%1, attenuationBegin: %2, attenuationEnd: %3, x: %4, y: %5, z: %6",_loc2_.color.toString(16),_loc2_.attenuationBegin.toFixed(2),_loc2_.attenuationEnd.toFixed(2),_loc2_.x.toFixed(2),_loc2_.y.toFixed(2),_loc2_.z.toFixed(2));
|
||||
}
|
||||
|
||||
override protected function modify(param1:name_4, param2:String, param3:Array) : name_116
|
||||
override protected function modify(param1:IConsole, param2:String, param3:Array) : name_116
|
||||
{
|
||||
var _loc4_:OmniLight = this.method_762(param2);
|
||||
if(_loc4_ == null)
|
||||
@@ -48,7 +48,7 @@ package package_98
|
||||
return _loc4_;
|
||||
}
|
||||
|
||||
override protected function create(param1:name_4, param2:Array, param3:int) : name_116
|
||||
override protected function create(param1:IConsole, param2:Array, param3:int) : name_116
|
||||
{
|
||||
if(param2.length == 0)
|
||||
{
|
||||
@@ -72,7 +72,7 @@ package package_98
|
||||
return Vector.<name_116>(renderSystem.lights.omniLigths.lights);
|
||||
}
|
||||
|
||||
override protected function del(param1:name_4, param2:String) : name_116
|
||||
override protected function del(param1:IConsole, param2:String) : name_116
|
||||
{
|
||||
var _loc3_:OmniLight = this.method_762(param2);
|
||||
if(_loc3_ != null)
|
||||
|
||||
@@ -4,7 +4,7 @@ package package_98
|
||||
import package_18.name_44;
|
||||
import package_21.name_116;
|
||||
import package_24.SpotLight;
|
||||
import package_6.name_4;
|
||||
import alternativa.osgi.service.console.IConsole;
|
||||
|
||||
public class name_561 extends name_557
|
||||
{
|
||||
@@ -19,7 +19,7 @@ package package_98
|
||||
return name_718.name_719("SpotLight color: 0x%1, attenuationBegin: %2, attenuationEnd: %3, hotspot: %4, falloff: %5, x: %6, y: %7, z: %8",_loc2_.color.toString(16),_loc2_.attenuationBegin.toFixed(2),_loc2_.attenuationEnd.toFixed(2),_loc2_.hotspot.toFixed(2),_loc2_.falloff.toFixed(2),_loc2_.x.toFixed(2),_loc2_.y.toFixed(2),_loc2_.z.toFixed(2));
|
||||
}
|
||||
|
||||
override protected function modify(param1:name_4, param2:String, param3:Array) : name_116
|
||||
override protected function modify(param1:IConsole, param2:String, param3:Array) : name_116
|
||||
{
|
||||
var _loc6_:Number = NaN;
|
||||
var _loc7_:Number = NaN;
|
||||
@@ -62,7 +62,7 @@ package package_98
|
||||
return _loc4_;
|
||||
}
|
||||
|
||||
override protected function create(param1:name_4, param2:Array, param3:int) : name_116
|
||||
override protected function create(param1:IConsole, param2:Array, param3:int) : name_116
|
||||
{
|
||||
if(param2.length == 0)
|
||||
{
|
||||
@@ -95,7 +95,7 @@ package package_98
|
||||
return Vector.<name_116>(renderSystem.lights.spotLights.lights);
|
||||
}
|
||||
|
||||
override protected function del(param1:name_4, param2:String) : name_116
|
||||
override protected function del(param1:IConsole, param2:String) : name_116
|
||||
{
|
||||
var _loc3_:SpotLight = this.method_762(param2);
|
||||
if(_loc3_ != null)
|
||||
|
||||
Reference in New Issue
Block a user