Skip to content

Commit

Permalink
vendor and teleport windows
Browse files Browse the repository at this point in the history
  • Loading branch information
infidel- committed Aug 1, 2018
1 parent 5e8b7e5 commit 9d4651f
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 19 deletions.
6 changes: 4 additions & 2 deletions TrashScaler.as2proj
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,10 @@
<preBuildCommand />
<!-- Executed after build -->
<postBuildCommand alwaysRun="False">xcopy "$(ProjectDir)\src\mod\*.*" "D:\Games\The Secret World\Data\Gui\Customized\Flash\TrashScaler\" /e /y

xcopy "$(OutputFile)" "D:\Games\The Secret World\Data\Gui\Customized\Flash\TrashScaler\" /e /y</postBuildCommand>
xcopy "$(OutputFile)" "D:\Games\The Secret World\Data\Gui\Customized\Flash\TrashScaler\" /e /y
xcopy "$(ProjectDir)\src\mod\*.*" "D:\Steam\steamapps\common\Secret World Legends\Data\Gui\Custom\Flash\TrashScaler\" /e /y
xcopy "$(OutputFile)" "D:\Steam\steamapps\common\Secret World Legends\Data\Gui\Custom\Flash\TrashScaler\" /e /y
</postBuildCommand>
<!-- Other project options -->
<options>
<option showHiddenPaths="False" />
Expand Down
42 changes: 25 additions & 17 deletions src/TrashScaler.as
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,25 @@ class TrashScaler
isDrag = false;
windows = new Array();

var windowTemplates = new Array(
{ id: 'skillhivesimple', name: '[SWL] Abilities', canCenter: false },
{ id: 'achievement', name: 'Achievements and Lore', canCenter: false },
{ id: 'agentsystem', name: '[SWL] Agent System', canCenter: false },
{ id: 'tradepost', name: 'Auction House', canCenter: false },
{ id: 'bank', name: '[SWL] Bank', canCenter: false },
{ id: 'challengejournal', name: 'Challenge Journal', canCenter: false },
{ id: 'charactersheet2d', name: '[SWL] Character Sheet', canCenter: false },
{ id: 'computerpuzzle', name: 'Computer GHOST interface', canCenter: false },
{ id: 'mediaplayer', name: 'Media (readables, etc)', canCenter: true },
{ id: 'missionjournalwindow', name: 'Mission Journal', canCenter: false },
{ id: 'missionrewardcontroller', name: 'Mission Rewards', canCenter: true },
{ id: 'petinventory', name: 'Pets & Sprints', canCenter: false },
{ id: 'regionteleport', name: '[SWL] Teleport', canCenter: false },
{ id: 'mainmenuwindow', name: 'Top Bar / Main Menu', canCenter: false },
{ id: 'itemupgrade', name: '[SWL] Upgrade window', canCenter: false },
{ id: 'shopcontroller', name: 'Vendor', canCenter: false }
);

cont = swfRoot.createEmptyMovieClip("trashScalerContainer",
swfRoot.getNextHighestDepth());
var tt = cont.createTextField("trashScalerText",
Expand Down Expand Up @@ -81,7 +100,12 @@ class TrashScaler
"lib.Aller.ttf", 18, 0xCCCCCC, true, false,
false);
t.setNewTextFormat(format);
textField.text = '\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n';

// hack: make a big enough window
var s = '';
for (var i: Number = 0; i <= windowTemplates.length; i++)
s += '\n';
textField.text = s;

// button text format
textFormatButton = new TextFormat(
Expand All @@ -103,22 +127,6 @@ class TrashScaler
tooltip._visible = vis;

// init scaler items
var windowTemplates = new Array(
{ id: 'skillhivesimple', name: '[SWL] Abilities', canCenter: false },
{ id: 'achievement', name: 'Achievements and Lore', canCenter: false },
{ id: 'agentsystem', name: '[SWL] Agent System', canCenter: false },
{ id: 'tradepost', name: 'Auction House', canCenter: false },
{ id: 'bank', name: '[SWL] Bank', canCenter: false },
{ id: 'challengejournal', name: 'Challenge Journal', canCenter: false },
{ id: 'charactersheet2d', name: '[SWL] Character Sheet', canCenter: false },
{ id: 'computerpuzzle', name: 'Computer GHOST interface', canCenter: false },
{ id: 'mediaplayer', name: 'Media (readables, etc)', canCenter: true },
{ id: 'missionjournalwindow', name: 'Mission Journal', canCenter: false },
{ id: 'missionrewardcontroller', name: 'Mission Rewards', canCenter: true },
{ id: 'petinventory', name: 'Pets & Sprints', canCenter: false },
{ id: 'mainmenuwindow', name: 'Top Bar / Main Menu', canCenter: false },
{ id: 'itemupgrade', name: '[SWL] Upgrade window', canCenter: false }
);
for (var i: Number = 0; i < windowTemplates.length; i++)
{
var tpl = windowTemplates[i];
Expand Down
4 changes: 4 additions & 0 deletions src/mod/CharPrefs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
<Value name="TrashScaler.skillhivesimple" value="100" />
<Value name="TrashScaler.challengejournal" value="100" />
<Value name="TrashScaler.petinventory" value="100" />
<Value name="TrashScaler.shopcontroller" value="100" />
<Value name="TrashScaler.regionteleport" value="100" />

<Value name="TrashScaler.achievement.center" value="false" />
<Value name="TrashScaler.agentsystem.center" value="false" />
Expand All @@ -34,6 +36,8 @@
<Value name="TrashScaler.skillhivesimple.center" value="false" />
<Value name="TrashScaler.challengejournal.center" value="false" />
<Value name="TrashScaler.petinventory.center" value="false" />
<Value name="TrashScaler.shopcontroller.center" value="false" />
<Value name="TrashScaler.regionteleport.center" value="false" />

<Archive name="TrashScaler_Cfg" />
</Root>

0 comments on commit 9d4651f

Please sign in to comment.