Skip to content

Commit

Permalink
Add Runechat
Browse files Browse the repository at this point in the history
  • Loading branch information
SuhEugene committed Nov 3, 2023
1 parent 0a8b55a commit 24c1fb3
Show file tree
Hide file tree
Showing 14 changed files with 452 additions and 7 deletions.
1 change: 1 addition & 0 deletions baystation12.dme
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,7 @@
#include "code\datums\browser.dm"
#include "code\datums\callbacks.dm"
#include "code\datums\category.dm"
#include "code\datums\chat_message.dm"
#include "code\datums\cinematic.dm"
#include "code\datums\datum.dm"
#include "code\datums\footsteps.dm"
Expand Down
2 changes: 2 additions & 0 deletions code/__defines/__renderer.dm
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,8 @@
#define HUD_ABOVE_ITEM_LAYER 4
#define HUD_ABOVE_HUD_LAYER 5

#define RUNECHAT_PLANE 7

/// This plane masks out lighting, to create an "emissive" effect for e.g glowing screens in otherwise dark areas.
#define EMISSIVE_PLANE 10
#define EMISSIVE_TARGET "*emissive"
Expand Down
5 changes: 5 additions & 0 deletions code/__defines/_renderer.dm
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,11 @@ GLOBAL_LIST_EMPTY(zmimic_renderers)
group = RENDER_GROUP_SCREEN
plane = HUD_PLANE

/atom/movable/renderer/runechat
name = "Runechat"
group = RENDER_GROUP_SCREEN
plane = RUNECHAT_PLANE


/* *
* Group renderers
Expand Down
7 changes: 7 additions & 0 deletions code/__defines/lists.dm
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,15 @@
#define UNSETEMPTY(L) if (L && !length(L)) L = null
// Removes I from list L, and sets I to null if it is now empty
#define LAZYREMOVE(L, I) if(L) { L -= I; if(!length(L)) { L = null; } }
// Removes the value V from the item K, if the item K is empty will remove it from the list, if the list is empty will set the list to null
#define LAZYREMOVEASSOC(L, K, V) if(L) { if(L[K]) { L[K] -= V; if(!length(L[K])) L -= K; } if(!length(L)) L = null; }
// Adds I to L, initalizing L if necessary
#define LAZYADD(L, I) if(!L) { L = list(); } L += I;
// Adds to the item K the value V, if the list is null it will initialize it
#define LAZYADDASSOC(L, K, V) if(!L) { L = list(); } L[K] += V;
// This is used to add onto lazy assoc list when the value you're adding is a /list/.
// This one has extra safety over lazyaddassoc because the value could be null (and thus cant be used to += objects)
#define LAZYADDASSOCLIST(L, K, V) if(!L) { L = list(); } L[K] += list(V);
// Insert I into L at position X, initalizing L if necessary
#define LAZYINSERT(L, I, X) if(!L) { L = list(); } L.Insert(X, I);
// Adds I to L, initalizing L if necessary, if I is not already in L
Expand Down
Loading

0 comments on commit 24c1fb3

Please sign in to comment.