Commit Graph

651 Commits

Author SHA1 Message Date
Ashe Higgs
08569ecadb You can now control-click action buttons to lock them in place (#29379)
Adds a lock function to action buttons, as well as a preference controlling default behaviour.
2017-07-25 10:05:18 +12:00
kevinz000
e568f29bc5 Changes clickcatcher to dynamically scale based on view range (#29370)
Scale()s the icon when range is below 16, if it's above 16, scales the icon to 16 and transforms the rest of the way.

This replaces the other method of creating one click catcher image per tile in the range of the users view, which was pretty memory hungry and inefficient. A single icon operation while the view range changes should still be pretty performant and require less memory bookkeeping.l

This ensures it works when the users view range changes, but does not result in a loss of precision for view ranges up to 16 when moving the mouse (it triggers per pixel which simply get larger when transformed)

fixes #29342
2017-07-24 10:23:37 +12:00
Kyle Spier-Swenson
43e5c06b97 [s]Fixes panic bunker (#29289) 2017-07-17 09:13:13 -03:00
kevinz000
b09e519584 Beam Rifle Zooming Rework + Click catcher memes + bunch of other random stuff that players won't use (#28551)
Click catcher now supports mousemove/mousedrag. Basically, mouse location can now be captured even if the user isn't mousing over a visible location
    Added procs to allow for projectiles to be fired with just an angle for pixel projectiles, instead of requiring a target turf and pixel x/y
    Added procs to get angle of user's mouse from their viewpoint (Time to rework gang machine guns again!)
    Beam rifles now have different zoom modes
    Free directional zooms out and tracks the angle of your mouse from the center of the screen. However, you can't target with very good accuracy on this (Shots can't be properly aimed on non dense objects/lying down mobs.)
    Locked directional zooms like free directional but doesn't automatically turn if your aim changes.
    Center view, just increases your view in all directions (2x weaker)
    No zoom mode, in which you just retain your normal view.
    You can select beam rifle zooming rates to be instant or stepped.
    Stepped zooming rates zoom out 5 tiles per second. This will likely help with people not being able to use it without lagging because their computers aren't as beefy!
    Beam rifles no longer require zoom to be fired
    Beam rifle aiming beams now instantly update instead of on process
    Beam rifle aiming beams are now one object instead of 150. This'll help with the lag caused by it during gameplay that I've observed.
    Angular penalty reduced by 0.1 for a nice even number.
    Instances of client.view = have been replaced with client.change_view() as that'll properly update the click catcher
    Hopefully shooting yourself in the face when you hit a blob tile or whatnot is fixed with the new and improved code..
2017-07-17 12:13:03 +12:00
Shadowlight213
68102aaa0c Refactors speech/communication logging and adds coordinates to speech logs (#28997)
* Adds locations to speech and related communications
Refactors how logging is handled for these.

* changes

* ahhhhh

* preemptive merge conflict undoing maybe?

* Let's not delay this further
2017-07-06 16:06:43 -04:00
JamieH
2eaef38534 Remove sanitize_ooccolor 2017-07-01 17:07:04 +01:00
Shadowlight213
c9d2c2bd8d Ports bay's supermatter monitor modular program (#28635)
* WIP

* How the hell did these not get committed

* Fixes, icons for the tablet

* Laptops use the static engine overlay when running the program.
Engineering tablets now start preloaded with a supermatter monitor and alarm monitor.

* Defines

* Requested changes.
Engineering tablets no longer have preinstalled programs.
Supermatter status percents are defines

* Minor thing
2017-06-28 11:05:09 -04:00
Jordan Brown
ef96559701 Removes cortical borers 2017-06-26 11:21:08 -04:00
Kyle Spier-Swenson
4307972412 Makes goonchat robust. (#28750)
* Temp fix for output control issue messing up goonchat

I'll need to do some more testing on this, but this should likely be a test mergeable fix. I might not be back at my home computer until sunday night/monday.

* Fix quote

* Adds verb to fix goonchat and log what was needed to fix it.

Makes shit robust, AND lets it know whats going on.

* Update ooc.dm

* Fix some stupidity in to_chat

* Simplify the winset

Disabling the controls seems to do nothing effective.

* y-you too, t-thanks

* Fix some short term memory issues in the code.

* Warns users to update byond if goonchat gets overridden by old chat
2017-06-26 01:03:40 -04:00
MrStonedOne
7a13937fc7 Makes oldchat show while goonchat loads, sends preload messages there. 2017-06-21 00:51:28 -07:00
Lzimann
50da12ba12 Changes tooltip verbs to be on preferences tab 2017-06-19 09:27:30 -03:00
Kyle Spier-Swenson
bef4c2c318 Fix cid reconnect message not showing (#28580) 2017-06-18 23:17:45 -04:00
Tacolizard
24f391d943 [READY]Adds examine tooltips (#28407)
* initial

* add preference verb

* forgot to actually make the verb work

* make verb use prefs

* fix and save prefs

* change proc name

* varry good

* will this work?

* ok i think this will work

* halp

* reeee

* fix

* implement remie's suggestions

* fix indentation

* give verb feedback

* change threshold

* mrperson changes

* change threshold

* add custom tooltip delay

* decapitalize process()

* mouseOver = FALSE

* remake delay system

* round force

* fix capitalization

* enable force_string override

* fix force string override

* add TIMER_STOPPABLE flag

* check user

* change operator

* add a comment

* set minimum force to 0

* is this how you do it?

* update savefile

* simplify

* fix savefile

* fix list init

* remove rounding

* change threshhold

* remove colors

* fix

* add spaces

* micro-optimization fnr

* fix permissions

* implement suggestions

* fix permissions

* cyberboss suggestion
2017-06-18 22:57:35 -04:00
Jordie0608
0e520e5b4b fixes panic bunker age check 2017-06-13 23:08:27 +10:00
Leo
cc849b1dca Merge pull request #28354 from MrStonedOne/patch-374
Make goonchat use unverified asset sending
2017-06-12 20:25:36 -03:00
Kyle Spier-Swenson
d269b15795 Workaround for byond bug causing clients to flood the server with repeated asset cache arrival messages (#28356) 2017-06-12 20:24:46 -03:00
Kyle Spier-Swenson
1691739e16 Make goonchat use unverified asset sending
Verified asset sending is only needed for use with output() and doing verified sending too soon after a client connects causes bugs.
2017-06-11 15:27:36 -07:00
Jordan Brown
5bbbd26739 Merge branch 'master' into goonchatv3 2017-06-07 20:06:46 -04:00
Jordan Brown
45aa3f8a3e Make it use asset cache 2017-06-07 11:00:16 -04:00
Jordie
73882dcc49 Fix to round_id and .getserverlog (#28130) 2017-06-07 09:37:53 -03:00
Jordan Brown
e6bfb7f449 Refactors datum verbs to be general (#28109) 2017-06-06 22:21:26 -03:00
Jordan Brown
ccfaf07a5a Merge branch 'goonchatv3' of https://github.com/Cyberboss/tgstation; branch 'master' of https://github.com/tgstation/tgstation into goonchatv3 2017-06-06 09:18:44 -04:00
Jordie0608
0f914e4233 adds coalesce to world.internet_address 2017-05-28 15:46:35 +10:00
Cyberboss
c3df0d5e21 Merge upstream 2017-05-26 15:32:55 -04:00
Cyberboss
ee404b2170 World.dm Refactor (#27268)
* Cleanup world/New

* Moves some things from OnReboot SS Shutdowns

* Move mode handling procs to ticker

* Moves delayed reboot to ticker
Cleans up round end sound setting
Splits round end animation between SStitle and SSticker

* Moves PR announcement to where it can use the define

* Clean this bit up

* Move out datacore Initialization

* Fix some stuff

* Fix this for

* Different PR

* Gives admins reboot options

* Make it smaller
2017-05-18 21:53:46 +10:00
Cyberboss
f2835095a7 Merge branch 'master' into goonchatv3 2017-05-09 14:25:00 -04:00
Lzimann
f2742f3dec Conflicts plus changes the text to match it being a date instead of age 2017-05-08 19:57:28 -03:00
Cyberboss
ffbdc49188 Merge branch 'master' of https://github.com/tgstation/tgstation into goonchatv3 2017-05-08 09:23:55 -04:00
Jordie
9fff652370 Merge pull request #27006 from lzimann/goddamnaussies
Removes failed to get byond age message
2017-05-08 09:31:33 +10:00
Joan Lung
ca815ef61f Merge pull request #23201 from MrStonedOne/clientimprovements
[READY]DATUM VERBS AND TOP MENUS!
2017-05-07 18:07:35 -04:00
Kyle Spier-Swenson
ea5bc0143e Fixes new players not getting tracked. (#27043) 2017-05-07 23:11:48 +02:00
Kyle Spier-Swenson
7790e690f1 Fix cid randomizer detector. 2017-05-06 17:44:13 -07:00
Lzimann
ecd9121e60 Shows the actual date instead of number of days for byond/player age in player panel 2017-05-06 21:20:36 -03:00
Lzimann
fe417b6ecb Removes failed to get byond age message 2017-05-06 20:36:49 -03:00
Jordie
f4bb10ee19 actually adds query for account join age and age in warning message (#26935) 2017-05-06 11:06:42 +02:00
Cyberboss
bcfeebb060 Merge branch 'master' into goonchatv3 2017-05-05 19:18:25 -04:00
Leo
6bc603afe8 Merge pull request #26913 from ohnopigeons/suiciderevamp
Players may no longer commite suicide
2017-05-05 20:08:52 -03:00
Kyle Spier-Swenson
5fda19cd72 fix client age thingy 2017-05-04 19:01:39 -07:00
Jordie
a823a1b698 Player byond account age stored in db (#26425)
set_client_age_from_db() and sync_client_with_db() have been merged. 
New clients are now added to the user table in a separate query than the one used to update their details upon connection; their player and account age is then calculated with DATEDIFF.
The code and regex used in findJoinDate() was changed a bit.
2017-05-04 20:13:35 -03:00
Pigeons
1f57d5a032 commited suicide -> committed suicide 2017-05-04 17:59:25 -04:00
MrStonedOne
ed3c79244f Forgot these 2017-05-04 10:24:27 -07:00
MrStonedOne
1ff6a090d4 DATUM VERBS AND MENUS! 2017-05-04 01:54:20 -07:00
Lzimann
68771eae4c Merge branch 'master' of https://github.com/tgstation/-tg-station into goonchatv2 2017-05-03 12:28:28 -03:00
Kyle Spier-Swenson
79f40d49c3 Update preferences_savefile.dm 2017-05-02 23:36:48 -07:00
Kyle Spier-Swenson
7d72c7331e Fixes character saves getting fucked up if there are no configured round start races. 2017-05-02 23:30:41 -07:00
Jordie
4fcd31d3fb Merge branch 'master' into itriedlookingupwhatpromptedthischangebutsadlythelogswerelostwhentheroundended 2017-05-02 18:49:06 +10:00
Leo
3b9b4e0755 Changes a bunch of hrefs to the proper defines (#26760) 2017-05-02 01:19:51 -06:00
Lzimann
3ba0e15198 Asset cache did not work 2017-04-28 16:06:19 -03:00
Lzimann
53677a7f7f Fixes conflicts 2017-04-28 08:37:13 -03:00
Lzimann
c6185ec994 Changes the chat to use asset caches instead of directly sending it in a
way to prevent assets not being sent in some conditions.
Fixes byond donor icon in ooc.
Fixes emojis not working and removes animated emojis.
2017-04-28 08:24:17 -03:00