Commit Graph

543 Commits

Author SHA1 Message Date
Aronai Sieyes
32ae9bcd6b Merge pull request #7883 from VOREStation/aro-erishud
Add mini HUDs to mechs, rigs
2020-05-15 20:54:58 -04:00
Aronai Sieyes
b419e79166 Merge pull request #7873 from VOREStation/aro-conf
Fix item-based alerts, and add a confused alert
2020-05-15 20:52:14 -04:00
Aronai Sieyes
0f0400cfc3 Merge pull request #7871 from VOREStation/aro-hudhiding
Allow hiding other huds like ghost huds with F12
2020-05-15 20:48:45 -04:00
Aronai Sieyes
cb36e93a30 Add mini HUDs to mechs, rigs 2020-05-15 17:14:29 -04:00
Aronai Sieyes
2d590505c1 Fix buckled/item based alerts 2020-05-15 13:43:35 -04:00
Aronai Sieyes
6873a3238d Add confused alert 2020-05-15 13:43:24 -04:00
Arokha Sieyes
74aaebeacd Add tooltips to ghost HUD buttons 2020-05-15 12:05:34 -04:00
Arokha Sieyes
9ec585ec68 Allow hiding other huds like ghost huds with F12 2020-05-15 11:57:44 -04:00
Aronai Sieyes
a537ef77fa Further tweak alerts 2020-05-14 18:14:10 -04:00
Aronai Sieyes
b020a3d9b4 Add updown buttons to ghost, AI HUDs 2020-05-14 16:52:16 -04:00
Aronai Sieyes
3992b7a50a Add observer HUD from /tg/, refactor HUDs 2020-05-14 16:29:15 -04:00
Aronai Sieyes
9307fa0738 Further alert holo tweaks 2020-05-14 13:04:14 -04:00
Aronai Sieyes
ebe252d988 Further add on to the alert system 2020-05-14 12:26:20 -04:00
ShadowLarkens
f905cfc020 Ported /tg/ style screen alerts, replacing the hunger icon with them
This adds throw_alert() and /obj/screen/alert, a system that allows you
to do custom hud alerts for any variety of things from "You're too
cold!" to mecha status indicators for the pilot.

There's quite a few things that actually got replaced; the
fire/oxy/tox/co2 alerts are all now just alerts, as is nutrition. The
xenochimera feral indicator would probably be a good candidate for
conversion, but I didn't touch it in this PR. There's also a number of
new alerts, such as blindness, highness, legcuffed, buckled, handcuffed,
and probably some more I missed; read code/_onclick/hud/alert.dm and see
for yourself!

Additionally, a number of tweaks have been done to resisting code, to
make it so that there's an indicator when you're buckled or handcuffed,
and can just click the alert to start resisting. This includes a
refactor that combines the logic for lockers, holders, micros
escaping from shoes, and struggling in a gut all into one proc, called
container_resist(). This means that vore bellies actually no longer need
the resist override, but it's been left in place just in case someone
finds something else they want to use it for.

Also, the health and internals indicator got moved down one tile each.
Needed room for the alerts. If we add the oxygen tank action buttons
from /tg/ and remove the internals indicator, the health indicator can
go back where it was originally.
2020-05-13 19:36:01 -07:00
Razgriz
78c51938cf Merge pull request #346 from Rykka-Stormheart/shep-dev-ai-multicam-port
Add AI Picture-in-Picture Mode!
2020-05-13 17:15:46 -07:00
Rykka
07e114701b Fix AI multicam exploits & a few other bugs
There's no longer a weird horrible frame
Space now renders (at the cost of some kinda weird lookin stuff in the multicam room but w/e)
Fixed an exploit involving getting AI eyes qdel'd that disabled static for all other eyes - this would allow you to see into maintenance, for instance, completely bypassing all AI limitations. HUGE exploit.
2020-05-11 10:24:38 -04:00
ShadowLarkens
9cf164d66c Fix AI multicam exploits & a few other bugs 2020-05-10 21:15:52 -07:00
Rykka
29037fd40a AI PiP Fixes
Fixes the undefined icon resulting in this:
![https://i.tigercat2000.net/2020/05/firefox_4x2cbYTrT1.png](https://i.tigercat2000.net/2020/05/firefox_4x2cbYTrT1.png)
Fixes the two buttons being misaligned with the UI.
Fixes double-clicking inside the AI PiP room teleporting the AI Eye out to the room and completely breaking the view. Do note that double-clicking no longer works at all inside the multi-cam room, as a tradeoff for completely preventing UI breaks.
2020-05-10 21:53:31 -04:00
Aronai Sieyes
dad851b252 Merge pull request #7752 from Rykka-Stormheart/shep-dev-ai-pip
Add AI Picture-in-Picture Mode!
2020-05-10 19:00:50 -04:00
Rykka
ef1acd0452 Add AI Picture-in-Picture Mode!
This adds a system for picture-in-picture UI windows using
vis_contents. Essentially, it allows you to make UI windows that show an area of turfs. It also refactors how cameranet visibility works.

Currently, this is implemented on AIs. They gain two new UI buttons - "Enter Multicam Mode", and "Create Multicam". When they go into Multicam Mode, they see a background of animated binary numbers, and they are allowed to create an infinite amount of these picture in picture windows, which subsequently creates an AI Eye for each one. They are able to control each AI eye individually, by first clicking on the PIP window to select it as "active" and then using the normal arrow key controls. The PIP windows can be freely resized and moved around the area.

You can control everything inside these PIP windows EXACTLY the same as you can using a traditional AI Eye, as demonstrated below.

For admins, there is a config option to disable PIP entirely - simply set `var/multicam_allowed = TRUE` to FALSE if you wish to disable it from being used. (Please be reasonable.) <3

You can see an example of how this works here:
![https://i.imgur.com/TCND8W9.mp4](https://i.imgur.com/TCND8W9.mp4)

AI Multicam functionality.

Do note that if the lightbulb in the AI core is busted, the multicam room is dark(er) than it would be, but you can still see your camera windows just fine. (I'll probably fix this later.) It only affects the "matrix" backdrop, the PIP windows are still fine.

This has been runtime-tested with the latest `master` revision and produces 0 runtimes, and has no noticeable impact on server CPU usage.

Chompstation port is here!
Port of https://github.com/VOREStation/VOREStation/pull/7752, YW port not incoming atm as they can fetch from upstream and frankly dog has done enuf ports for now x.x
2020-05-10 14:22:36 -04:00
Rykka
ca848661c4 Fix more inconsistent indentation mistakes, confirm AI working 2020-05-10 13:03:20 -04:00
Rykka
26726bd55a Fix inconsistent indendation, derp. 2020-05-10 12:35:02 -04:00
Rykka
3b3a7b960c Add Picture-in-Picture Mode for AI's, Working on Resolving Runtime
WIP DESC
2020-05-10 12:31:49 -04:00
Rykka
5c5ac378a4 Port of Hover Inventory and Body Zone Hover Indicators.
The body zone selector now indicates which body part you are about to select when hovered over, and the hover inventory indicator basically shows where you are trying to put an item, and then shows an item ghost in red or green, giving visual feedback as to if that item will go in the slot or not.

Gifs of this in action:
![https://i.imgur.com/MTi7Kpn.gif](https://i.imgur.com/MTi7Kpn.gif) 
Body Selection parts.

![https://i.imgur.com/KbLqWKy.gif](https://i.imgur.com/KbLqWKy.gif) 
Inventory Icon Overlays!

Credit goes to @ShadowLarkens for original port to Paradise and assistance with port to Virgo. Downstream port of https://github.com/VOREStation/VOREStation/pull/7748

- A note on `code/game/objects/items/weapons/storage/internal.dm`, VSCode automatically corrected the line endings, hence the massive filediff. The only practical changes are the addition of `disable_warning = 0`
2020-05-10 08:24:40 -04:00
Rykka
dd187c900d Port over Hover Inventory and Body Zone Hover Indicator
The body zone selector now indicates which body part you are about to select when hovered over, and the hover inventory indicator basically shows where you are trying to put an item, and then shows an item ghost in red or green, giving visual feedback as to if that item will go in the slot or not.

Gifs of this in action:
![https://i.imgur.com/MTi7Kpn.gif](https://i.imgur.com/MTi7Kpn.gif) Body Selection parts.

![https://i.imgur.com/KbLqWKy.gifv](https://i.imgur.com/KbLqWKy.gifv) 
Inventory Icon Overlays!

Credit goes to @ShadowLarkens for original port to Paradise and assistance with port to Virgo. Sending to Polaris ASAP.

- A note on `code/game/objects/items/weapons/storage/internal.dm`, VSCode automatically corrected the line endings, hence the massive filediff. The only practical changes are the addition of `disable_warning = 0`
2020-05-10 07:29:53 -04:00
Aronai Sieyes
adcc8047d6 Redo teleporter control in nanoui 2020-05-07 21:10:58 -04:00
Aronai Sieyes
d56980bf01 Add some un-push helpers 2020-05-06 20:28:10 -04:00
Aronai Sieyes
c611419f93 Fix #7581 2020-05-01 20:46:08 -04:00
Arokha Sieyes
255cc89f9b Fix a couple more click bugs with synth pals 2020-05-01 18:47:29 -04:00
Aronai Sieyes
f6214506c6 Fix radial menu GC 2020-05-01 11:49:42 -04:00
Aronai Sieyes
1eb7a7bc03 Fix some missed click check stuff 2020-04-30 19:33:23 -04:00
Aronai Sieyes
99fa98f437 Get your clicks out of my movement code 2020-04-30 15:40:41 -04:00
Atermonera
966845ee0f Merge pull request #6999 from KasparoVy/leaves-me-breathless
Update Human HUD Generation to Fix Internals Graphical Bug
2020-04-19 17:38:51 -04:00
Aronai Sieyes
5199e07ed9 Fix parallax slide and admin jump skybox 2020-04-15 15:23:23 -04:00
Aronai Sieyes
31f7f5b256 Fix shuttles not updating skybox 2020-04-14 17:31:32 -04:00
Atermonera
2374a40908 A Tale of Blobs and Man 2020-04-13 01:35:01 -04:00
Atermonera
cd10c54d5c Merge pull request #6834 from Mechoid/RIGFixes
Fix various RIG issues
2020-03-17 01:06:31 -04:00
Leshana
9d517f469f Simplify skybox parallax code and add support for scaling for larger client.view sizes.
- Hooked up skybox to recalculate it's scaling when the view changes.
 - Added constant defines to clarify where the magic numbers are coming from.
2020-03-15 17:59:20 -04:00
Arokha Sieyes
b18e974e4c Skybox tweaks
Use instances on maps so they can be edited later
2020-03-12 14:36:16 -04:00
Neerti
31856524ad Makes goggle overlays less harsh, and scale beyond 15x15 tiles (#6809) 2020-03-11 20:34:27 -04:00
Leshana
86c435f4b7 Ports Skybox Parallax
- Port based on Baystation's implementation and customized for our code and usages.
- Switched space icon_state permutation to a "dust" overlay that is permutated the same way. As an overlay, the dust can be *above* the parallax planes. Space turfs are now white to allow skybox to BLEND_MULTIPLY onto them.
- Added skybox hud effect that replaces background space turfs with an image moved to create a parallax effect.
- Added skybox subsystem to generate and manage skybox parallax images, and lots of images for it!
2020-03-11 11:11:40 -04:00
Aronai Sieyes
f475ecbdc6 Replace a bunch of VOREStation edits that can be sent to Polaris 2020-02-29 19:45:58 -05:00
Atermonera
89e23b3218 Carbon mpbs can be attacked again (#6728) 2020-02-22 23:14:03 -05:00
Atermonera
11eed81b92 Ports precision placement of items 2020-02-22 02:35:41 -05:00
Novacat
d27f527a26 Update item_attack.dm 2020-02-18 21:39:01 -05:00
Atermonera
ee6f155892 Fixes broken tool usability logic 2020-02-18 21:34:24 -05:00
Heroman
a6d6cf7825 More fixes for broken medical 2020-02-19 08:35:37 +10:00
Arokha Sieyes
47ccc655db Deprecate the stream operator 2020-02-12 19:38:43 -05:00
Atermonera
571fe9f734 Merge pull request #6667 from Heroman3003/voidsuti-surgery
Prevents surgery from being done while wearing a voidsuit
2020-02-10 16:03:04 -05:00
Heroman
9246b2ac51 Adds onclick check for the danger/feralness indicator 2019-12-31 08:46:36 +10:00