News:

Want to praise Simutrans?
Your feedback is important for us ;D.

Coming issue: Font size and dialog size issue

Started by Ranran(retired), September 26, 2020, 04:50:23 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Ranran(retired)

Font size and dialog size issue

Incorporating from the standard will allow for a choice of font sizes and themes. As a result, new problems arise.
Extended has added a lot of new items to the dialog inherited from the standard. Sometimes it's packed with a lot of information. Unfortunately, it may already exceed the displayable limit.
That's a problem because it packs such information into dialogs that don't have scrollbars. Unless you buy a large monitor, you will not be able to see the information in the lower row of the dialog. (´・ω・`)
For example like this.

Note that most other dialogs do not require this large dialog height.

For example, in the building information window, information on nearby stations occupies many lines.
There are also many lines in road information window.
A simple fix is to add scrollbars here, but ideally these should have their own info dialogs.
And it's also a good idea to tab it to organize the information.
Now you can remove the restriction from the information that is intentionally reduced.
For example, connection information of surrounding stations and roads.

Sadly I don't know how to create a new window and I don't have time to work on it. There are tons of other issues that need to be resolved. (´・ω・`)

Unfortunately, font size selection or some dialogs will still have this problem until it is implemented.
I came to inform you of it today. Thank you.
ひめしという日本人が開発者達の助言を無視して自分好みの機能をextendedに"強引に"実装し、
コードをぐちゃぐちゃにしてメンテナンスを困難にし(とりわけ道路と建物関連)、
挙句にバグを大量に埋め込み、それを知らんぷりして放置し(隠居するなどと言って)別のところに逃げ隠れて自分のフォーク(OTRP)は開発を続けている
その事実と彼の無責任さに日本人プレイヤーは目を向けるべき。らんらんはそれでやる気をなくした(´・ω・`)
他人の振り見て我が振り直せ。ひめしのようにならないために、らんらんが生み出したバグや問題は自分で修正しなくちゃね(´・ω・`)

prissi

Adding tabs is very easy, since they can be also part of a container. Since this is probably a multiline string, it looks like very straight forward. But then GUI work is quite an effort most programmers often tend to avoid.

Matthew

Ranran, I can see from Github that you have been very busy incorporating Standard's new GUI framework into Extended. This does not have many results yet, but this very large project is so important for the long-term future of Simutrans. Thank you so much for all your efforts!



(Image: Wikimedia Commons/Ie zzeblex, CC-BY-SA)
(Signature being tested) If you enjoy playing Simutrans, then you might also enjoy watching Japan Railway Journal
Available in English and simplified Chinese
如果您喜欢玩Simutrans的话,那么说不定就想看《日本铁路之旅》(英语也有简体中文字幕)。

Ranran(retired)

Well, I'm going to dismantle the notepad style windows and start renovating little by little.
They don't have scrollbars as mentioned above, so they have the problem of not being able to read everything if the font is large.
Therefore, we will add tabs, add scrollbars, align, graphicalize, modernize, and transform to improve readability while making it compact.

As the first step, I made a patch to renovate the Building info window.
https://github.com/Ranran-the-JuicyPork/simutrans-extended/tree/building-info-overhaul

The outline is
- It is unified with the appearance of halt detail.
- Redundant display integration is intended. As a result, 7 translatable words are no longer needed instead of 5 translatable words. You will need to check those labels and content.
Trip data
Visitor arrivals
Commuter arrivals
Statistics
Signalbox info.


- A dedicated tab is added in signalbox. The connected signals are now listed.

Unfortunately it's time for yakiniku. I have to go.
See you at the next restaurant. (´・ω・`)
ひめしという日本人が開発者達の助言を無視して自分好みの機能をextendedに"強引に"実装し、
コードをぐちゃぐちゃにしてメンテナンスを困難にし(とりわけ道路と建物関連)、
挙句にバグを大量に埋め込み、それを知らんぷりして放置し(隠居するなどと言って)別のところに逃げ隠れて自分のフォーク(OTRP)は開発を続けている
その事実と彼の無責任さに日本人プレイヤーは目を向けるべき。らんらんはそれでやる気をなくした(´・ω・`)
他人の振り見て我が振り直せ。ひめしのようにならないために、らんらんが生み出したバグや問題は自分で修正しなくちゃね(´・ω・`)

jamespetts

Thank you for this. Can I confirm whether this is ready for testing and possible integration?
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

Ranran(retired)

Quote from: jamespetts on January 13, 2021, 06:01:41 PMThank you for this. Can I confirm whether this is ready for testing and possible integration?
Yes. I made some additional changes last night and that's it.
The fourth tab of the factory info dialog has also been modified to use the same UI functions, so the appearance will change as well.
ひめしという日本人が開発者達の助言を無視して自分好みの機能をextendedに"強引に"実装し、
コードをぐちゃぐちゃにしてメンテナンスを困難にし(とりわけ道路と建物関連)、
挙句にバグを大量に埋め込み、それを知らんぷりして放置し(隠居するなどと言って)別のところに逃げ隠れて自分のフォーク(OTRP)は開発を続けている
その事実と彼の無責任さに日本人プレイヤーは目を向けるべき。らんらんはそれでやる気をなくした(´・ω・`)
他人の振り見て我が振り直せ。ひめしのようにならないために、らんらんが生み出したバグや問題は自分で修正しなくちゃね(´・ω・`)

Ranran(retired)

Oops, I forgot to explain. (´・ω・`)

The UI has been updated, but this dialog can display a lot of information, so it can now have a help file.
The name of the help file is "building_info.txt". Keep in mind that signalbox may have its own tabs. The signalbox will preferentially try to open that tab.
ひめしという日本人が開発者達の助言を無視して自分好みの機能をextendedに"強引に"実装し、
コードをぐちゃぐちゃにしてメンテナンスを困難にし(とりわけ道路と建物関連)、
挙句にバグを大量に埋め込み、それを知らんぷりして放置し(隠居するなどと言って)別のところに逃げ隠れて自分のフォーク(OTRP)は開発を続けている
その事実と彼の無責任さに日本人プレイヤーは目を向けるべき。らんらんはそれでやる気をなくした(´・ω・`)
他人の振り見て我が振り直せ。ひめしのようにならないために、らんらんが生み出したバグや問題は自分で修正しなくちゃね(´・ω・`)

jamespetts

This looks very good, thank you for this. One query: although this has never been implemented in Pak128.Britain and many of the other Extended specific paksets, Simutrans has long had a feature allowing extended text to be shown in the building information window. This can be seen in Pak128, I believe, and possibly also Pak64. Has this feature been tested with the new UI? I did hope possibly to implement this for some buildings in Pak128.Britian-Ex in the future. One possible implementation would be to give this extended text its own tab, perhaps labelled "building details" or similar.
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

prissi

This extended text is just the translation of the name. For attractions the convention is to have "Short Name\n\ndescription text", so the list can rip these apart by checking for "\n\n" to separate short from long description.

jamespetts

Thank you for the  update. One thing that I notice when testing is that there is often a horizontal scroll bar in the building information window, and, when the names of the connected stops are long, the right hand side of the information is truncated; but it is not possible to make the window any wider. Is it possible to address this, or would this be complex and/or difficult?
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

Ranran(retired)

QuoteThis extended text is just the translation of the name. For attractions the convention is to have "Short Name\n\ndescription text", so the list can rip these apart by checking for "\n\n" to separate short from long description.
Thank you for the explanation.
Unfortunately, the original building name is often a meaningless name such as COM_00_06, so it seems that there are many examples of explaining the building without even inserting line breaks in the Japanese text...

In addition, c ++ doesn't have a function like split, so I have to create it myself.

QuoteOne query: although this has never been implemented in Pak128.Britain and many of the other Extended specific paksets, Simutrans has long had a feature allowing extended text to be shown in the building information window. This can be seen in Pak128, I believe, and possibly also Pak64. Has this feature been tested with the new UI?
As explained by prissi, it's a tricky use of name translation, and that part is contained in the upper text area.
That part of the code is still the same as the standard and such translated text will greatly expand the upper space.

QuoteI did hope possibly to implement this for some buildings in Pak128.Britian-Ex in the future.
Do you expect this to be achieved by translating the name as explained above?
As you explain, I don't think that translation method is used in the pakset currently available in extended.
I'm not sure if that's a good way to implement such a feature.

QuoteOne possible implementation would be to give this extended text its own tab, perhaps labelled "building details" or similar.
It may also be able to move to that tab with Appears from and Author information.


QuoteOne thing that I notice when testing is that there is often a horizontal scroll bar in the building information window
Thank you for your feedback.
This was the reason why the width of the heading always displayed the scroll bar. I think it has been fixed.

Quotewhen the names of the connected stops are long, the right hand side of the information is truncated; but it is not possible to make the window any wider. Is it possible to address this, or would this be complex and/or difficult?
This was because early testing of the implementation was causing layout corruption and therefore prohibited lateral expansion.
However, it seems that the problem has been solved now, so it has been changed so that it can be expanded horizontally.
ひめしという日本人が開発者達の助言を無視して自分好みの機能をextendedに"強引に"実装し、
コードをぐちゃぐちゃにしてメンテナンスを困難にし(とりわけ道路と建物関連)、
挙句にバグを大量に埋め込み、それを知らんぷりして放置し(隠居するなどと言って)別のところに逃げ隠れて自分のフォーク(OTRP)は開発を続けている
その事実と彼の無責任さに日本人プレイヤーは目を向けるべき。らんらんはそれでやる気をなくした(´・ω・`)
他人の振り見て我が振り直せ。ひめしのようにならないために、らんらんが生み出したバグや問題は自分で修正しなくちゃね(´・ω・`)

jamespetts

Thank you for this - I have now incorporated this.

I have to say, I was not aware of the extended translation system actually used - I agree with Ranran that, with a modern UI at least, this is not an optimum way of doing it.

I should be interested in feedback on a potentially better way of doing this - perhaps having a separate description field in a building which can be translated separately and put into a tab?
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.