Skip to content

Commit

Permalink
Fix orbit menu (#13627)
Browse files Browse the repository at this point in the history
* Fix orbit menu

* how did that happen

---------

Co-authored-by: TiviPlus <[email protected]>
  • Loading branch information
TiviPlus and TiviPlus authored Jul 31, 2023
1 parent 168e44e commit 1077735
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 41 deletions.
50 changes: 9 additions & 41 deletions code/_globalvars/lists/flavor_misc.dm
Original file line number Diff line number Diff line change
Expand Up @@ -82,36 +82,15 @@ GLOBAL_LIST_INIT(genders, list(MALE, FEMALE, NEUTER))

GLOBAL_LIST_EMPTY(minimap_icons)
GLOBAL_LIST_INIT(playable_icons, list(
"alpha_engi",
"alpha_leader",
"alpha_medic",
"alpha_private",
"alpha_smartgunner",
"boiler",
"bravo_engi",
"bravo_leader",
"bravo_medic",
"bravo_private",
"bravo_smartgunner",
"bull",
"captain",
"carrier",
"charlie_engi",
"charlie_leader",
"charlie_medic",
"charlie_private",
"charlie_smartgunner",
"chief_medical",
"cl",
"crusher",
"cse",
"defender",
"defiler",
"delta_engi",
"delta_leader",
"delta_medic",
"delta_private",
"delta_smartgunner",
"drone",
"fieldcommander",
"gorger",
Expand All @@ -136,29 +115,18 @@ GLOBAL_LIST_INIT(playable_icons, list(
"synth",
"warrior",
"warlock",
"whiskey_engi",
"whiskey_leader",
"whiskey_medic",
"whiskey_private",
"whiskey_smartgunner",
"widow",
"wraith",
"xenoking",
"xenoqueen",
"xenoshrike",
"xray_engi",
"xray_leader",
"xray_medic",
"xray_private",
"xray_smartgunner",
"yankee_engi",
"yankee_leader",
"yankee_medic",
"yankee_private",
"yankee_smartgunner",
"zulu_engi",
"zulu_leader",
"zulu_medic",
"zulu_private",
"zulu_smartgunner",
))

//like above but autogenerated when a new squad is created
GLOBAL_LIST_INIT(playable_squad_icons, list(
"private",
"leader",
"engi",
"medic",
"smartgunner",
))
9 changes: 9 additions & 0 deletions code/datums/jobs/squads.dm
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,15 @@
. = ..()
tracking_id = SSdirection.init_squad(name, squad_leader)

for(var/state in GLOB.playable_squad_icons)
var/icon/top = icon('icons/UI_icons/map_blips.dmi', state, frame = 1)
top.Blend(color, ICON_MULTIPLY)
var/icon/bottom = icon('icons/UI_icons/map_blips.dmi', "squad_underlay", frame = 1)
top.Blend(bottom, ICON_UNDERLAY)

var/icon_state = lowertext(name) + "_" + state
GLOB.minimap_icons[icon_state] = icon2base64(top)


/datum/squad/proc/get_all_members()
return marines_list
Expand Down

0 comments on commit 1077735

Please sign in to comment.