Skip to content

Commit

Permalink
Map PDA Program - POIs (#19536)
Browse files Browse the repository at this point in the history
  • Loading branch information
DreamySkrell authored Jul 24, 2024
1 parent 66bfc42 commit b488e51
Show file tree
Hide file tree
Showing 13 changed files with 216 additions and 11 deletions.
1 change: 1 addition & 0 deletions aurorastation.dme
Original file line number Diff line number Diff line change
Expand Up @@ -2282,6 +2282,7 @@
#include "code\modules\holodeck\HolodeckControl.dm"
#include "code\modules\holodeck\HolodeckObjects.dm"
#include "code\modules\holodeck\HolodeckPrograms.dm"
#include "code\modules\holomap\poi.dm"
#include "code\modules\http\forum_api.dm"
#include "code\modules\http\forumuser_api.dm"
#include "code\modules\http\http.dm"
Expand Down
5 changes: 5 additions & 0 deletions code/controllers/subsystems/initialization/holomap.dm
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ SUBSYSTEM_DEF(holomap)
/// Same as `minimaps_base64`, but does not discriminate between walls and paths.
var/list/minimaps_scan_base64 = list()

/// List of all `/obj/effect/landmark/minimap_poi`.
var/list/obj/effect/landmark/minimap_poi/pois = list()

/datum/controller/subsystem/holomap/Initialize()
generate_all_minimaps()
LOG_DEBUG("SSholomap: [minimaps.len] maps.")
Expand Down Expand Up @@ -96,6 +99,8 @@ SUBSYSTEM_DEF(holomap)
for (var/thing in Z_TURFS(zlevel))
T = thing
A = T.loc
if (A.area_flags & AREA_FLAG_HIDE_FROM_HOLOMAP)
continue
if (A.holomap_color)
canvas.DrawBox(A.holomap_color + "99", T.x, T.y)

Expand Down
18 changes: 18 additions & 0 deletions code/modules/holomap/poi.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@

/obj/effect/landmark/minimap_poi
name = "minimap poi"
desc = null
icon = 'icons/effects/map_effects.dmi'
icon_state = "minimap_poi"

/obj/effect/landmark/minimap_poi/Initialize()
..()
return INITIALIZE_HINT_LATELOAD

/obj/effect/landmark/minimap_poi/LateInitialize()
. = ..()
SSholomap.pois += src

/obj/effect/landmark/minimap_poi/Destroy()
SSholomap.pois -= src
. = ..()
10 changes: 10 additions & 0 deletions code/modules/modular_computers/file_system/programs/generic/map.dm
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,16 @@
list("d"="Hangar", "c"=HOLOMAP_AREACOLOR_HANGAR),
)

data["pois"] = list()
for(var/obj/effect/landmark/minimap_poi/poi as anything in SSholomap.pois)
data["pois"] += list(list(
"name" = poi.name,
"desc" = poi.desc,
"x" = poi.x,
"y" = poi.y,
"z" = poi.z,
))

return data

/datum/computer_file/program/map/ui_act(action, list/params, datum/tgui/ui, datum/ui_state/state)
Expand Down
58 changes: 58 additions & 0 deletions html/changelogs/DreamySkrell-map-pois.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
################################
# Example Changelog File
#
# Note: This file, and files beginning with ".", and files that don't end in ".yml" will not be read. If you change this file, you will look really dumb.
#
# Your changelog will be merged with a master changelog. (New stuff added only, and only on the date entry for the day it was merged.)
# When it is, any changes listed below will disappear.
#
# Valid Prefixes:
# bugfix
# - (fixes bugs)
# wip
# - (work in progress)
# qol
# - (quality of life)
# soundadd
# - (adds a sound)
# sounddel
# - (removes a sound)
# rscadd
# - (adds a feature)
# rscdel
# - (removes a feature)
# imageadd
# - (adds an image or sprite)
# imagedel
# - (removes an image or sprite)
# spellcheck
# - (fixes spelling or grammar)
# experiment
# - (experimental change)
# balance
# - (balance changes)
# code_imp
# - (misc internal code change)
# refactor
# - (refactors code)
# config
# - (makes a change to the config files)
# admin
# - (makes changes to administrator tools)
# server
# - (miscellaneous changes to server)
#################################

# Your name.
author: DreamySkrell

# Optional: Remove this file after generating master changelog. Useful for PR changelogs that won't get used again.
delete-after: True

# Any changes you've made. See valid prefix list above.
# INDENT WITH TWO SPACES. NOT TABS. SPACES.
# SCREW THIS UP AND IT WON'T WORK.
# Also, this gets changed to [] after reading. Just remove the brackets when you add new shit.
# Please surround your changes in double quotes ("). It works without them, but if you use certain characters it screws up compiling. The quotes will not show up in the changelog.
changes:
- rscadd: "Adds map PDA program POIs."
Binary file modified icons/effects/map_effects.dmi
Binary file not shown.
2 changes: 1 addition & 1 deletion maps/_common/areas/areas.dm
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Generally you don't want to put your areas in here; if the area is only used in
no_light_control = 1
base_turf = /turf/space
is_outside = OUTSIDE_YES
area_flags = AREA_FLAG_IS_BACKGROUND
area_flags = AREA_FLAG_IS_BACKGROUND | AREA_FLAG_HIDE_FROM_HOLOMAP
nevergravity = TRUE //There's no gravity in space

/area/space/atmosalert()
Expand Down
1 change: 1 addition & 0 deletions maps/_common/areas/station/command.dm
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
/area/bridge/selfdestruct
name = "Command - Station Authentication Terminal Safe"
icon_state = "bridge"
area_flags = AREA_FLAG_HIDE_FROM_HOLOMAP

/area/bridge/controlroom // Horizon.
name = "Command - Control Room"
Expand Down
3 changes: 2 additions & 1 deletion maps/sccv_horizon/code/sccv_horizon_areas.dm
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@

// Exterior
/area/horizon/exterior
name = "Horizon - Exterior (DO NOT ENCROACH ON LANDING PLACES)"
name = "Horizon - Exterior"
icon_state = "exterior"
base_turf = /turf/space
dynamic_lighting = TRUE
Expand All @@ -346,6 +346,7 @@
no_light_control = TRUE
allow_nightmode = FALSE
ambience = AMBIENCE_SPACE
area_flags = AREA_FLAG_HIDE_FROM_HOLOMAP

/********** Maintenance Start **********/
// Maintenance
Expand Down
38 changes: 34 additions & 4 deletions maps/sccv_horizon/sccv_horizon-1_deck_1.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -7493,6 +7493,15 @@
},
/turf/simulated/floor/plating,
/area/maintenance/engineering)
"fes" = (
/obj/effect/floor_decal/industrial/warning{
dir = 1
},
/obj/effect/landmark/minimap_poi{
name = "Canary"
},
/turf/simulated/floor/plating,
/area/hangar/canary)
"feD" = (
/obj/structure/cable{
icon_state = "4-8"
Expand Down Expand Up @@ -11233,6 +11242,12 @@
roof_type = null
},
/area/horizon/custodial/disposals)
"hGb" = (
/obj/effect/landmark/minimap_poi{
name = "Main Lift"
},
/turf/simulated/floor/tiled/dark,
/area/hallway/primary/aft)
"hGu" = (
/obj/structure/closet/crate,
/obj/effect/floor_decal/corner/brown{
Expand Down Expand Up @@ -13060,6 +13075,15 @@
/obj/effect/floor_decal/industrial/outline/emergency_closet,
/turf/simulated/floor/tiled/dark,
/area/engineering/atmos/propulsion/starboard)
"jbh" = (
/obj/effect/floor_decal/corner/brown{
dir = 10
},
/obj/effect/landmark/minimap_poi{
name = "Spark"
},
/turf/simulated/floor/tiled,
/area/hangar/operations)
"jbm" = (
/obj/effect/floor_decal/corner/brown{
dir = 10
Expand Down Expand Up @@ -28389,6 +28413,12 @@
/obj/random/loot,
/turf/simulated/floor/plating,
/area/maintenance/operations)
"txK" = (
/obj/effect/landmark/minimap_poi{
name = "Intrepid"
},
/turf/simulated/floor/plating,
/area/hangar/intrepid)
"txT" = (
/obj/structure/table/rack,
/obj/item/clothing/suit/hazmat/anomaly,
Expand Down Expand Up @@ -50818,7 +50848,7 @@ umt
wkD
cua
rcA
oXD
jbh
wSS
ixU
pgW
Expand Down Expand Up @@ -55917,7 +55947,7 @@ pTd
kyK
oSi
kaM
iRC
txK
iRC
xsx
eSV
Expand Down Expand Up @@ -56882,7 +56912,7 @@ rHK
rHK
rHK
rHK
kuh
hGb
bec
wLL
ovg
Expand Down Expand Up @@ -61576,7 +61606,7 @@ vqx
hot
nNh
pPV
pEk
fes
oji
hmD
kOp
Expand Down
31 changes: 29 additions & 2 deletions maps/sccv_horizon/sccv_horizon-2_deck_2.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -6199,6 +6199,9 @@
/turf/simulated/floor/tiled/full,
/area/hallway/primary/central_two)
"cOp" = (
/obj/effect/landmark/minimap_poi{
name = "Research"
},
/turf/simulated/floor/wood,
/area/rnd/hallway/secondary)
"cOs" = (
Expand Down Expand Up @@ -23537,6 +23540,9 @@
/obj/effect/floor_decal/corner/brown{
dir = 4
},
/obj/effect/landmark/minimap_poi{
name = "Operations"
},
/turf/simulated/floor/tiled,
/area/operations/office)
"kOW" = (
Expand Down Expand Up @@ -27397,6 +27403,12 @@
},
/turf/simulated/floor/tiled,
/area/horizon/security/warden)
"mGv" = (
/obj/effect/landmark/minimap_poi{
name = "Main Lift"
},
/turf/simulated/wall/r_wall,
/area/hallway/primary/central_one)
"mGY" = (
/obj/machinery/atmospherics/binary/pump/high_power{
dir = 1;
Expand Down Expand Up @@ -28809,6 +28821,12 @@
},
/turf/simulated/floor/tiled/dark,
/area/horizon/grauwolf)
"njk" = (
/obj/effect/landmark/minimap_poi{
name = "Medbay"
},
/turf/simulated/floor/tiled/white,
/area/medical/gen_treatment)
"nju" = (
/obj/structure/table/reinforced,
/obj/machinery/door/firedoor,
Expand Down Expand Up @@ -29408,6 +29426,9 @@
/obj/effect/floor_decal/spline/fancy/wood{
dir = 1
},
/obj/effect/landmark/minimap_poi{
name = "Service"
},
/turf/simulated/floor/wood,
/area/horizon/crew_quarters/lounge/bar)
"nAz" = (
Expand Down Expand Up @@ -43609,6 +43630,9 @@
/obj/effect/floor_decal/corner_wide/yellow{
dir = 6
},
/obj/effect/landmark/minimap_poi{
name = "Engineering"
},
/turf/simulated/floor/tiled,
/area/hallway/engineering)
"uki" = (
Expand Down Expand Up @@ -48844,6 +48868,9 @@
},
/obj/machinery/atmospherics/pipe/manifold/hidden/scrubbers,
/obj/machinery/atmospherics/pipe/manifold/hidden/supply,
/obj/effect/landmark/minimap_poi{
name = "Security"
},
/turf/simulated/floor/tiled/full,
/area/horizon/security/hallway)
"wzN" = (
Expand Down Expand Up @@ -70641,7 +70668,7 @@ nbd
abA
weX
iyl
xqE
njk
pUI
bCl
iIf
Expand Down Expand Up @@ -73861,7 +73888,7 @@ iVp
iVp
iVp
iVp
nUN
mGv
vcv
lPO
vbk
Expand Down
Loading

0 comments on commit b488e51

Please sign in to comment.