Add injectable Discord RPC service that will broadcast Discord events
through event bus and have API for setting Discord Rich Presence status.
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
Currently MLM plugin sack overlay layer is set to ABOVE_SCENE, but it
needs to be set to UNDER_WIDGETS so overlay renderer can tile it
correctly with other overlays (and also to be rendered over overheads
and HP bars).
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
You should never want to expose instance variables in the class to public, and you always want to either create getters/setters for them or make them private.
shownSkills wasn't being initialized until it received ConfigChanged
event, causing a NullPointerException when the overlay tried to iterate
over shownSkills
- Adjust overlay layers and priorities to correctly show f.e player names
on top, but below ui elements/widget elements.
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
- Add new overlay layer position that draws right above overheads and HP
bars, what is perfect for game interfaces
- Make this new layer use UNDER_WIDGETS layer position, and move the
before layer position to ABOVE_SURFACE
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
In order to not draw UI overlays over bank interfaces (and similar popup
interfaces), change default overlay position to UNDER_WIDGETS.
Fixes#451
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
We believe the teamcape plugin has equivalents in both OSBuddy and
Konduit, and so are readding it on the principle that rules should not
be selectively enforced on clients.
- Change some public access modifiers to private
- Remove getSession and change it to checkSession that simply returns
boolean that checks if other session is equal with current and update
SessionManager according to that
- Fix naming of gson const (change it to GSON)
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>