Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds both a verb and action button for drones to be able to view station alarms. #22859

Closed
wants to merge 3 commits into from
Closed

Conversation

Firecage
Copy link
Contributor

@Firecage Firecage commented Jan 8, 2017

Previously Drones, while receiving alerts about power, air, and something else I forgot, they were not actually able to view these alerts. This corrects that. It gives them both a verb and an action button to view their own limited station alerts.

Fixes #11598

🆑 Firecage
add: We at NanoTrasen R&D would like to announce a new software upgrade for all drones! They now have the capability to view station alerts!
/:cl:

@@ -91,6 +91,8 @@
SF.Grant(src)
else
verbs -= /mob/living/simple_animal/drone/verb/toggle_statics
var/datum/action/generic/drone/show_alerts/SA = new(src)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cogscarabs shouldn't get this or the verb

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, right, I forgot they were children of drones. I'le fix that tomorrow.

@optimumtact
Copy link
Member

fuk drones

@@ -64,6 +64,7 @@
var/obj/item/default_storage = /obj/item/weapon/storage/backpack/dufflebag/drone //If this exists, it will spawn in internal storage
var/obj/item/default_hatmask //If this exists, it will spawn in the hat/mask slot if it can fit
var/seeStatic = 1 //Whether we see static instead of mobs
var/seeAlerts = 1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TRUE/FALSE please, same for seeStatic, if you would please.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@RemieRichards Honest question. What exactly is the difference between using TRUE / FALSE and 1 / 0?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Firecage nothing, in the end it compiles down to 1 and 0

The important thing is that if we see TRUE/FALSE we can more easily make the assumption that the variable is a boolean on/off flag of some description

It also makes the code nicer to read.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@optimumtact Atleast I don't have to go change all those on/off's in the code to TRUE/FALSE from 1/0!

@AKlimentyev
Copy link

👍 I recall trying to do this a while ago using the same system silicons had and failing horribly.

@Firecage
Copy link
Contributor Author

@Shadowlight213 The AI or the Cyborg one? I used the system which Cyborgs had for this.

@AnturK
Copy link
Member

AnturK commented Jan 11, 2017

Please don't use action buttons for static interface elements. If something should be always visible for the given mobtype just add dedicated ui element.

@AnturK AnturK added Fix Rewrites a bug so it appears in different circumstances UI labels Jan 11, 2017
@coiax
Copy link
Member

coiax commented Jan 11, 2017

Indeed, it should be a dedicated UI element. Even though it's much harder to make those than action buttons.

@RemieRichards
Copy link
Contributor

@coiax not really, it's no harder.

@Firecage
Copy link
Contributor Author

Firecage commented Jan 11, 2017

@AnturK I have no idea how to do any hud or UI stuff at all. (Besides....the hud/UI interface still can't be dragged around and moved. That makes me sad.)

@AKlimentyev
Copy link

@Firecage the cyborg one.
I was having issues getting it to actually update with data.

@optimumtact
Copy link
Member

Enough maintainers said they wanted a built in UI item instead so closing this.

@Firecage Firecage deleted the ALERT_DRONES branch August 5, 2017 06:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Fix Rewrites a bug so it appears in different circumstances
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants