forked from tgstation/tgstation
-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[516 ONLY] NanoMap 2: Remake #1189
Merged
Merged
Changes from all commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
6e1f355
Move NanoMap to React Zoom Pan Pinch
AyIong be2991e
Good stuff
AyIong 6acadc8
Some types
AyIong 42f3cbb
Tooltip position
AyIong 0e19a35
Image rendering mode
AyIong 5267696
Little refactor
AyIong e24a43f
useLocalStorage
AyIong 9d577fc
Better map images
AyIong 740918c
Merge branch 'master' into 516-nanomap
AyIong 6b818c4
Update nanomaps and smoothing
AyIong 1a1deb8
The costyl
AyIong 13a168e
You can center on selected target now
AyIong cecb30c
Update nanomap-renderer
AyIong 63638e5
Update NanoMap.tsx
AyIong 0a8bc10
Update nanomap-renderer
AyIong 72158f3
Additional props
AyIong bce91a8
NanoPreferences
AyIong 47f4e2b
Refactor nanomap z-leveling
AyIong 2e7aedf
Update NanoMap.tsx
AyIong d1a11ae
Thx gaxeer
AyIong b9a98e1
Shrink map resolutions
AyIong da5fcb9
Enable pixelated
AyIong c191e6d
No more needed
AyIong 4be26af
Little cleanup
AyIong 8490e02
More cleanup
AyIong c5e9e7a
Lol
AyIong 5a128d0
Ох и много ж вы насрали, ой-ой-ой
AyIong 60ce0fe
Allow to remember position and share it between players
AyIong 01bd8d2
Fix lavaland handle
AyIong 85c9376
Fix reseting objects scale
AyIong acd66ee
Maybe better this
AyIong df51edf
Revert "Maybe better this"
AyIong 09f86dd
Better map images
AyIong File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
149 changes: 149 additions & 0 deletions
149
modular_bandastation/aesthetics/smoothing/code/smoothing.dm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,149 @@ | ||
/** | ||
* Перезапись флагов у сглаживаемых объектов | ||
* | ||
* Используется в проде. | ||
* При изменении флагов не забудьте обновить перезаписи перезаписей... | ||
*/ | ||
|
||
// MARK: Windows | ||
/obj/structure/window/fulltile | ||
smoothing_groups = SMOOTH_GROUP_WINDOW_FULLTILE | ||
canSmoothWith = SMOOTH_GROUP_AIRLOCK + SMOOTH_GROUP_WINDOW_FULLTILE + SMOOTH_GROUP_WALLS | ||
|
||
/obj/structure/window/reinforced/fulltile | ||
smoothing_groups = SMOOTH_GROUP_WINDOW_FULLTILE | ||
canSmoothWith = SMOOTH_GROUP_AIRLOCK + SMOOTH_GROUP_WINDOW_FULLTILE + SMOOTH_GROUP_WALLS | ||
|
||
/obj/structure/window/reinforced/tinted/fulltile | ||
smoothing_groups = SMOOTH_GROUP_WINDOW_FULLTILE | ||
canSmoothWith = SMOOTH_GROUP_AIRLOCK + SMOOTH_GROUP_WINDOW_FULLTILE + SMOOTH_GROUP_WALLS | ||
|
||
/obj/structure/window/plasma/fulltile | ||
smoothing_groups = SMOOTH_GROUP_WINDOW_FULLTILE | ||
canSmoothWith = SMOOTH_GROUP_AIRLOCK + SMOOTH_GROUP_WINDOW_FULLTILE + SMOOTH_GROUP_WALLS | ||
|
||
/obj/structure/window/reinforced/plasma/fulltile | ||
smoothing_groups = SMOOTH_GROUP_WINDOW_FULLTILE | ||
canSmoothWith = SMOOTH_GROUP_AIRLOCK + SMOOTH_GROUP_WINDOW_FULLTILE + SMOOTH_GROUP_WALLS | ||
|
||
/obj/structure/window/reinforced/shuttle | ||
smoothing_groups = SMOOTH_GROUP_SHUTTLE_PARTS + SMOOTH_GROUP_WINDOW_FULLTILE_SHUTTLE | ||
canSmoothWith = SMOOTH_GROUP_SHUTTLE_PARTS + SMOOTH_GROUP_AIRLOCK + SMOOTH_GROUP_WINDOW_FULLTILE_SHUTTLE + SMOOTH_GROUP_TITANIUM_WALLS | ||
|
||
/turf/closed/indestructible/fakeglass | ||
smoothing_groups = SMOOTH_GROUP_WINDOW_FULLTILE | ||
canSmoothWith = SMOOTH_GROUP_AIRLOCK + SMOOTH_GROUP_WINDOW_FULLTILE + SMOOTH_GROUP_WALLS | ||
|
||
// MARK: Walls | ||
/turf/closed/wall | ||
smoothing_groups = SMOOTH_GROUP_WALLS + SMOOTH_GROUP_CLOSED_TURFS | ||
canSmoothWith = SMOOTH_GROUP_GIRDER + SMOOTH_GROUP_AIRLOCK + SMOOTH_GROUP_WINDOW_FULLTILE + SMOOTH_GROUP_WALLS | ||
|
||
/turf/closed/wall/mineral/titanium | ||
smoothing_groups = SMOOTH_GROUP_TITANIUM_WALLS + SMOOTH_GROUP_CLOSED_TURFS | ||
canSmoothWith = SMOOTH_GROUP_SHUTTLE_PARTS + SMOOTH_GROUP_AIRLOCK + SMOOTH_GROUP_WINDOW_FULLTILE_SHUTTLE + SMOOTH_GROUP_TITANIUM_WALLS | ||
|
||
/turf/closed/wall/mineral/cult | ||
canSmoothWith = SMOOTH_GROUP_GIRDER + SMOOTH_GROUP_AIRLOCK + SMOOTH_GROUP_WINDOW_FULLTILE + SMOOTH_GROUP_WALLS | ||
|
||
/turf/closed/wall/material | ||
smoothing_groups = SMOOTH_GROUP_WALLS + SMOOTH_GROUP_CLOSED_TURFS | ||
canSmoothWith = SMOOTH_GROUP_GIRDER + SMOOTH_GROUP_AIRLOCK + SMOOTH_GROUP_WINDOW_FULLTILE + SMOOTH_GROUP_WALLS | ||
|
||
/turf/closed/indestructible/riveted | ||
smoothing_groups = SMOOTH_GROUP_WALLS + SMOOTH_GROUP_CLOSED_TURFS | ||
canSmoothWith = SMOOTH_GROUP_GIRDER + SMOOTH_GROUP_AIRLOCK + SMOOTH_GROUP_WINDOW_FULLTILE + SMOOTH_GROUP_WALLS | ||
|
||
/turf/closed/indestructible/reinforced | ||
canSmoothWith = SMOOTH_GROUP_GIRDER + SMOOTH_GROUP_AIRLOCK + SMOOTH_GROUP_WINDOW_FULLTILE + SMOOTH_GROUP_WALLS | ||
|
||
/turf/closed/indestructible/cult | ||
canSmoothWith = SMOOTH_GROUP_GIRDER + SMOOTH_GROUP_AIRLOCK + SMOOTH_GROUP_WINDOW_FULLTILE + SMOOTH_GROUP_WALLS | ||
|
||
/obj/structure/falsewall | ||
canSmoothWith = SMOOTH_GROUP_GIRDER + SMOOTH_GROUP_AIRLOCK + SMOOTH_GROUP_WINDOW_FULLTILE + SMOOTH_GROUP_WALLS | ||
|
||
/obj/structure/girder | ||
canSmoothWith = SMOOTH_GROUP_GIRDER + SMOOTH_GROUP_AIRLOCK + SMOOTH_GROUP_WINDOW_FULLTILE + SMOOTH_GROUP_WALLS | ||
|
||
// MARK: Other | ||
/obj/structure/lattice | ||
smoothing_groups = SMOOTH_GROUP_LATTICE | ||
canSmoothWith = SMOOTH_GROUP_LATTICE + SMOOTH_GROUP_WALLS + SMOOTH_GROUP_OPEN_FLOOR | ||
|
||
/** | ||
* Это перезаписи перезаписей для рендера наномап и интерактивных карт. | ||
* | ||
* Я рот блять ебал этой хуйни, но это единственный способ который я вижу, | ||
* дабы сделать хорошее, красивое сглаживание на рендерах. | ||
*/ | ||
#ifndef CBT | ||
// MARK: Windows | ||
/obj/structure/window/fulltile | ||
smoothing_groups = list(SMOOTH_GROUP_WINDOW_FULLTILE) | ||
canSmoothWith = list(SMOOTH_GROUP_AIRLOCK, SMOOTH_GROUP_WINDOW_FULLTILE, SMOOTH_GROUP_WALLS) | ||
|
||
/obj/structure/window/reinforced/fulltile | ||
smoothing_groups = list(SMOOTH_GROUP_WINDOW_FULLTILE) | ||
canSmoothWith = list(SMOOTH_GROUP_AIRLOCK, SMOOTH_GROUP_WINDOW_FULLTILE, SMOOTH_GROUP_WALLS) | ||
|
||
/obj/structure/window/reinforced/tinted/fulltile | ||
smoothing_groups = list(SMOOTH_GROUP_WINDOW_FULLTILE) | ||
canSmoothWith = list(SMOOTH_GROUP_AIRLOCK, SMOOTH_GROUP_WINDOW_FULLTILE, SMOOTH_GROUP_WALLS) | ||
|
||
/obj/structure/window/plasma/fulltile | ||
smoothing_groups = list(SMOOTH_GROUP_WINDOW_FULLTILE) | ||
canSmoothWith = list(SMOOTH_GROUP_AIRLOCK, SMOOTH_GROUP_WINDOW_FULLTILE, SMOOTH_GROUP_WALLS) | ||
|
||
/obj/structure/window/reinforced/plasma/fulltile | ||
smoothing_groups = list(SMOOTH_GROUP_WINDOW_FULLTILE) | ||
canSmoothWith = list(SMOOTH_GROUP_AIRLOCK, SMOOTH_GROUP_WINDOW_FULLTILE, SMOOTH_GROUP_WALLS) | ||
|
||
/obj/structure/window/reinforced/shuttle | ||
smoothing_groups = list(SMOOTH_GROUP_SHUTTLE_PARTS, SMOOTH_GROUP_WINDOW_FULLTILE_SHUTTLE) | ||
canSmoothWith = list(SMOOTH_GROUP_SHUTTLE_PARTS, SMOOTH_GROUP_AIRLOCK, SMOOTH_GROUP_WINDOW_FULLTILE_SHUTTLE, SMOOTH_GROUP_TITANIUM_WALLS) | ||
|
||
/turf/closed/indestructible/fakeglass | ||
smoothing_groups = list(SMOOTH_GROUP_WINDOW_FULLTILE) | ||
canSmoothWith = list(SMOOTH_GROUP_AIRLOCK, SMOOTH_GROUP_WINDOW_FULLTILE, SMOOTH_GROUP_WALLS) | ||
|
||
// MARK: Walls | ||
/turf/closed/wall | ||
smoothing_groups = list(SMOOTH_GROUP_WALLS, SMOOTH_GROUP_CLOSED_TURFS) | ||
canSmoothWith = list(SMOOTH_GROUP_GIRDER, SMOOTH_GROUP_AIRLOCK, SMOOTH_GROUP_WINDOW_FULLTILE, SMOOTH_GROUP_WALLS) | ||
|
||
/turf/closed/wall/mineral/titanium | ||
smoothing_groups = list(SMOOTH_GROUP_TITANIUM_WALLS, SMOOTH_GROUP_CLOSED_TURFS) | ||
canSmoothWith = list(SMOOTH_GROUP_SHUTTLE_PARTS, SMOOTH_GROUP_AIRLOCK, SMOOTH_GROUP_WINDOW_FULLTILE_SHUTTLE, SMOOTH_GROUP_TITANIUM_WALLS) | ||
|
||
/turf/closed/wall/mineral/cult | ||
canSmoothWith = list(SMOOTH_GROUP_GIRDER, SMOOTH_GROUP_AIRLOCK, SMOOTH_GROUP_WINDOW_FULLTILE, SMOOTH_GROUP_WALLS) | ||
|
||
/turf/closed/wall/material | ||
smoothing_groups = list(SMOOTH_GROUP_WALLS, SMOOTH_GROUP_CLOSED_TURFS) | ||
canSmoothWith = list(SMOOTH_GROUP_GIRDER, SMOOTH_GROUP_AIRLOCK, SMOOTH_GROUP_WINDOW_FULLTILE, SMOOTH_GROUP_WALLS) | ||
|
||
/turf/closed/indestructible/riveted | ||
smoothing_groups = list(SMOOTH_GROUP_WALLS, SMOOTH_GROUP_CLOSED_TURFS) | ||
canSmoothWith = list(SMOOTH_GROUP_GIRDER, SMOOTH_GROUP_AIRLOCK, SMOOTH_GROUP_WINDOW_FULLTILE, SMOOTH_GROUP_WALLS) | ||
|
||
/turf/closed/indestructible/reinforced | ||
canSmoothWith = list(SMOOTH_GROUP_GIRDER, SMOOTH_GROUP_AIRLOCK, SMOOTH_GROUP_WINDOW_FULLTILE, SMOOTH_GROUP_WALLS) | ||
|
||
/turf/closed/indestructible/cult | ||
canSmoothWith = list(SMOOTH_GROUP_GIRDER, SMOOTH_GROUP_AIRLOCK, SMOOTH_GROUP_WINDOW_FULLTILE, SMOOTH_GROUP_WALLS) | ||
|
||
/obj/structure/falsewall | ||
canSmoothWith = list(SMOOTH_GROUP_GIRDER, SMOOTH_GROUP_AIRLOCK, SMOOTH_GROUP_WINDOW_FULLTILE, SMOOTH_GROUP_WALLS) | ||
|
||
/obj/structure/girder | ||
canSmoothWith = list(SMOOTH_GROUP_GIRDER, SMOOTH_GROUP_AIRLOCK, SMOOTH_GROUP_WINDOW_FULLTILE, SMOOTH_GROUP_WALLS) | ||
|
||
// MARK: Other | ||
/obj/machinery/door/airlock | ||
smoothing_groups = list(SMOOTH_GROUP_AIRLOCK) | ||
|
||
/obj/structure/lattice | ||
smoothing_groups = list(SMOOTH_GROUP_LATTICE) | ||
canSmoothWith = list(SMOOTH_GROUP_LATTICE, SMOOTH_GROUP_WALLS, SMOOTH_GROUP_OPEN_FLOOR) | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
#include "_nanomap.dm" | ||
|
||
#include "code/camera.dm" | ||
#include "code/nanomaps_asset.dm" | ||
#include "code/camera_console.dm" | ||
#include "code/nanomap_assets.dm" | ||
#include "code/nanomap_datum.dm" |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Может тогда дать minimap название?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
можно, но это по факту рамка, так шо хз