Skip to content

Commit

Permalink
Fix errant banner definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeLonewolf committed Nov 30, 2024
1 parent 56cbdab commit 73ddc51
Showing 1 changed file with 32 additions and 21 deletions.
53 changes: 32 additions & 21 deletions src/js/shield_defs.js
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,7 @@ export function loadShields() {
// United States

// Interstate Highways
shields["US:I"] = {
const usInterstateShield = {
spriteBlank: ["shield_us_interstate_2", "shield_us_interstate_3"],
textLayout: textConstraint("southHalfEllipse"),
textColor: Color.shields.white,
Expand All @@ -649,6 +649,9 @@ export function loadShields() {
top: 6,
bottom: 5,
},
}
shields["US:I"] = {
...usInterstateShield,
bannerMap: {
"US:I:Alternate": ["ALT"],
"US:I:Express": ["EXPR"],
Expand All @@ -660,7 +663,7 @@ export function loadShields() {
};

shields["US:I:Business:Loop"] = {
...shields["US:I"],
...usInterstateShield,
spriteBlank: [
"shield_us_interstate_business_2",
"shield_us_interstate_business_3",
Expand Down Expand Up @@ -1457,7 +1460,7 @@ export function loadShields() {
};

// Maryland
shields["US:MD"] = {
const marylandShield = {
spriteBlank: ["shield_us_md_2", "shield_us_md_3"],
textColor: Color.shields.black,
padding: {
Expand All @@ -1466,14 +1469,18 @@ export function loadShields() {
top: 6,
bottom: 2,
},
}

shields["US:MD"] = {
...marylandShield,
bannerMap: {
"US:MD:Alternate": ["ALT"],
"US:MD:Bypass": ["BYP"],
},
};
shields["US:MD:Business"] = banneredShield(
{
...shields["US:MD"],
...marylandShield,
textColor: Color.shields.green,
colorLighten: Color.shields.green,
},
Expand Down Expand Up @@ -2097,7 +2104,7 @@ export function loadShields() {
);

// New York
shields["US:NY"] = {
const usNewYorkShield = {
spriteBlank: ["shield_us_ny_2", "shield_us_ny_3"],
textColor: Color.shields.black,
padding: {
Expand All @@ -2106,6 +2113,9 @@ export function loadShields() {
top: 5,
bottom: 5,
},
}
shields["US:NY"] = {
...usNewYorkShield,
bannerMap: {
"US:NY:Truck": ["TRK"],
},
Expand All @@ -2124,8 +2134,8 @@ export function loadShields() {
top: 3,
bottom: 3,
},
ref: "LOOP"
};
shields["US:NY:Inner_Loop"].ref = "LOOP";
shields["US:NY:Thruway"] = {
noref: {
spriteBlank: "shield_us_ny_thruway",
Expand All @@ -2137,7 +2147,7 @@ export function loadShields() {
},
};
shields["US:NY:Parkway"] = {
...shields["US:NY"],
...usNewYorkShield,
textColor: Color.shields.white,
colorLighten: Color.shields.white,
colorDarken: Color.shields.green,
Expand Down Expand Up @@ -2704,6 +2714,18 @@ export function loadShields() {
);

// Texas
const usTexasShapedShield = {
spriteBlank: "shield_us_tx_outline",
textColor: Color.shields.black,
textLayout: textConstraint("ellipse"),
padding: {
left: 3,
right: 0,
top: 7,
bottom: 10,
},
}

shields["US:TX"] = {
...roundedRectShield(Color.shields.white, Color.shields.black),
bannerMap: {
Expand All @@ -2717,22 +2739,14 @@ export function loadShields() {
},
};
shields["US:TX:FM"] = shields["US:TX:RM"] = {
spriteBlank: "shield_us_tx_outline",
textColor: Color.shields.black,
textLayout: textConstraint("ellipse"),
padding: {
left: 3,
right: 0,
top: 7,
bottom: 10,
},
...usTexasShapedShield,
bannerMap: {
"US:TX:FM:Business": ["BUS"],
},
};
shields["US:TX:Recreational"] = banneredShield(
{
...shields["US:TX:FM"],
...usTexasShapedShield,
textColor: Color.shields.brown,
colorLighten: Color.shields.brown,
},
Expand All @@ -2751,10 +2765,7 @@ export function loadShields() {
"US:TX:Loop:Express:Toll": ["EXPR", "LOOP"],
},
};
shields["US:TX:Toll"] = shields["US:TX:NTTA"] = roundedRectShield(
Color.shields.blue,
Color.shields.white
);

shields["US:TX:CTRMA"] = {
...roundedRectShield(
Color.shields.blue,
Expand Down

0 comments on commit 73ddc51

Please sign in to comment.