Topic: Map name

flipflipsen

Topic Opener
Joined: 2010-01-17, 23:18
Posts: 83
OS: Ubuntu 23.10
Version: 1.2
Ranking
Likes to be here
Posted at: 2025-02-15, 21:30

Hello, is it possible to display the map name in the info-panel


Top Quote
kaputtnik
Avatar
Joined: 2013-02-18, 20:48
Posts: 2627
OS: Archlinux
Version: current master
Ranking
One Elder of Players
Location: Germany
Posted at: 2025-02-15, 21:45

Hi,

i guess you mean the map list in the add-ons?

The problem is here that it was intended to use for map sets, a couple of maps bundled in one add-on. So the list can't display a single map name. Maybe it's possible to do so if the map-set contain only a single map. But i can't say if it is really possible face-sad.png


Top Quote
flipflipsen

Topic Opener
Joined: 2010-01-17, 23:18
Posts: 83
OS: Ubuntu 23.10
Version: 1.2
Ranking
Likes to be here
Posted at: 2025-02-15, 21:52

No, I mean the name of the map wich you are playing, in the info-bar next to the time for instance.


Top Quote
hessenfarmer
Avatar
Joined: 2014-12-11, 23:16
Posts: 2775
Ranking
One Elder of Players
Location: Bavaria
Posted at: 2025-02-15, 22:02

I believe this might be possible, however it might clutter the panel especially on lower resolutions.
So unles you provide a very good reason for this feature request I am afraid it will be on the lowest priority list.


Top Quote
flipflipsen

Topic Opener
Joined: 2010-01-17, 23:18
Posts: 83
OS: Ubuntu 23.10
Version: 1.2
Ranking
Likes to be here
Posted at: 2025-02-15, 22:10

Oké, thanks for your reply.


Top Quote
Ron_of_Nord
Avatar
Joined: 2024-04-20, 23:43
Posts: 108
OS: Windows
Version: 1.3
Ranking
Likes to be here
Location: Land_down_under
Posted at: 2025-02-16, 03:05

If I may venture a comment here, I don't believe having the map name displayed on the status bar is a good idea. Whilst it could work with maps with short names, maps with long names may over print on the other controls/info. And as the name is not really going to help during play, I myself can't see the need for it imho


The aussies are coming, ya ho! ya ho!

Top Quote
tothxa
Avatar
Joined: 2021-03-24, 12:44
Posts: 506
OS: antix / Debian
Version: some new PR I'm testing
Ranking
One Elder of Players
Posted at: 2025-02-16, 09:55

I tried to look into whether this is possible with an add-on, but AFAICT there's no way to get the map name in lua. I believe placing new text on the panel isn't directly supported either, but it can be overlaid by a LuaPanel, only the placement may get tricky to follow the position and visibility of the panel and to not interfere with other content on it.


Top Quote
kaputtnik
Avatar
Joined: 2013-02-18, 20:48
Posts: 2627
OS: Archlinux
Version: current master
Ranking
One Elder of Players
Location: Germany
Posted at: 2025-02-16, 11:16

flipflipsen, sorry for my bad assumption.

Sometimes, especially in long games, i find myself also asking myself "Which map was this?"

How about adding such info into an additional entry in the Main Menu, Map menu or Statistics of a game? Such an info window can have also some additional information like map dimensions or actual active players. Actual active players are already shown in the diplomacy window, but the diplomacy window is somewhat useless if you play without diplomacy enabled.

tothxa wrote:

I tried to look into whether this is possible with an add-on, but AFAICT there's no way to get the map name in lua. I believe placing new text on the panel isn't directly supported either, but it can be overlaid by a LuaPanel, only the placement may get tricky to follow the position and visibility of the panel and to not interfere with other content on it.

One can create a button next to main menu with

wl.ui.MapView().toolbar:create_child()

but without having infos about a map in lua this is pointless yet.


Top Quote