Skip to content

Commit

Permalink
Merge branch 'main' into clay-shields-mx-mx-widen
Browse files Browse the repository at this point in the history
  • Loading branch information
claysmalley authored Jun 20, 2024
2 parents a7f5d0e + df2a52b commit 827e963
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 0 deletions.
4 changes: 4 additions & 0 deletions icons/shield_mx_state_2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions icons/shield_mx_state_3.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
45 changes: 45 additions & 0 deletions src/js/shield_defs.js
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,51 @@ export function loadShields() {
bottom: 4,
},
};
[
"AGS",
"BC",
"BCS",
"CAMP",
"COAH",
"COL",
"CHIS",
"CHIH",
"DGO",
"GTO",
"GRO",
"HGO",
"JAL",
// FIXME missing State of Mexico
"MICH",
"MOR",
"NAY",
"NL",
"OAX",
"PUE",
"QRO",
"Q.ROO",
"SLP",
"SIN",
"SON",
"TAB",
"TAM",
"TLAX",
"VER",
"YUC",
"ZAC",
].forEach(
(state) =>
(shields[`MX:${state}`] = {
spriteBlank: ["shield_mx_state_2", "shield_mx_state_3"],
textColor: Color.shields.black,
padding: {
left: 2,
right: 2,
top: 5.5,
bottom: 4.5,
},
})
);

// Ejes Viales (CDMX)
shields["MX:CDMX:EJE:CENTRAL"] = {
Expand Down
1 change: 1 addition & 0 deletions src/shieldtest.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ let networks = [
"US:VA",
"US:PR:primary",
"HK",
"MX:QRO",
"CA:QC:A",

"NZ:SH",
Expand Down

0 comments on commit 827e963

Please sign in to comment.