Secretchronicles / TSC

An open source two-dimensional platform game.
https://secretchronicles.org/
GNU General Public License v3.0
205 stars 49 forks source link

Text message for level editor save #673

Open datahead8888 opened 4 years ago

datahead8888 commented 4 years ago

When you save a level in TSC, it plays a sound effect indicating the save but has no other visual indication. It might make sense briefly to print a "Level Saved" message (with translations). This way if the user has sound turned off or is hearing impaired, they know what just happened. I didn't hear the sound effect in a restaurant with the sound off and got pretty confused myself, thinking I was having mouse offset issues.

Quintus commented 4 years ago

Actually, this message existed until I changed the editor interface to not use the HUD. Such messages are displayed in the HUD. As the HUD is now disabled in the editor (to fix the mouse offset issues!) there's no easy way to show messages in the editor. I'll take a look, though. I haven't thought about potentially noisy environments or deaf users.

Meanwhile, you can save with CTRL+S. This is easier than clicking the save menu point.

Quintus commented 4 years ago

(to fix the mouse offset issues!)

My fingers were faster than my brain. The HUD was not deactivated in the editor for mouse offset issues, but for the mouse click issues -- it was occupying the upper third and clicking there never made it to the game.

datahead8888 commented 4 years ago

Can the HUD be resized and/or moved as an alternative?

Quintus commented 4 years ago

Am 02. Februar 2020 um 22:05 Uhr -0800 schrieb Chris Jacobsen:

Can the HUD be resized and/or moved as an alternative?

Not really. The HUD encompasses the area from the top of the window until the bottom edge of a possible message box. This is fine in level play, but in the editor it's just in the way. I've earlier tried to circumvent the problem with setting the "mouse passthrough" property to true, but it somehow didn't work.

This problem can be solved differently, though. All that is needed is to display a temporary CEGUI window after saving and destroy it after a while. This should not be hard to implement.

-quintus

-- Blog: https://mg.guelker.eu