CC: Tweaked

CC: Tweaked

42M Downloads

Some sort of indicator lights in the bottom of the GUI

Lemmmy opened this issue ยท 26 comments

commented

Perhaps in the bottom left of the terminal border? The purpose of it should be to indicate if the computer is on/off, as well as a brief flash when the computer is restarting (as it is currently impossible to tell if a computer rebooted when a startup program draws nothing)

Here's a very crude mockup of what I'm thinking of:

It could be green when on, dark grey when off, and ensure a brief flash (0.25s?) when rebooting.

commented

I'm sorry for bringing up an old topic, but what about instead of just a power light, perhaps an indicator light, like when it's waiting for something or gets stuck in a loop (also could be waiting). So if a computer is waiting for a user to enter a password, or an event to happen, it's yellow, indicating that the computer is busy and isn't just "available" and when it is "available", it turns green again. So it's multipurpose and an indicator.

commented

No worries about bumping this - it's still very much in a "let see what people think" stage, as I'm not entirely sure the best way to approach this.

A computer's state in-world does change depending on whether it is waiting for user input (well, namely if term's cursor is blinking or not), so it would be possible to integrate that into the indicator. However, I'd be a little more reluctant to do something about whether it's waiting for any event as you'll end up with something which blinks a lot (and really, computers should be waiting for events almost all the time anyway).

commented

How about instead of explicitly saying "POWAH" and "REBOOT" (kinda obnoxious), we just use their respective icons:

I would make a cool mockup but I don't exactly have much skill in that department, and my MacBook doesn't even have a good image editor...

commented

If we are adding an indicator, surely it should be programmble RGB from Lua, right? ๐Ÿ˜

Imo, I like smaller graphics/less chrome. Somewhere between the Turtle screenshot and hugeblank's images. The OP but slightly bigger, and on the right hand side. I don't think we need seperate buttons for power and reboot, since reboot is functionality equivilent to a power off/on cycle. This makes the UI simplier. I also think the button can be shared with the indicator.

Excuse my rushed MSPaint job.

image

This indicator can be green/yellow/grey. Whatever we think is appropriate.

I also think we should have:
indicator.manual(true)
indicator.rgb(0, 0, 255)

But that's another topic.

commented

@rolandoislas But would a gradient like this be compatible with the retro-like design of CC?

commented

Just a thought, but I would prefer something subtle like a corner with a green hue/gradient as opposed to an indicator light.

commented

There's a bit of me which would like to add more of a GUI to computers (buttons to shutdown (and reboot?) as well as indicator light), but I'm really not sure if it's possible to add it while looking aesthetically pleasing.

I suspect you'd have to make the bottom fatter, or add some additional sidebar or something. If people have mockups or ideas, I'd love to see them

commented

commented

I do quite like that. I'm not sure about the gradient on the buttons, though that's definitely just me nitpicking. I'd almost want to put the label at the top (as that's where it goes in other GUIs), but that's not going to look especially nice. Alas.

There's a bit of me which wonders if it'd be better to flip that around, so the power button is on the RHS. Computer monitors generally have their buttons there, so it'd kinda make sense.

commented

commented

I do like that last design a lot, but here's another idea. Could there just be a panel that is separate from the monitor that just runs parallel to the LHS or top? That way if the user wants to disable this feature from a config setting or something, it doesn't change the appearance too drastically.

The reason I say top earlier instead of bottom is because will this feature also be used in turtles? if so, will it still be at the bottom? bottom of the monitor or bottom of the inventory?

commented

bottom of the monitor or bottom of the inventory?

Bottom of the monitor makes the most sense to me; I'll have a play around with it shortly.

I'll also try a mockup with a detached dock.

commented

Here is one with turtles, with smaller buttons etc:

It looked very bizarre with the large buttons from before, this looked a little better. This is just slightly smaller than the chest header.

commented

I like the original layout proposed by @Lemmmy (small power button and led)

commented

I think the design in the OP looks the best, because its just a little detail instead of the whole bottom bar of the computer being buttons.

commented

Revisiting this issue as I'd quite like to add shutdown and terminate buttons to the computer GUI, and had a go at adding buttons down the side. Little did I account for my inability to do pixel art:

image

Not sure if the iconography or actual concept is flawed.

I don't know if other people have thoughts on having buttons down the side instead? IMO it gives us a little more flexibility in terms of what can go there, but I have no clue how well it works.

commented

IMO a restart button isn't required if you have a power button -- just click it twice.

image

I like this, though I'm unsure what the ? button will do. Is it just a placeholder?
I believe doing it this way would also simplify adding more buttons like that. Addon mods could even hook into it and insert their own side-buttons.

commented

Maybe take the icons from OC for testing purposes? Just so that you can tell if it's the icons or the concept.

commented

I like this, though I'm unsure what the ? button will do. Is it just a placeholder?

Very much placeholder. Notionally this is a "view documentation" button, but given that functionality doesn't exist, somewhat moot.

Maybe take the icons from OC for testing purposes? Just so that you can tell if it's the icons or the concept.

The trouble here is that OC's icons are an entirely different dimension (16x16) to what I've got in the screenshot above (9x9 or something weird).

commented

Hmm, a comment by Merith in MCCM gave me an idea for here.

Have the side-buttons as some sort of object container which you can put anything in. Then, on each side for a turtle you could put an item slot. This would serve to both allow the turtle to equip items with NBT data, and make it easier to equip and dequip items (just drag it to/from the slot, no need to type equip 1 left).

Then the buttons could also be inserted as another object along the sides.

commented

Very much placeholder. Notionally this is a "view documentation" button, but given that functionality doesn't exist, somewhat moot.

Well, CC: Tweaked can use HTTP, why not have it be a browser for https://tweaked.cc/ , or have locally stored copies of the docs in the mod itself.

commented

I like the idea of locally stored docs, it means that you can know that the local docs are relevant to the version of the mod that you are using.

commented

[repost because email reply decided to weird out]
Isn't there that in-game-wiki mod? Could it be possible to hook the ? button into that somehow (if it still even exists in 1.16, iirc it was a 1.12 mod)

commented

fabric has patchouli, which gives player a handbook to a mod when they do something (craft an itme, enter a biome, etc)

commented

In-game documentation was discussed in depth during #133, including locally stored docs and patchouli.

I'm open to it being discussed, but it's probably offtopic for this issue

commented

Fixed in #809