News:

Simutrans Tools
Know our tools that can help you to create add-ons, install and customize Simutrans.

Question about GUI and directory access.

Started by Markohs, April 30, 2012, 10:03:24 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Combuijs

A bit hidden, but a tooltip would not be bad, I guess. It won't pollute the dialog anyway.
Bob Marley: No woman, no cry

Programmer: No user, no bugs



Fabio

At this point I would prefer a shortened full path like c:\...\simutrans\maps with the tooltip showing the full path.

Markohs

Looks like we are finally reaching a consensus. :)

So fullpath (shortened) with a tooltip?

Fabio

For me it would be splendid.

I just wonder if it could be doable a link (clicking on the path like a hyperlink or an arrow button) to invoke the OS shell to open that folder.

Markohs

Quote from: Fabio on November 13, 2012, 03:52:31 PM
I just wonder if it could be doable a link (clicking on the path like a hyperlink or an arrow button) to invoke the OS shell to open that folder.

Doable, but I doubt prissi will see this as a good idea, let's hear what the people say. ;)

Ters

I think invoking an OS shell will be difficult on Linux (and other open *NIXes), because that OS has no standard shell. Simutrans might have to target the different GUI frameworks directly to use their standard dialogs.

Sarlock

The

<drive:>\..\<end 1-2 folders>

format is probably the cleanest and easiest to understand from my point of view.  Tooltip would be more than sufficient to get the actual path.
Current projects: Pak128 Trees, blender graphics

prissi

I wrote actually the shortened path about.

If the text (proportional_len) is too long.
Take the first 8 letters (to know about where you are).
Add three dots and then remove letters for number 9 on until its fits.

The tooltip must be done manuall, i.e. during ist getroffen event check.

Markohs

Sorry to bring this alive again, but I was writing the shortened path code now and reading prissi's comment:

Do you mean I need to take savegame_frame_t since it inherits from gui_frame_t and re-define 'getroffen'  to show the tooltip too, apart from returning if it's inside the window or not too?

Whoudn't be better to extend gui_label_t to have tooltips? No idea, just asking. :)

Markohs

Okay, last update to this post. This patch is finished and uploaded to svn in a few minutes, implemented the tooltips that you requested.

I want to remind pak creators you now have the possibility to add heightmaps inside the pak folder, that will be listed with the "maps" directory in the user dir too.