Skip to content

Commit 3f55ae9

Browse files
authored
Merge pull request #903 from ywgATustcbbs/reactivedrop_public
update traitors challenge
2 parents 3b93ce6 + d6fc24d commit 3f55ae9

2 files changed

Lines changed: 2 additions & 14 deletions

File tree

reactivedrop/content/traitors_challenge/scripts/vscripts/challenge_traitors.nut

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -935,19 +935,16 @@ function OnGameplayStart() {
935935
g_str_GameResult = GetMapName().tolower() + "\t" + g_int_MarineCount.tostring() + "\t" + g_int_TraitorCount.tostring() + "\t"; //MapName, PlayerCount, TraitorCount
936936

937937
DelayFunctionCall("ClientPrintRoles", "", 2.0); // 2秒后显示内鬼名单
938-
939-
//PrintNetProps(hMarine);
940-
//PrintNetProps(hPlayer);
941938
}
942939

943940
function DisplayGameInstructions() {
941+
LocalizedClientPrint(null, 3, TextColor(255, 255, 0) + "%s1", "#challenge_traitors_game_instruction0");
944942
LocalizedClientPrint(null, 3, TextColor(255, 255, 0) + "%s1", "#challenge_traitors_game_instruction1");
945943
LocalizedClientPrint(null, 3, TextColor(255, 255, 0) + "%s1", "#challenge_traitors_game_instruction2");
946944
LocalizedClientPrint(null, 3, TextColor(255, 255, 0) + "%s1", "#challenge_traitors_game_instruction3");
947945
LocalizedClientPrint(null, 3, TextColor(255, 255, 0) + "%s1", "#challenge_traitors_game_instruction4");
948946
LocalizedClientPrint(null, 3, TextColor(255, 255, 0) + "%s1", "#challenge_traitors_game_instruction5");
949947
LocalizedClientPrint(null, 3, TextColor(255, 255, 0) + "%s1", "#challenge_traitors_game_instruction6");
950-
LocalizedClientPrint(null, 3, TextColor(255, 255, 0) + "%s1", "#challenge_traitors_game_instruction7");
951948
LocalizedClientPrint(null, 3, TextColor(255, 255, 0) + "%s1", "#challenge_traitors_game_instruction8");
952949
}
953950

reactivedrop/content/traitors_challenge/scripts/vscripts/traitors_player_info.nut

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ IncludeScript("challenge_traitors_enums.nut");
4646
FONT_DEFAULTLARGE <- self.LookupFont("DefaultMedium");
4747

4848
xMargin <- 0;
49-
yMargin <- 0;
5049

5150
function Paint() {
5251
//如果正在控制士兵,显示信息。
@@ -87,11 +86,6 @@ function PaintMsg(point, role, font, message) {
8786
self.PaintRectangle(ScreenHeight() * 0.315, ScreenHeight() * 0.91, xMargin, ScreenHeight(), 0, 0, 0, alpha);
8887
self.PaintRectangle(ScreenWidth() - xMargin, 0, ScreenWidth(), ScreenHeight(), 0, 0, 0, alpha);
8988
}
90-
if (yMargin != 0) {
91-
self.PaintRectangle(0, 0, ScreenWidth(), yMargin, 0, 0, 0, alpha);
92-
//self.PaintRectangle(0, ScreenHeight() - yMargin, ScreenWidth() / 10, ScreenHeight(), 0, 0, 0, alpha);
93-
self.PaintRectangle(ScreenWidth() / 10 * 2.4, ScreenHeight() - yMargin, ScreenWidth(), ScreenHeight(), 0, 0, 0, alpha);
94-
}
9589
local xOffset = point[0] >= textHalfWidth + 20 ? 0 : textHalfWidth + 20 - point[0];
9690
point[0] += xOffset;
9791
if (role <= ROLE.MAX_IAF_TEAM) {
@@ -124,9 +118,6 @@ function SetMargin() {
124118
if (ScreenWidth().tofloat() / ScreenHeight().tofloat() > 16.0 / 9.0) {
125119
xMargin = ((ScreenWidth().tofloat() - ScreenHeight().tofloat() * 16.0 / 9.0) / 2.0).tointeger();
126120
}
127-
if (ScreenWidth().tofloat() / ScreenHeight().tofloat() < 16.0 / 10.0) {
128-
yMargin = ((ScreenHeight().tofloat() - ScreenWidth().tofloat() / 16.0 * 10.0) / 2.0).tointeger();;
129-
}
130121
}
131122

132123
// pass in a value from 0.0 to 1.0, 0.0 means the left side of the screen, 1.0 means the right, 0.5 in the middle
@@ -136,5 +127,5 @@ function ScreenPosX(fraction) {
136127

137128
// pass in a value from 0.0 to 1.0, 0.0 means the up side of the screen, 1.0 means the down, 0.5 in the middle
138129
function ScreenPosY(fraction) {
139-
return yMargin + (ScreenHeight() - 2 * yMargin) * fraction;
130+
return ScreenHeight() * fraction;
140131
}

0 commit comments

Comments
 (0)