Skip to content

Commit

Permalink
Show FS22 warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
iwatkot committed Feb 14, 2025
1 parent ae445f7 commit 8ee28e7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions webui/generator/main_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ def __init__(self, public: bool, **kwargs):
label_visibility="collapsed",
)

if self.game_code == "FS22":
st.warning(Messages.FS22_NOTES, icon="💡")

st.write("Enter latitude and longitude of the center point of the map:")
self.lat_lon_input = st.text_input(
"Latitude and Longitude",
Expand Down
5 changes: 5 additions & 0 deletions webui/templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ class Messages:
"(https://www.youtube.com/watch?v=hPbJZ0HoiDE&list=PLug0g7UYHX8D1Jik6NkJjQhdxqS-NOtB9). 🆕"
)

FS22_NOTES = (
"Support for the Farming Simulator 22 is discontinued. \nSome of the features are not "
"available for this game."
)

MOVED = "The app has moved to ➡️➡️➡️ [maps4fs.xyz](https://maps4fs.xyz)"
MAIN_PAGE_COMMUNITY_WARNING = (
"🚜 Hey, farmer! \n"
Expand Down

0 comments on commit 8ee28e7

Please sign in to comment.