#Message component and decoupling messages from Interact/damage components

1 messages · Page 1 of 1 (latest)

inland oracle
#

Basically, you should be able to trigger an on-screen message (not the tutorial hint window) with just logic alone.

Right now there are mainly two ways of doing it: Damage component and Interact component. Both of these shouldn't have any message functionality (though it should be still there for legacy reasons) and instead a new Message component should be added that will display an Interact message (need to come up with a new name for those now, lol) in the middle of the screen that would go away after a short while.

That would allow messages to be displayed in a sequence, e.g. for map credits, without user having to do anything or close the hint window (which he'd have to do if the hint window method of displaying stuff would be used).

quick mantle
#

I believe the name you’re looking for is Modal? Like a pop up with a clickable button?

#

#brickadia message

inland oracle
#

No, I am literally talking about having message system from Interact component be its own thing so we can display stuff in the middle of the screen with logic alone.

quick mantle
#

Oh so no button or anything but just the text?

#

Basically you could either use the Interact component or you could use a Button wired into a center text component to do the same thing

inland oracle
#

Please don't annoy me. You are obviously not getting what I was trying to convey.

narrow vortex
#

i think he just means a "onscreen text to client" gate. which, yeah, i realized i can't put text onscreen for the client on touch
the Hint gate can, but that's a different specific use

scarlet nimbus
#

Please, i'm struggling with this. Add the feature to enable messages be printed to the center of the screen

I have a button that i want to either output true or false to the client depending how the logic behind it plays out.
"Sorry it's already taken."
"Success!"

chrome wigeon
#

centerprint from blockland

#

we need a bunch of extra stuff

#

centerprint chatmessage (ideally with a marker so it can't pretend to be real chat messages)

#

okbox modals with ability to query for the result

misty lynx
#

I wanted this the other evening actually for something with a touch component, but there's no way to display a message that isn't the super invasive window you have to remove with your mouse via wires(which by extension means there's no way to do it in response to touching a brick, entering a zone, or just about anything else that isn't specifically clicking)

#

it's possible the "display hint(accepts team)" is this, the chat message would also probably do the job decently.

inland oracle
#

But yeah, a way to do it by just wires would be ideal.

wanton sinew
#

i seem to recall that in Blockland you couldn't do events targeting "client" or "player" in "onRelay" events, because events didn't keep track of WHO activated the component that fired the relay. Perhaps wires have a similar deal where they don't track WHO triggered some of the input? Idfk I haven't really tried to learn wiring cuz it's such a mess to me

misty lynx
#

tracking who triggered something is a separate wire output where available