Commit Graph

9 Commits

Author SHA1 Message Date
LemonInTheDark
1614501d23 Datum view and some other things (#51208)
* Datumizes all uses of change_view

* Cleanup and helper procs

* tweaks values to match the format, hint hint, (value - 0.5) works just fine

* And there's the rest

* woop, braindamage

* and one more

* fuck you menu file

* woops

* we should apply that

* fixes tooltip drift, thank you goon coders

* you can shake but you can't zoom
2020-05-25 01:53:51 +08:00
MrPerson
f7eb2c905b Unicode awareness Part 2 -- copytext() (#48512)
* Unicode support Part 2 -- copytext()

This is the transition of all copytext() calls to be unicode aware and also some nearby calls in the same functions. Most things are just replacing copytext() with copytext_char() as a terrible character limiter but a few others were slightly more involved.

I replaced a ton of
````
var/something = sanitize(input())
something = copytext(something, 1, MAX_MESSAGE_LEN)
````

with a single stripped_input() call. stripped_input() already calls html_encode(), trim(), and some other sanitization so there shouldn't be any major issues there.

This is still VERY rough btw; DNA is a mess, the status displays are complete ass, there's a copytext() in code\datums\shuttles.dm that I'm not sure what to do with, and I didn't touch anything in the tools folder. I haven't tested this much at all yet, I only got it to compile earlier this morning. There's also likely to be weird bugs until I get around to fixing length(), findtext(), and the rest of the string procs.

* Makes the code functional

* Assume color hex strings are always # followed by ascii.
Properly encodes and decodes the stuff in mob_helpers.dm which fixes some issues there.

* Removes ninjaspeak since it's unused
2020-01-18 13:07:22 +13:00
Tad Hardesty
2bc2e7fe31 Add a type annotation to represent proc paths 2019-03-05 21:09:12 -08:00
Kyle Spier-Swenson
31e41d9f21 Proper fix for icon scaling preferences (#28475) 2017-06-15 22:57:41 -03:00
Jordan Brown
3073d0dc8c Fixes datum verbs 2017-06-07 16:08:52 -04:00
Jordan Brown
e6bfb7f449 Refactors datum verbs to be general (#28109) 2017-06-06 22:21:26 -03:00
MrStonedOne
a6f423d7cd Fix defaults
I was going to make this an arg but it being a variable made more sense.
2017-05-06 16:02:24 -07:00
MrStonedOne
33efcb78c4 Does the cyberboss 2017-05-05 20:19:18 -07:00
MrStonedOne
1ff6a090d4 DATUM VERBS AND MENUS! 2017-05-04 01:54:20 -07:00