Page 1 of 1

tgui

Posted: Tue Jan 26, 2016 9:15 am
by neersighted
What is this?
tgui is /tg/'s new interface system, as designed and implemented by me.

tgui is a fork of Baystation's (originally /tg/'s, actually) NanoUI. While it shares much in common on the server-side, the
client is all new code. It supports IE8+ and the webclient, and is designed with the goals of being attractive, simple(r)
to write UIs for, and untangling UI code spaghetti.

This thread is mainly for your feedback:
  • Got a UI you want reworked?
  • Is the UI not working for you?
  • Want to split hairs with me over design?
I don't like it/There's a bug/Can I help?
A public planner is available for you to peruse and vote on features/interfaces.
Please report any bugs to the bug tracker, not this thread.
Please direct complaints to /dev/null (actually post them in this thread).

FAQ
I can't resize/drag it!
Open Game Preferences (in the Preferences tab) and set 'tgui style' to 'no frills'.
It's stuck on my primary monitor!
Open Game Preferences (in the Preferences tab) and set 'tgui monitors' to 'all'.

Re: tgui

Posted: Tue Jan 26, 2016 9:16 am
by duncathan
>inb4 eight million assholes screaming because they can't figure out how to turn on no frills

Re: tgui

Posted: Tue Jan 26, 2016 9:53 am
by DemonFiren
What frills?

Re: tgui

Posted: Tue Jan 26, 2016 1:12 pm
by Gun Hog
Consoles that could use NanoUI:
- Communications Console (Auto refresh)
- AI airlock control (Still uses oldest UI)
- DNA Modifier/Cloning (Auto refresh)
- Sleepers (Auto refresh)
- Turret interface / Turret control panel (Turrets themselves still use the oldest UI, also, the perfect opportunity to add current target data)

Re: tgui

Posted: Tue Jan 26, 2016 2:22 pm
by Wyzack
Make the gps auto refresh

Re: tgui

Posted: Tue Jan 26, 2016 4:47 pm
by neersighted
DemonFiren wrote:What frills?
The custom titlebar and resize.

Re: tgui

Posted: Tue Jan 26, 2016 7:04 pm
by Malkevin
I don't like that you can't drag the window off the edge of the screen.

Re: tgui

Posted: Tue Jan 26, 2016 7:06 pm
by neersighted
Malkevin wrote:I don't like that you can't drag the window off the edge of the screen.
That's also a pref.

Re: tgui

Posted: Tue Jan 26, 2016 8:40 pm
by ShadowDimentio
I don't like it, but there's an option to cut it off, so my argument is invalid.

This is how you code new features ladies and gentlemen: OPTIONAL.

Re: tgui

Posted: Tue Jan 26, 2016 10:36 pm
by Cobby
ShadowDimentio wrote:I don't like it, but there's an option to cut it off, so my argument is invalid.

This is how you code new features ladies and gentlemen: OPTIONAL.

For me the options are "Primary" and "All", so for things like the syndikit [aka the only tgui that actually lags my game even with frills off] it still is there.

Re: tgui

Posted: Tue Jan 26, 2016 10:53 pm
by neersighted
ExcessiveCobblestone wrote:
ShadowDimentio wrote:I don't like it, but there's an option to cut it off, so my argument is invalid.

This is how you code new features ladies and gentlemen: OPTIONAL.

For me the options are "Primary" and "All", so for things like the syndikit [aka the only tgui that actually lags my game even with frills off] it still is there.
He's referring to fancy mode. As far as the uplink goes, optimization is still under way. Stay tuned, performance can only get better.

Also no frills has nothing to do with lag.

Re: tgui

Posted: Wed Jan 27, 2016 12:27 am
by PKPenguin321
one time as a nuke op i shortened my PDA screen then dragged it near the top of my screen, then closed it. later i reopened it and it resized back to full size, causing the bar to resize it + all the buttons to lock it and shit were off the top of my monitor and i could no longer interact with it properly. this should probably not happen

Re: tgui

Posted: Wed Jan 27, 2016 12:10 pm
by Actionb
Can we get drag and drop functionality on items with tgui interface? Very important for when you have upgraded the old PDA design - but also for headsets: you actually have to have your headset in your hand now to access its interface. Pre-tgui, you could just drag n drop it onto your sprite to mess with the headsets' settings.

Re: tgui

Posted: Wed Jan 27, 2016 1:31 pm
by neersighted
Actionb wrote:Can we get drag and drop functionality on items with tgui interface? Very important for when you have upgraded the old PDA design - but also for headsets: you actually have to have your headset in your hand now to access its interface. Pre-tgui, you could just drag n drop it onto your sprite to mess with the headsets' settings.
This has nothing to do with tgui you know, its click functionality in BYOND. File a feature request or add an alt-click or drag click to the headset.

Edit: https://github.com/tgstation/-tg-statio ... io.dm#L100
Nothing was removed, file a bug report as its not working as intended.

Re: tgui

Posted: Thu Jan 28, 2016 5:49 am
by neersighted
PKPenguin321 wrote:one time as a nuke op i shortened my PDA screen then dragged it near the top of my screen, then closed it. later i reopened it and it resized back to full size, causing the bar to resize it + all the buttons to lock it and shit were off the top of my monitor and i could no longer interact with it properly. this should probably not happen
A fix for this is now live on both servers. If you have tgui locked to primary monitor, it will move the window back upon re-opening if it would have ended up offscreen.

Re: tgui

Posted: Thu Jan 28, 2016 5:59 am
by invisty
NanoUI that doesnt update correctly to represent the true state of the game.

>Canister menu with a tank inserted and valve opened.
>Click "Close" valve button.
>Button responds, indicating the new state.
>BONUS STEP: You click remove tank.
>Suddenly the UI reverts to the previous state.
>SUPER BONUS: Fire in toxins.

Re: tgui

Posted: Thu Jan 28, 2016 6:04 am
by neersighted
invisty wrote:NanoUI that doesnt update correctly to represent the true state of the game.

>Canister menu with a tank inserted and valve opened.
>Click "Close" valve button.
>Button responds, indicating the new state.
>BONUS STEP: You click remove tank.
>Suddenly the UI reverts to the previous state.
>SUPER BONUS: Fire in toxins.
The UI updates are driven by the server.
If something like this occurred on current code, it is a bug in canister code.
If you can find a way to reliably reproduce this (send me a GIF), I'll see what I can do.

The button lights up red to make sure you know what you're doing if you eject a tank when the valve is open.
And remember, as always, be careful with tanks in canisters. :P

Re: tgui

Posted: Thu Jan 28, 2016 8:49 am
by TechnoAlchemist
The "Set" buttons on pumps/other interfaces do not work. Hitting min on a SMES freezes all possible values to 0.

Re: tgui

Posted: Thu Jan 28, 2016 1:27 pm
by neersighted
TechnoAlchemist wrote:The "Set" buttons on pumps/other interfaces do not work. Hitting min on a SMES freezes all possible values to 0.
The set buttons appear to work, however there was a bug preventing you from setting them to 0. A fix is up.
The SMES bug is not an interface bug, the SMES were being constructed with no capacitor, and thus min/max output was 0. A fix is up.