Commit Graph

34 Commits

Author SHA1 Message Date
JJRcop 938789d0a7 [READY] Blocked words tell you which ones (#44728)
About The Pull Request

Same premise as #44712 but using a simple regex replace and also on the client side
Closes #44712

I was gonna PR it to #44712 but half way through I realized I had already replaced nearly all of bobbah's changes, and after I was finished the branches shared nothing.
Why It's Good For The Game

The delta is way smaller and simpler
Should solve the DoS concerns without needing a limit on bad chats because it's not a loop it's on the client side
Changelog

cl JJRcop and Bobbahbrown
tweak: When attempting to say a blocked word in character you will be notified which ones were blocked.
/cl
2019-06-29 21:09:56 +12:00
oranges f8c012abf4 Revoke JS error handler's right to exist (#44581)
unused, vulnerable
2019-06-18 00:06:45 -07:00
Rob Bailey 272fcb60f3 Fix the prefs for darkmode loading inverted (#43639)
I can't believe this was the problem just end my life do it
2019-04-18 22:43:21 -07:00
Rob Bailey 930e9dc501 [READY] Darkmode fixes (#43252)
* better darkmode v1

* ever better colors

* slightly improved tip color + fixed scrolly bug

* updates skin.dmf as well as some small color tweaks

* slightly tweaked more readable info and admin shit

* span_class fix

* merges ooc fixes

* whoops

* MC and ticket screen fix

* no default darkmode

* skin fixes

* more obnoxious adminpm

* more obnoxious adminshit

* skin revert to ensure proper light theme.

* prevents weirdness with default whiteness
2019-03-22 08:56:17 +13:00
Kmc2000 6b6537cccd Adds toggleable darkmode to the game! (#43072)
* Adds toggleable darkmode to the game! (Use the toggle darkmode verb if you want to use light mode)

* Removes a random linechange

* Undo unintentional changes

* Changes some forced font tags to use spans, which won't break darkmode.

* Fixes up some problems I found while testing
Darkmode is no longer default (this caused some issues with people getting a broken chat)

* Darkmode sucks less now

* Darkmode button now works again
2019-03-21 11:02:41 +13:00
JJRcop aab6494846 Removes firebug from goonchat
not used in game
2019-03-11 05:28:18 -04:00
JJRcop 8748e6d83e Internet midi respects start and end times (#43021)
* Play Internet Sound respects start time
For example, adding &t=400 to youtube links.
Doesn't try to parse the start time, youtube-dl does that for us already. Will probably work on most sites not just youtube.

* [Play Internet Sound] now supports end time too

Switched event handler for start to loadeddata from canplay

loadeddata fires when the first frame is available
this is quicker and more consistent than canplay, which tries
to predict at least a few moments of playability being
available before it fires

* [Internet Sound] music_extra_data now starts null
2019-03-08 10:51:04 -05:00
Dominik Panic 74f959a0ac Oranges stop being lazy reeeee 2019-02-20 14:33:47 +01:00
Kyle Spier-Swenson 8baa470d7a Port paradise goonchat uridecode fix 2018-10-02 10:53:08 -07:00
Tad Hardesty c4dbe0a619 Add DOM-based linkify to goonchat (no more URLs in IC) (#38693)
* Add DOM-based linkify to goonchat (no more URLs in IC)

* Add linkify spans to places where OOC messages appear

This includes:
- OOC
- Deadchat
- Admin chat
- Admin logs
- Admin PMs
- Prayers

* Limit fallback behavior to linkify spans
2018-06-26 14:44:34 +12:00
Tad Hardesty 5a79952716 Allow actually saving Goonchat logs 2018-06-23 11:25:19 -07:00
Tad Hardesty ae5c744b54 Make chat squashing HTML-agnostic 2018-06-09 02:45:56 -07:00
JJRcop a79c5a722d Fixes stopsounds properly (#36341)
* Revert "Merge pull request #36340 from vuonojenmustaturska/beelogreen"

This reverts commit 259838f38c, reversing
changes made to 111cd316a9.

* Fixes stopsounds properly

Also I forgot to actually block admins from bad protocols
it just showed them a message that it was blocked but didn't
block it
2018-03-12 19:26:20 -04:00
AnturK 619b273ed3 html_interface removal and crew monitoring console refactor. (#35431)
Quick changes list:

    html_interface gone
    unused card interface gone
    minimap gone from crew console(subsystem not disabled in case something else wants to use it)
    ui_host() now takes user parameter
    Some assets moved around.

Fixes #22124
2018-02-16 09:31:21 +13:00
uraniummeltdown 35bc7d469c better chat squashing with a red animated badge
combined chat messages no longer increases font size
2018-01-28 18:42:46 +05:00
AnturK d8e791bffc Makes default admin volume work again. (#33875) 2017-12-28 10:03:20 -05:00
uraniummeltdown f047ca799c default body line-height 1.4 -> 1.2
added goonchat buttons to increase/decrease body line-height
2017-12-21 22:26:20 +05:00
AnturK b06bd2c86f Adds repeated message squashing to chat. (#33605)
* Adds repeated message squashing to chat.

* Forgot to actually use the pref

* Drops some unnecessary css

* No trimming same thing three times

* Increases size of repeats up to 24px, fixes scrolling
2017-12-17 21:45:26 -05:00
Vladimir Veysman d5f42eafe5 Fixed TGchat (#32705) 2017-11-14 09:40:26 -02:00
JJRcop ce3035289a Adds default volume to tgchat javascript as well 2017-11-10 13:14:20 -05:00
JJRcop 2ab85e231b Moved admin music volume slider to its own menu (#31277)
* Moved admin music volume slider to its own menu

* Minor fixes to goonchat
2017-10-05 20:58:49 +13:00
JJRcop 54f236073a Fixes admin volume not updating datum var 2017-09-12 09:48:13 -05:00
JJRcop 3259ac4c49 Adds Internet admin midi (#30457)
* Adds Internet admin midi

* Moves global regex into proc (shell_url_scrub)

* Moves shelleo to world
Adds quotes around the command in shelleo, to encapsulate it

* Admins can stop playing web sounds

* Revised internet midi extension order
Moved m4a to least preferred,
as it can potentially carry non-aac or non-mpeg-3 audio

* Kills \n in web sound

* play_web_sound availability based on config

* play web sound and shelleo tweaks

istypeless for in play web sound & readability parenthesis around binary AND
add return index defines for shelleo proc

* Security fix for play web sound
2017-09-08 10:31:33 -04:00
oranges 5b44f77b67 Remove some unused goonchat stuff
we don't have dectalk, so that can go

the command var is completely unused, seems legacy from the goon
implementation.

The chatmode stuff doesn't do anything at all that I can see and no
alternative spritesheets exist
2017-08-23 23:45:39 +00:00
Kyle Spier-Swenson f2cf4c2f5c [ready]Makes bIcon better (#29690)
Goonchat will use the asset cache, you now have to specify who to send the icons too.

Goonchat will now load icons in the background, displaying them once they load. this prevents the message from being delayed while the icons are sent.

Icons that aren't preloaded using the asset cache system will not render on ie8 clients. This is because of a ie8 bug that prevents changes on runtime created images from rendering.
2017-08-14 10:40:50 +12:00
Kyle Spier-Swenson 23488b6b98 Fixes goonchat on ie8
ie8 doesn't define the console unless dev tools are open
2017-08-02 23:00:39 -07:00
Jordan Brown 7324244459 Doubles goonchat scroll snap tolerance (#29056) 2017-07-06 20:19:34 -04:00
Jordan Brown 64566c33cb Fix 2017-06-08 16:30:49 -04:00
Jordan Brown e9b3a572be More remnants 2017-06-08 15:17:27 -04:00
Cyberboss 4ad986bde8 @SpaiR's recommendation for log saving 2017-05-08 09:28:34 -04:00
Lzimann 13da512ea0 Actually adds the files 2017-05-03 14:06:34 -03:00
Lzimann 4c1ad2c91d Sweet javascript error handler 2017-05-03 13:50:15 -03:00
Lzimann 4ee094c93b A different approach for testing 2017-05-03 12:16:07 -03:00
Lzimann 5dc30c1984 Changes the directory to code/modules/goonchat 2017-05-01 14:19:22 -03:00