fix drop shadow

This commit is contained in:
RandomityGuy 2024-07-15 19:05:35 +05:30
parent e66f9fd0ff
commit 8f3177a885
17 changed files with 134 additions and 134 deletions

View file

@ -128,8 +128,8 @@ class EndGameGui extends GuiControl {
egResult.extent = new Vector(244, 69); egResult.extent = new Vector(244, 69);
egResult.text.text = '<font face="DomCasual64" color="#FFFFFF"><p align="right">${Util.formatTime(timeState.gameplayClock)}</p></font>'; egResult.text.text = '<font face="DomCasual64" color="#FFFFFF"><p align="right">${Util.formatTime(timeState.gameplayClock)}</p></font>';
egResult.text.dropShadow = { egResult.text.dropShadow = {
dx: 1, dx: 1 * Settings.uiScale,
dy: 1, dy: 1 * Settings.uiScale,
alpha: 0.5, alpha: 0.5,
color: 0 color: 0
}; };
@ -139,8 +139,8 @@ class EndGameGui extends GuiControl {
egFirstLine.position = new Vector(340, 150); egFirstLine.position = new Vector(340, 150);
egFirstLine.extent = new Vector(210, 25); egFirstLine.extent = new Vector(210, 25);
egFirstLine.text.dropShadow = { egFirstLine.text.dropShadow = {
dx: 1, dx: 1 * Settings.uiScale,
dy: 1, dy: 1 * Settings.uiScale,
alpha: 0.5, alpha: 0.5,
color: 0x777777 color: 0x777777
}; };
@ -150,8 +150,8 @@ class EndGameGui extends GuiControl {
egSecondLine.position = new Vector(341, 178); egSecondLine.position = new Vector(341, 178);
egSecondLine.extent = new Vector(209, 25); egSecondLine.extent = new Vector(209, 25);
egSecondLine.text.dropShadow = { egSecondLine.text.dropShadow = {
dx: 1, dx: 1 * Settings.uiScale,
dy: 1, dy: 1 * Settings.uiScale,
alpha: 0.5, alpha: 0.5,
color: 0x777777 color: 0x777777
}; };
@ -161,8 +161,8 @@ class EndGameGui extends GuiControl {
egThirdLine.position = new Vector(341, 206); egThirdLine.position = new Vector(341, 206);
egThirdLine.extent = new Vector(209, 25); egThirdLine.extent = new Vector(209, 25);
egThirdLine.text.dropShadow = { egThirdLine.text.dropShadow = {
dx: 1, dx: 1 * Settings.uiScale,
dy: 1, dy: 1 * Settings.uiScale,
alpha: 0.5, alpha: 0.5,
color: 0x777777 color: 0x777777
}; };
@ -172,8 +172,8 @@ class EndGameGui extends GuiControl {
egFourthLine.position = new Vector(341, 234); egFourthLine.position = new Vector(341, 234);
egFourthLine.extent = new Vector(209, 25); egFourthLine.extent = new Vector(209, 25);
egFourthLine.text.dropShadow = { egFourthLine.text.dropShadow = {
dx: 1, dx: 1 * Settings.uiScale,
dy: 1, dy: 1 * Settings.uiScale,
alpha: 0.5, alpha: 0.5,
color: 0x777777 color: 0x777777
}; };
@ -183,8 +183,8 @@ class EndGameGui extends GuiControl {
egFifthLine.position = new Vector(341, 262); egFifthLine.position = new Vector(341, 262);
egFifthLine.extent = new Vector(209, 25); egFifthLine.extent = new Vector(209, 25);
egFifthLine.text.dropShadow = { egFifthLine.text.dropShadow = {
dx: 1, dx: 1 * Settings.uiScale,
dy: 1, dy: 1 * Settings.uiScale,
alpha: 0.5, alpha: 0.5,
color: 0x777777 color: 0x777777
}; };
@ -194,8 +194,8 @@ class EndGameGui extends GuiControl {
egFirstLineScore.position = new Vector(475, 150); egFirstLineScore.position = new Vector(475, 150);
egFirstLineScore.extent = new Vector(210, 25); egFirstLineScore.extent = new Vector(210, 25);
egFirstLineScore.text.dropShadow = { egFirstLineScore.text.dropShadow = {
dx: 1, dx: 1 * Settings.uiScale,
dy: 1, dy: 1 * Settings.uiScale,
alpha: 0.5, alpha: 0.5,
color: 0x777777 color: 0x777777
}; };
@ -205,8 +205,8 @@ class EndGameGui extends GuiControl {
egSecondLineScore.position = new Vector(476, 178); egSecondLineScore.position = new Vector(476, 178);
egSecondLineScore.extent = new Vector(209, 25); egSecondLineScore.extent = new Vector(209, 25);
egSecondLineScore.text.dropShadow = { egSecondLineScore.text.dropShadow = {
dx: 1, dx: 1 * Settings.uiScale,
dy: 1, dy: 1 * Settings.uiScale,
alpha: 0.5, alpha: 0.5,
color: 0x777777 color: 0x777777
}; };
@ -216,8 +216,8 @@ class EndGameGui extends GuiControl {
egThirdLineScore.position = new Vector(476, 206); egThirdLineScore.position = new Vector(476, 206);
egThirdLineScore.extent = new Vector(209, 25); egThirdLineScore.extent = new Vector(209, 25);
egThirdLineScore.text.dropShadow = { egThirdLineScore.text.dropShadow = {
dx: 1, dx: 1 * Settings.uiScale,
dy: 1, dy: 1 * Settings.uiScale,
alpha: 0.5, alpha: 0.5,
color: 0x777777 color: 0x777777
}; };
@ -227,8 +227,8 @@ class EndGameGui extends GuiControl {
egFourthLineScore.position = new Vector(476, 234); egFourthLineScore.position = new Vector(476, 234);
egFourthLineScore.extent = new Vector(209, 25); egFourthLineScore.extent = new Vector(209, 25);
egFourthLineScore.text.dropShadow = { egFourthLineScore.text.dropShadow = {
dx: 1, dx: 1 * Settings.uiScale,
dy: 1, dy: 1 * Settings.uiScale,
alpha: 0.5, alpha: 0.5,
color: 0x777777 color: 0x777777
}; };
@ -238,8 +238,8 @@ class EndGameGui extends GuiControl {
egFifthLineScore.position = new Vector(476, 262); egFifthLineScore.position = new Vector(476, 262);
egFifthLineScore.extent = new Vector(209, 25); egFifthLineScore.extent = new Vector(209, 25);
egFifthLineScore.text.dropShadow = { egFifthLineScore.text.dropShadow = {
dx: 1, dx: 1 * Settings.uiScale,
dy: 1, dy: 1 * Settings.uiScale,
alpha: 0.5, alpha: 0.5,
color: 0x777777 color: 0x777777
}; };
@ -249,8 +249,8 @@ class EndGameGui extends GuiControl {
egTitleText.text.textColor = 0xffff00; egTitleText.text.textColor = 0xffff00;
egTitleText.text.text = '<font color="#FFFFFF" face="DomCasual64">Your Time:</font>'; egTitleText.text.text = '<font color="#FFFFFF" face="DomCasual64">Your Time:</font>';
egTitleText.text.dropShadow = { egTitleText.text.dropShadow = {
dx: 1, dx: 1 * Settings.uiScale,
dy: 1, dy: 1 * Settings.uiScale,
alpha: 0.5, alpha: 0.5,
color: 0 color: 0
}; };
@ -263,8 +263,8 @@ class EndGameGui extends GuiControl {
egTopThreeText.extent = new Vector(209, 34); egTopThreeText.extent = new Vector(209, 34);
egTopThreeText.text.text = '<font face="DomCasual32" color="#FFFFFF">Top 5 Times:</font>'; // Make toggleable 3-5 egTopThreeText.text.text = '<font face="DomCasual32" color="#FFFFFF">Top 5 Times:</font>'; // Make toggleable 3-5
egTopThreeText.text.dropShadow = { egTopThreeText.text.dropShadow = {
dx: 1, dx: 1 * Settings.uiScale,
dy: 1, dy: 1 * Settings.uiScale,
alpha: 0.5, alpha: 0.5,
color: 0 color: 0
}; };
@ -294,8 +294,8 @@ class EndGameGui extends GuiControl {
finishMessage.text.textColor = 0x00ff00; finishMessage.text.textColor = 0x00ff00;
finishMessage.text.text = text; finishMessage.text.text = text;
finishMessage.text.dropShadow = { finishMessage.text.dropShadow = {
dx: 1, dx: 1 * Settings.uiScale,
dy: 1, dy: 1 * Settings.uiScale,
alpha: 0.5, alpha: 0.5,
color: 0 color: 0
}; };
@ -345,8 +345,8 @@ class EndGameGui extends GuiControl {
leftColumn.text.textColor = 0xFFFFFF; leftColumn.text.textColor = 0xFFFFFF;
leftColumn.text.text = 'Par Time:<br/>${mission.game == "gold" || mission.game.toLowerCase() == "ultra" ? '<font color="#FFCC00">Gold Time:</font>' : '<font color="#CCCCCC">Platinum Time:</font>'}<br/>${mission.ultimateTime != 0 ? '<font color="#FFDD22">Ultimate Time:</font><br/>' : ''}<font face="Arial14"><br/></font><font color="#FFFFFF" face="DomCasual24">Time Passed:<br/>Clock Bonuses:</font>'; leftColumn.text.text = 'Par Time:<br/>${mission.game == "gold" || mission.game.toLowerCase() == "ultra" ? '<font color="#FFCC00">Gold Time:</font>' : '<font color="#CCCCCC">Platinum Time:</font>'}<br/>${mission.ultimateTime != 0 ? '<font color="#FFDD22">Ultimate Time:</font><br/>' : ''}<font face="Arial14"><br/></font><font color="#FFFFFF" face="DomCasual24">Time Passed:<br/>Clock Bonuses:</font>';
leftColumn.text.dropShadow = { leftColumn.text.dropShadow = {
dx: 1, dx: 1 * Settings.uiScale,
dy: 1, dy: 1 * Settings.uiScale,
alpha: 0.5, alpha: 0.5,
color: 0x777777 color: 0x777777
}; };
@ -362,8 +362,8 @@ class EndGameGui extends GuiControl {
rightColumn.text.textColor = 0xFFFFFF; rightColumn.text.textColor = 0xFFFFFF;
rightColumn.text.text = '${Util.formatTime(mission.qualifyTime == Math.POSITIVE_INFINITY ? 5999.999 : mission.qualifyTime)}<br/><font color="${mission.game == "gold" || mission.game.toLowerCase() == "ultra" ? '#FFCC00' : '#CCCCCC'}">${Util.formatTime(mission.goldTime)}</font><br/>${mission.ultimateTime != 0 ? '<font color="#FFDD22">${Util.formatTime(mission.ultimateTime)}</font><br/>' : ''}<font face="Arial14"><br/></font><font color="#FFFFFF" face="DomCasual24">${Util.formatTime(elapsedTime)}<br/>${Util.formatTime(bonusTime)}</font>'; rightColumn.text.text = '${Util.formatTime(mission.qualifyTime == Math.POSITIVE_INFINITY ? 5999.999 : mission.qualifyTime)}<br/><font color="${mission.game == "gold" || mission.game.toLowerCase() == "ultra" ? '#FFCC00' : '#CCCCCC'}">${Util.formatTime(mission.goldTime)}</font><br/>${mission.ultimateTime != 0 ? '<font color="#FFDD22">${Util.formatTime(mission.ultimateTime)}</font><br/>' : ''}<font face="Arial14"><br/></font><font color="#FFFFFF" face="DomCasual24">${Util.formatTime(elapsedTime)}<br/>${Util.formatTime(bonusTime)}</font>';
rightColumn.text.dropShadow = { rightColumn.text.dropShadow = {
dx: 1, dx: 1 * Settings.uiScale,
dy: 1, dy: 1 * Settings.uiScale,
alpha: 0.5, alpha: 0.5,
color: 0x777777 color: 0x777777
}; };

View file

@ -88,8 +88,8 @@ class EnterNameDlg extends GuiControl {
var enterNameText = new GuiMLText(domcasual32, mlFontLoader); var enterNameText = new GuiMLText(domcasual32, mlFontLoader);
enterNameText.text.textColor = 0xFFFFFF; enterNameText.text.textColor = 0xFFFFFF;
enterNameText.text.dropShadow = { enterNameText.text.dropShadow = {
dx: 1, dx: 1 * Settings.uiScale,
dy: 1, dy: 1 * Settings.uiScale,
alpha: 0.5, alpha: 0.5,
color: 0 color: 0
}; };

View file

@ -85,8 +85,8 @@ class JoinServerGui extends GuiImage {
passwordTitle.justify = Center; passwordTitle.justify = Center;
passwordTitle.text.text = "Password Required"; passwordTitle.text.text = "Password Required";
passwordTitle.text.dropShadow = { passwordTitle.text.dropShadow = {
dx: 1, dx: 1 * Settings.uiScale,
dy: 1, dy: 1 * Settings.uiScale,
alpha: 0.5, alpha: 0.5,
color: 0 color: 0
}; };
@ -134,8 +134,8 @@ class JoinServerGui extends GuiImage {
serverInfo.extent = new Vector(210, 166); serverInfo.extent = new Vector(210, 166);
serverInfo.text.text = '<p align="center">Select a Server</p>'; serverInfo.text.text = '<p align="center">Select a Server</p>';
serverInfo.text.dropShadow = { serverInfo.text.dropShadow = {
dx: 1, dx: 1 * Settings.uiScale,
dy: 1, dy: 1 * Settings.uiScale,
alpha: 0.5, alpha: 0.5,
color: 0 color: 0
}; };
@ -316,8 +316,8 @@ class JoinServerGui extends GuiImage {
titleText.justify = Center; titleText.justify = Center;
titleText.text.text = "Join Server"; titleText.text.text = "Join Server";
titleText.text.dropShadow = { titleText.text.dropShadow = {
dx: 1, dx: 1 * Settings.uiScale,
dy: 1, dy: 1 * Settings.uiScale,
alpha: 0.5, alpha: 0.5,
color: 0 color: 0
}; };
@ -329,8 +329,8 @@ class JoinServerGui extends GuiImage {
listTitle.extent = new Vector(480, 22); listTitle.extent = new Vector(480, 22);
listTitle.text.textColor = 0xDDDDEE; listTitle.text.textColor = 0xDDDDEE;
listTitle.text.dropShadow = { listTitle.text.dropShadow = {
dx: 1, dx: 1 * Settings.uiScale,
dy: 1, dy: 1 * Settings.uiScale,
alpha: 0.5, alpha: 0.5,
color: 0 color: 0
}; };

View file

@ -51,8 +51,8 @@ class JukeboxDlg extends GuiImage {
songTitle.position = new Vector(61, 262); songTitle.position = new Vector(61, 262);
songTitle.extent = new Vector(416, 22); songTitle.extent = new Vector(416, 22);
songTitle.text.dropShadow = { songTitle.text.dropShadow = {
dx: 1, dx: 1 * Settings.uiScale,
dy: 1, dy: 1 * Settings.uiScale,
alpha: 0.5, alpha: 0.5,
color: 0 color: 0
}; };
@ -64,8 +64,8 @@ class JukeboxDlg extends GuiImage {
songStatus.position = new Vector(56, 283); songStatus.position = new Vector(56, 283);
songStatus.extent = new Vector(421, 22); songStatus.extent = new Vector(421, 22);
songStatus.text.dropShadow = { songStatus.text.dropShadow = {
dx: 1, dx: 1 * Settings.uiScale,
dy: 1, dy: 1 * Settings.uiScale,
alpha: 0.5, alpha: 0.5,
color: 0 color: 0
}; };

View file

@ -175,8 +175,8 @@ class MPEndGameGui extends GuiImage {
titleML.horizSizing = Width; titleML.horizSizing = Width;
titleML.text.textColor = rankColor; titleML.text.textColor = rankColor;
titleML.text.dropShadow = { titleML.text.dropShadow = {
dx: 1, dx: 1 * Settings.uiScale,
dy: 1, dy: 1 * Settings.uiScale,
alpha: 0.5, alpha: 0.5,
color: 0 color: 0
}; };

View file

@ -128,8 +128,8 @@ class MPExitGameDlg extends GuiControl {
exitTitle.justify = Center; exitTitle.justify = Center;
exitTitle.text.text = "Ingame Options"; exitTitle.text.text = "Ingame Options";
exitTitle.text.dropShadow = { exitTitle.text.dropShadow = {
dx: 1, dx: 1 * Settings.uiScale,
dy: 1, dy: 1 * Settings.uiScale,
alpha: 0.5, alpha: 0.5,
color: 0 color: 0
}; };
@ -141,8 +141,8 @@ class MPExitGameDlg extends GuiControl {
restartTitle.justify = Center; restartTitle.justify = Center;
restartTitle.text.text = "Restart:"; restartTitle.text.text = "Restart:";
restartTitle.text.dropShadow = { restartTitle.text.dropShadow = {
dx: 1, dx: 1 * Settings.uiScale,
dy: 1, dy: 1 * Settings.uiScale,
alpha: 0.5, alpha: 0.5,
color: 0 color: 0
}; };

View file

@ -69,8 +69,8 @@ class MPKickBanDlg extends GuiImage {
kickTitle.text.textColor = 0xFFFFFF; kickTitle.text.textColor = 0xFFFFFF;
kickTitle.text.text = "Kick Players"; kickTitle.text.text = "Kick Players";
kickTitle.text.dropShadow = { kickTitle.text.dropShadow = {
dx: 1, dx: 1 * Settings.uiScale,
dy: 1, dy: 1 * Settings.uiScale,
alpha: 0.5, alpha: 0.5,
color: 0 color: 0
}; };

View file

@ -83,8 +83,8 @@ class MPMarbleSelectGui extends GuiImage {
var titleText = new GuiMLText(markerFelt28, null); var titleText = new GuiMLText(markerFelt28, null);
titleText.text.textColor = 0xFFFFFF; titleText.text.textColor = 0xFFFFFF;
titleText.text.dropShadow = { titleText.text.dropShadow = {
dx: 1, dx: 1 * Settings.uiScale,
dy: 1, dy: 1 * Settings.uiScale,
alpha: 0.5, alpha: 0.5,
color: 0 color: 0
}; };
@ -98,8 +98,8 @@ class MPMarbleSelectGui extends GuiImage {
var marbleText = new GuiMLText(markerFelt24, null); var marbleText = new GuiMLText(markerFelt24, null);
marbleText.text.textColor = 0xFFFFFF; marbleText.text.textColor = 0xFFFFFF;
marbleText.text.dropShadow = { marbleText.text.dropShadow = {
dx: 1, dx: 1 * Settings.uiScale,
dy: 1, dy: 1 * Settings.uiScale,
alpha: 0.5, alpha: 0.5,
color: 0 color: 0
}; };

View file

@ -58,8 +58,8 @@ class MPMessageGui extends GuiImage {
title.text.text = titleText; title.text.text = titleText;
title.text.textColor = 0xFFFFFF; title.text.textColor = 0xFFFFFF;
title.text.dropShadow = { title.text.dropShadow = {
dx: 1, dx: 1 * Settings.uiScale,
dy: 1, dy: 1 * Settings.uiScale,
alpha: 0.5, alpha: 0.5,
color: 0 color: 0
}; };
@ -73,8 +73,8 @@ class MPMessageGui extends GuiImage {
msg.text.text = msgText; msg.text.text = msgText;
msg.text.textColor = 0xFFFFFF; msg.text.textColor = 0xFFFFFF;
msg.text.dropShadow = { msg.text.dropShadow = {
dx: 1, dx: 1 * Settings.uiScale,
dy: 1, dy: 1 * Settings.uiScale,
alpha: 0.5, alpha: 0.5,
color: 0 color: 0
}; };

View file

@ -321,8 +321,8 @@ class MPPlayMissionGui extends GuiImage {
pmDesc.position = new Vector(0, 0); pmDesc.position = new Vector(0, 0);
pmDesc.extent = new Vector(427, 99); pmDesc.extent = new Vector(427, 99);
pmDesc.text.dropShadow = { pmDesc.text.dropShadow = {
dx: 1, dx: 1 * Settings.uiScale,
dy: 1, dy: 1 * Settings.uiScale,
alpha: 0.5, alpha: 0.5,
color: 0 color: 0
}; };
@ -333,8 +333,8 @@ class MPPlayMissionGui extends GuiImage {
parTime.position = new Vector(43, 190); parTime.position = new Vector(43, 190);
parTime.extent = new Vector(416, 44); parTime.extent = new Vector(416, 44);
parTime.text.dropShadow = { parTime.text.dropShadow = {
dx: 1, dx: 1 * Settings.uiScale,
dy: 1, dy: 1 * Settings.uiScale,
alpha: 0.5, alpha: 0.5,
color: 0 color: 0
}; };
@ -384,8 +384,8 @@ class MPPlayMissionGui extends GuiImage {
playerListTitle.text.textColor = 0xBDCFE4; playerListTitle.text.textColor = 0xBDCFE4;
playerListTitle.justify = Center; playerListTitle.justify = Center;
playerListTitle.text.dropShadow = { playerListTitle.text.dropShadow = {
dx: 1, dx: 1 * Settings.uiScale,
dy: 1, dy: 1 * Settings.uiScale,
alpha: 0.5, alpha: 0.5,
color: 0 color: 0
}; };

View file

@ -133,8 +133,8 @@ class MPPreGameDlg extends GuiControl {
serverTitle.extent = new Vector(525, 30); serverTitle.extent = new Vector(525, 30);
serverTitle.text.text = Net.isHost ? Settings.serverSettings.name : Net.connectedServerInfo.name; serverTitle.text.text = Net.isHost ? Settings.serverSettings.name : Net.connectedServerInfo.name;
serverTitle.text.dropShadow = { serverTitle.text.dropShadow = {
dx: 1, dx: 1 * Settings.uiScale,
dy: 1, dy: 1 * Settings.uiScale,
alpha: 0.5, alpha: 0.5,
color: 0 color: 0
}; };
@ -147,8 +147,8 @@ class MPPreGameDlg extends GuiControl {
serverDesc.extent = new Vector(525, 66); serverDesc.extent = new Vector(525, 66);
serverDesc.text.text = Net.isHost ? Settings.serverSettings.description : Net.connectedServerInfo.description; serverDesc.text.text = Net.isHost ? Settings.serverSettings.description : Net.connectedServerInfo.description;
serverDesc.text.dropShadow = { serverDesc.text.dropShadow = {
dx: 1, dx: 1 * Settings.uiScale,
dy: 1, dy: 1 * Settings.uiScale,
alpha: 0.5, alpha: 0.5,
color: 0 color: 0
}; };
@ -161,8 +161,8 @@ class MPPreGameDlg extends GuiControl {
levelName.extent = new Vector(525, 22); levelName.extent = new Vector(525, 22);
levelName.text.text = MarbleGame.instance.world.mission.title; levelName.text.text = MarbleGame.instance.world.mission.title;
levelName.text.dropShadow = { levelName.text.dropShadow = {
dx: 1, dx: 1 * Settings.uiScale,
dy: 1, dy: 1 * Settings.uiScale,
alpha: 0.5, alpha: 0.5,
color: 0 color: 0
}; };
@ -174,8 +174,8 @@ class MPPreGameDlg extends GuiControl {
levelDesc.extent = new Vector(516, 63); levelDesc.extent = new Vector(516, 63);
levelDesc.text.text = StringTools.htmlEscape(MarbleGame.instance.world.mission.description); levelDesc.text.text = StringTools.htmlEscape(MarbleGame.instance.world.mission.description);
levelDesc.text.dropShadow = { levelDesc.text.dropShadow = {
dx: 1, dx: 1 * Settings.uiScale,
dy: 1, dy: 1 * Settings.uiScale,
alpha: 0.5, alpha: 0.5,
color: 0 color: 0
}; };
@ -187,8 +187,8 @@ class MPPreGameDlg extends GuiControl {
playerTitle.extent = new Vector(525, 14); playerTitle.extent = new Vector(525, 14);
playerTitle.text.text = "Player Status"; playerTitle.text.text = "Player Status";
playerTitle.text.dropShadow = { playerTitle.text.dropShadow = {
dx: 1, dx: 1 * Settings.uiScale,
dy: 1, dy: 1 * Settings.uiScale,
alpha: 0.5, alpha: 0.5,
color: 0 color: 0
}; };
@ -203,8 +203,8 @@ class MPPreGameDlg extends GuiControl {
dialogImg.addChild(playerListContainer); dialogImg.addChild(playerListContainer);
var playerListLeft = new GuiTextListCtrl(markerFelt18, [], 0xFFFFFF, { var playerListLeft = new GuiTextListCtrl(markerFelt18, [], 0xFFFFFF, {
dx: 1, dx: 1 * Settings.uiScale,
dy: 1, dy: 1 * Settings.uiScale,
color: 0, color: 0,
alpha: 1 alpha: 1
}); });
@ -219,8 +219,8 @@ class MPPreGameDlg extends GuiControl {
playerListContainer.addChild(playerListLeft); playerListContainer.addChild(playerListLeft);
var playerListRight = new GuiTextListCtrl(markerFelt18, [], 0xFFFFFF, { var playerListRight = new GuiTextListCtrl(markerFelt18, [], 0xFFFFFF, {
dx: 1, dx: 1 * Settings.uiScale,
dy: 1, dy: 1 * Settings.uiScale,
color: 0, color: 0,
alpha: 1 alpha: 1
}); });

View file

@ -61,8 +61,8 @@ class MPServerDlg extends GuiImage {
title.text.text = "Server Settings"; title.text.text = "Server Settings";
title.text.textColor = 0xFFFFFF; title.text.textColor = 0xFFFFFF;
title.text.dropShadow = { title.text.dropShadow = {
dx: 1, dx: 1 * Settings.uiScale,
dy: 1, dy: 1 * Settings.uiScale,
alpha: 0.5, alpha: 0.5,
color: 0 color: 0
}; };
@ -129,8 +129,8 @@ class MPServerDlg extends GuiImage {
serverName.text.text = "Server Name:"; serverName.text.text = "Server Name:";
serverName.text.textColor = 0xFFFFFF; serverName.text.textColor = 0xFFFFFF;
serverName.text.dropShadow = { serverName.text.dropShadow = {
dx: 1, dx: 1 * Settings.uiScale,
dy: 1, dy: 1 * Settings.uiScale,
alpha: 0.5, alpha: 0.5,
color: 0 color: 0
}; };
@ -148,8 +148,8 @@ class MPServerDlg extends GuiImage {
serverNameEdit.position = new Vector(3, 3); serverNameEdit.position = new Vector(3, 3);
serverNameEdit.extent = new Vector(291, 29); serverNameEdit.extent = new Vector(291, 29);
serverNameEdit.text.dropShadow = { serverNameEdit.text.dropShadow = {
dx: 1, dx: 1 * Settings.uiScale,
dy: 1, dy: 1 * Settings.uiScale,
alpha: 0.5, alpha: 0.5,
color: 0 color: 0
}; };
@ -165,8 +165,8 @@ class MPServerDlg extends GuiImage {
password.text.text = "Password:"; password.text.text = "Password:";
password.text.textColor = 0xFFFFFF; password.text.textColor = 0xFFFFFF;
password.text.dropShadow = { password.text.dropShadow = {
dx: 1, dx: 1 * Settings.uiScale,
dy: 1, dy: 1 * Settings.uiScale,
alpha: 0.5, alpha: 0.5,
color: 0 color: 0
}; };
@ -184,8 +184,8 @@ class MPServerDlg extends GuiImage {
passwordEdit.position = new Vector(3, 3); passwordEdit.position = new Vector(3, 3);
passwordEdit.extent = new Vector(291, 29); passwordEdit.extent = new Vector(291, 29);
passwordEdit.text.dropShadow = { passwordEdit.text.dropShadow = {
dx: 1, dx: 1 * Settings.uiScale,
dy: 1, dy: 1 * Settings.uiScale,
alpha: 0.5, alpha: 0.5,
color: 0 color: 0
}; };
@ -201,8 +201,8 @@ class MPServerDlg extends GuiImage {
serverDescTitle.text.text = "Server Info:"; serverDescTitle.text.text = "Server Info:";
serverDescTitle.text.textColor = 0xFFFFFF; serverDescTitle.text.textColor = 0xFFFFFF;
serverDescTitle.text.dropShadow = { serverDescTitle.text.dropShadow = {
dx: 1, dx: 1 * Settings.uiScale,
dy: 1, dy: 1 * Settings.uiScale,
alpha: 0.5, alpha: 0.5,
color: 0 color: 0
}; };
@ -220,8 +220,8 @@ class MPServerDlg extends GuiImage {
serverDescEdit.position = new Vector(3, 3); serverDescEdit.position = new Vector(3, 3);
serverDescEdit.extent = new Vector(291 + 93, 29); serverDescEdit.extent = new Vector(291 + 93, 29);
serverDescEdit.text.dropShadow = { serverDescEdit.text.dropShadow = {
dx: 1, dx: 1 * Settings.uiScale,
dy: 1, dy: 1 * Settings.uiScale,
alpha: 0.5, alpha: 0.5,
color: 0 color: 0
}; };
@ -237,8 +237,8 @@ class MPServerDlg extends GuiImage {
maxPlayers.text.text = "Max Players: " + curServerMaxPlayers; maxPlayers.text.text = "Max Players: " + curServerMaxPlayers;
maxPlayers.text.textColor = 0xFFFFFF; maxPlayers.text.textColor = 0xFFFFFF;
maxPlayers.text.dropShadow = { maxPlayers.text.dropShadow = {
dx: 1, dx: 1 * Settings.uiScale,
dy: 1, dy: 1 * Settings.uiScale,
alpha: 0.5, alpha: 0.5,
color: 0 color: 0
}; };
@ -268,8 +268,8 @@ class MPServerDlg extends GuiImage {
forceSpectators.text.text = "Force Spectators:"; forceSpectators.text.text = "Force Spectators:";
forceSpectators.text.textColor = 0xFFFFFF; forceSpectators.text.textColor = 0xFFFFFF;
forceSpectators.text.dropShadow = { forceSpectators.text.dropShadow = {
dx: 1, dx: 1 * Settings.uiScale,
dy: 1, dy: 1 * Settings.uiScale,
alpha: 0.5, alpha: 0.5,
color: 0 color: 0
}; };
@ -291,8 +291,8 @@ class MPServerDlg extends GuiImage {
quickRespawn.text.text = "Allow Quick Respawn:"; quickRespawn.text.text = "Allow Quick Respawn:";
quickRespawn.text.textColor = 0xFFFFFF; quickRespawn.text.textColor = 0xFFFFFF;
quickRespawn.text.dropShadow = { quickRespawn.text.dropShadow = {
dx: 1, dx: 1 * Settings.uiScale,
dy: 1, dy: 1 * Settings.uiScale,
alpha: 0.5, alpha: 0.5,
color: 0 color: 0
}; };
@ -314,8 +314,8 @@ class MPServerDlg extends GuiImage {
competitive.text.text = "Competitive Mode:"; competitive.text.text = "Competitive Mode:";
competitive.text.textColor = 0xFFFFFF; competitive.text.textColor = 0xFFFFFF;
competitive.text.dropShadow = { competitive.text.dropShadow = {
dx: 1, dx: 1 * Settings.uiScale,
dy: 1, dy: 1 * Settings.uiScale,
alpha: 0.5, alpha: 0.5,
color: 0 color: 0
}; };

View file

@ -184,8 +184,8 @@ class MainMenuGui extends GuiImage {
versionText.extent = new Vector(97, 72); versionText.extent = new Vector(97, 72);
versionText.text.text = "<p align=\"center\">1.5.4</p>"; versionText.text.text = "<p align=\"center\">1.5.4</p>";
versionText.text.dropShadow = { versionText.text.dropShadow = {
dx: 1, dx: 1 * Settings.uiScale,
dy: 1, dy: 1 * Settings.uiScale,
alpha: 0.5, alpha: 0.5,
color: 0 color: 0
}; };

View file

@ -554,8 +554,8 @@ class MarbleSelectGui extends GuiImage {
var titleText = new GuiMLText(markerFelt28, null); var titleText = new GuiMLText(markerFelt28, null);
titleText.text.textColor = 0xFFFFFF; titleText.text.textColor = 0xFFFFFF;
titleText.text.dropShadow = { titleText.text.dropShadow = {
dx: 1, dx: 1 * Settings.uiScale,
dy: 1, dy: 1 * Settings.uiScale,
alpha: 0.5, alpha: 0.5,
color: 0 color: 0
}; };
@ -569,8 +569,8 @@ class MarbleSelectGui extends GuiImage {
var marbleText = new GuiMLText(markerFelt24, null); var marbleText = new GuiMLText(markerFelt24, null);
marbleText.text.textColor = 0xFFFFFF; marbleText.text.textColor = 0xFFFFFF;
marbleText.text.dropShadow = { marbleText.text.dropShadow = {
dx: 1, dx: 1 * Settings.uiScale,
dy: 1, dy: 1 * Settings.uiScale,
alpha: 0.5, alpha: 0.5,
color: 0 color: 0
}; };

View file

@ -148,8 +148,8 @@ class OptionsDlg extends GuiImage {
textObj.text.text = text; textObj.text.text = text;
textObj.text.textColor = 0xFFFFFF; textObj.text.textColor = 0xFFFFFF;
textObj.text.dropShadow = { textObj.text.dropShadow = {
dx: 1, dx: 1 * Settings.uiScale,
dy: 1, dy: 1 * Settings.uiScale,
alpha: 0.5, alpha: 0.5,
color: 0 color: 0
}; };
@ -226,8 +226,8 @@ class OptionsDlg extends GuiImage {
textObj.text.text = text; textObj.text.text = text;
textObj.text.textColor = 0xFFFFFF; textObj.text.textColor = 0xFFFFFF;
textObj.text.dropShadow = { textObj.text.dropShadow = {
dx: 1, dx: 1 * Settings.uiScale,
dy: 1, dy: 1 * Settings.uiScale,
alpha: 0.5, alpha: 0.5,
color: 0 color: 0
}; };
@ -410,8 +410,8 @@ class OptionsDlg extends GuiImage {
textObj.text.text = text; textObj.text.text = text;
textObj.text.textColor = 0xFFFFFF; textObj.text.textColor = 0xFFFFFF;
textObj.text.dropShadow = { textObj.text.dropShadow = {
dx: 1, dx: 1 * Settings.uiScale,
dy: 1, dy: 1 * Settings.uiScale,
alpha: 0.5, alpha: 0.5,
color: 0 color: 0
}; };
@ -435,8 +435,8 @@ class OptionsDlg extends GuiImage {
textObj.text.text = "Touch Controls"; textObj.text.text = "Touch Controls";
textObj.text.textColor = 0xFFFFFF; textObj.text.textColor = 0xFFFFFF;
textObj.text.dropShadow = { textObj.text.dropShadow = {
dx: 1, dx: 1 * Settings.uiScale,
dy: 1, dy: 1 * Settings.uiScale,
alpha: 0.5, alpha: 0.5,
color: 0 color: 0
}; };

View file

@ -669,8 +669,8 @@ class PlayGui {
} }
playerListCtrl = new GuiMLTextListCtrl(bfont, [], imgLoader, { playerListCtrl = new GuiMLTextListCtrl(bfont, [], imgLoader, {
dx: 1, dx: 1 * Settings.uiScale,
dy: 1, dy: 1 * Settings.uiScale,
color: 0, color: 0,
alpha: 1 alpha: 1
}); });
@ -682,8 +682,8 @@ class PlayGui {
playerListContainer.addChild(playerListCtrl); playerListContainer.addChild(playerListCtrl);
playerListScoresCtrl = new GuiMLTextListCtrl(bfont, [], imgLoader, { playerListScoresCtrl = new GuiMLTextListCtrl(bfont, [], imgLoader, {
dx: 1, dx: 1 * Settings.uiScale,
dy: 1, dy: 1 * Settings.uiScale,
color: 0, color: 0,
alpha: 1 alpha: 1
}); });
@ -1183,8 +1183,8 @@ class PlayGui {
middleMsg.justify = Center; middleMsg.justify = Center;
middleMsg.text.textColor = color; middleMsg.text.textColor = color;
middleMsg.text.dropShadow = { middleMsg.text.dropShadow = {
dx: 1, dx: 1 * Settings.uiScale,
dy: 1, dy: 1 * Settings.uiScale,
alpha: 0.5, alpha: 0.5,
color: 0 color: 0
}; // new h2d.filter.DropShadow(1.414, 0.785, 0x000000F, 1, 0, 0.4, 1, true); }; // new h2d.filter.DropShadow(1.414, 0.785, 0x000000F, 1, 0, 0.4, 1, true);

View file

@ -893,8 +893,8 @@ class PlayMissionGui extends GuiImage {
var currentMission = currentList[currentSelection]; var currentMission = currentList[currentSelection];
pmScoreText.text.dropShadow = { pmScoreText.text.dropShadow = {
dx: 1, dx: 1 * Settings.uiScale,
dy: 1, dy: 1 * Settings.uiScale,
alpha: 0.5, alpha: 0.5,
color: 0 color: 0
}; };
@ -987,16 +987,16 @@ class PlayMissionGui extends GuiImage {
} }
pmDescription.text.dropShadow = { pmDescription.text.dropShadow = {
dx: 1, dx: 1 * Settings.uiScale,
dy: 1, dy: 1 * Settings.uiScale,
alpha: 0.5, alpha: 0.5,
color: 0 color: 0
}; };
pmDescription.text.lineSpacing = -1; pmDescription.text.lineSpacing = -1;
pmDescriptionRight.text.dropShadow = { pmDescriptionRight.text.dropShadow = {
dx: 1, dx: 1 * Settings.uiScale,
dy: 1, dy: 1 * Settings.uiScale,
alpha: 0.5, alpha: 0.5,
color: 0 color: 0
}; };
@ -1040,14 +1040,14 @@ class PlayMissionGui extends GuiImage {
pmDescription.text.text = descText; pmDescription.text.text = descText;
pmParText.text.dropShadow = { pmParText.text.dropShadow = {
dx: 1, dx: 1 * Settings.uiScale,
dy: 1, dy: 1 * Settings.uiScale,
alpha: 0.5, alpha: 0.5,
color: 0 color: 0
}; };
pmParTextRight.text.dropShadow = { pmParTextRight.text.dropShadow = {
dx: 1, dx: 1 * Settings.uiScale,
dy: 1, dy: 1 * Settings.uiScale,
alpha: 0.5, alpha: 0.5,
color: 0 color: 0
}; };