TGUI GPS
-
- Joined: Sat Apr 19, 2014 5:19 am
- Byond Username: Gun Hog
TGUI GPS
Simply put, I would like to convert GPS units to TGUI! GPS units currently do not update on their own, making them a bit annoying to use. TGUI is built for handling auto-updating UI, for which the GPS is a perfect candidate! I have already spent a few hours learning how to handle the dark and mysterious magic that is the TGUI code to build a simple interface.
What do you players think? Would you like to see GPS put into TGUI? Why or why not?
Mechanics: Turning tracking off disables your view of the list and the ability of other GPS to see you. Click the tag to change your GPS tag.
EDIT: PR here: https://github.com/tgstation/tgstation/pull/26561
What do you players think? Would you like to see GPS put into TGUI? Why or why not?
Mechanics: Turning tracking off disables your view of the list and the ability of other GPS to see you. Click the tag to change your GPS tag.
EDIT: PR here: https://github.com/tgstation/tgstation/pull/26561
Last edited by Gun Hog on Tue Apr 25, 2017 2:51 pm, edited 1 time in total.
- kevinz000
- Joined: Fri Nov 14, 2014 8:41 am
- Byond Username: Kevinz000
- Github Username: kevinz000
- Location: Dorm Room 3
Re: TGUI GPS
tbh nothing to be discussed here this is strictly making it better , don't see why there would be anyone who doesn't want this to be auto-updating as you can do it via hotkey already.
Local catgirl scratching post - Shezza
Usually seen as Skylar Lineman/Mekhi Anderson.
Commissions way too much art...
https://tgstation13.org/phpBB/viewtopic ... 7&p=239075 - IN GAME ADMINISTRATOR
Usually seen as Skylar Lineman/Mekhi Anderson.
Commissions way too much art...
https://tgstation13.org/phpBB/viewtopic ... 7&p=239075 - IN GAME ADMINISTRATOR
NSFW:
- BeeSting12
- Joined: Sat Apr 16, 2016 1:11 am
- Byond Username: BeeSting12
- Github Username: BeeSting12
- Location: 'Murica
Re: TGUI GPS
Looks cool, can't wait to see this in the game
-
- Joined: Sat Apr 19, 2014 5:19 am
- Byond Username: Gun Hog
- christ110
- Joined: Sat Oct 01, 2016 4:40 am
- Byond Username: Christ110
Re: TGUI GPS
When doing telescience, I sometimes like to open the GPS window, and leave it open as a "snapshot" of positions. Maybe give me the option to turn auto-update off?
- oranges
- Code Maintainer
- Joined: Tue Apr 15, 2014 9:16 pm
- Byond Username: Optimumtact
- Github Username: optimumtact
- Location: #CHATSHITGETBANGED
Re: TGUI GPS
That would be true if ractive.js wasn't a hot mess.kevinz000 wrote:tbh nothing to be discussed here this is strictly making it better , don't see why there would be anyone who doesn't want this to be auto-updating as you can do it via hotkey already.
- Cobby
- Code Maintainer
- Joined: Sat Apr 19, 2014 7:19 pm
- Byond Username: ExcessiveUseOfCobby
- Github Username: ExcessiveUseOfCobblestone
Re: TGUI GPS
Gun hog discussed removing the window if you backpacked it though so I'd personally rather have that+nonauto than auto but the window is removed if I backpack it.
Voted best trap in /tg/ 2014-current
- ShadowDimentio
- Joined: Thu May 08, 2014 3:15 am
- Byond Username: David273
-
- Joined: Sat Apr 19, 2014 5:19 am
- Byond Username: Gun Hog
Re: TGUI GPS
I have yet to figure out how to freeze the UI without completely breaking it. But, I will try to work something out. The key is to not lose any functionality. See Kev, you do not know what kind of feedback you will get until you ask!
- Remie Richards
- Joined: Thu Apr 17, 2014 7:11 pm
- Byond Username: CrimsonVision
- Location: England, UK, Earth, Sol, Milky Way, Local Group, Virgo Supercluster, Known Universe
- Contact:
Re: TGUI GPS
really? couldn't figure it out?Gun Hog wrote:I have yet to figure out how to freeze the UI without completely breaking it. But, I will try to work something out. The key is to not lose any functionality. See Kev, you do not know what kind of feedback you will get until you ask!
Code: Select all
/datum/tgui/proc/set_autoupdate(state = 1)
autoupdate = state
私は完璧
-
- Joined: Sat Apr 19, 2014 5:19 am
- Byond Username: Gun Hog
Re: TGUI GPS
I actually did, tyvm! Shortly after posting. You do not need to be so condescending, you know. Anyway, I can cancel the auto-updating now, and I will see about the window opening/closing next. I do not think any UI behaves that way though.
-
- Joined: Sun Oct 26, 2014 5:13 am
- Byond Username: Lzimann
- Github Username: lzimann
Re: TGUI GPS
You probably missed my message in coderbus, but the tgui subsystem has a proc called close_uis, which let's you pass an atom as argument, and it will close every open UI linked to that atom.Gun Hog wrote:I actually did, tyvm! Shortly after posting. You do not need to be so condescending, you know. Anyway, I can cancel the auto-updating now, and I will see about the window opening/closing next. I do not think any UI behaves that way though.
-
- Joined: Sat Apr 19, 2014 5:19 am
- Byond Username: Gun Hog
Re: TGUI GPS
Added interface 'snapshotting':
I set the interface to use the same vision checks as tablets. You can drop them on the ground and walk away a bit (if you are not adjacent, you cannot press buttons but still see it until you go a few steps away), you can hold them in your pocket or belt, but if you put it away, you can no longer physically see the GPS, thus the interface closes. I used the force-close tip from Izimann to disable the interface when the GPS is EMP'ed. If you simply turn it off, you still have the interface and controls, but not your location or the other GPS signals.
I am sorry, ExcessiveCobblestone, but I cannot implement your suggestion. But, auto-updating GPS with a manual updating option, distance and direction to target, as well as being able to tell your own location without having to find your tag in the list is a substantial improvement in my opinion. I am hoping that you find this one drawback acceptable.
I am also going to work on changing how I feed the GPS data to the UI, so I can format it a little better, such as adding a °(degrees) symbol to the direction reading so players more easily realize what it is.
Spoiler:
I am sorry, ExcessiveCobblestone, but I cannot implement your suggestion. But, auto-updating GPS with a manual updating option, distance and direction to target, as well as being able to tell your own location without having to find your tag in the list is a substantial improvement in my opinion. I am hoping that you find this one drawback acceptable.
I am also going to work on changing how I feed the GPS data to the UI, so I can format it a little better, such as adding a °(degrees) symbol to the direction reading so players more easily realize what it is.
- Remie Richards
- Joined: Thu Apr 17, 2014 7:11 pm
- Byond Username: CrimsonVision
- Location: England, UK, Earth, Sol, Milky Way, Local Group, Virgo Supercluster, Known Universe
- Contact:
Re: TGUI GPS
a degrees symbol should not be in the data.
the degrees symbol should be in the .ract file only.
the degrees symbol should be in the .ract file only.
私は完璧
-
- Joined: Sat Apr 19, 2014 5:19 am
- Byond Username: Gun Hog
Re: TGUI GPS
I know, I tried it both ways and found that I could only do it in the .ract. That is why I need to redo how I send data, I have too much data grouped in the same string, preventing such customizations.Remie Richards wrote:a degrees symbol should not be in the data.
the degrees symbol should be in the .ract file only.
-
- Joined: Sat Apr 19, 2014 5:19 am
- Byond Username: Gun Hog
Re: TGUI GPS
I have added a z-level filter for the interface such that irrelevant signals can be ignored. Explorers and telesci operators are interested in off-z-level signals, but miners only care about chasing down megafauna and finding their way back home. This is useful for rescue teams as well.
Spoiler:
-
- Joined: Sat Apr 19, 2014 5:19 am
- Byond Username: Gun Hog
Who is online
Users browsing this forum: No registered users