Skip to content

Commit

Permalink
feat: Added a checkbox that disables viewing statistics for all players.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ajick2013 committed Jun 23, 2023
1 parent 6dfa5a1 commit 2d12f86
Show file tree
Hide file tree
Showing 5 changed files with 453 additions and 197 deletions.
2 changes: 1 addition & 1 deletion info.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Fed1sServerMod",
"version": "1.1.8",
"version": "1.1.11",
"title": "Fed1sServerMod",
"author": "danbka33",
"contact": "",
Expand Down
15 changes: 9 additions & 6 deletions locale/en/strings.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -104,15 +104,18 @@ tooltip-warn=Warn
tooltip-warnings=Warnings:
[statistics]
heading-1=[font=heading-1]__1__[/font]
heading-3=[font=heading-3]__1__[/font]
caption=Statistics
all-categories=All catogories
caption-amount=Amount
caption-place=#
caption-player=Player
caption-amount=Amount
all-categories=All catogories
wrong-parameter=Wrong parameter!
caption-show-buttons=Show statistics to all
caption=Statistics
heading-1=[font=heading-1]__1__[/font]
heading-3=[font=heading-3]__1__[/font]
no-data=No data for this category.
tooltip-show-buttons=Allows or prohibits players from opening the statistics window.\nIn case there are desynchronies or everything will slow down due to frequent updates.
wrong-parameter=Wrong parameter!
builders=Top Builders
builders-info=The amount of hand-built objects.
architectors=Top Architectors
Expand Down
17 changes: 10 additions & 7 deletions locale/ru/strings.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -104,15 +104,18 @@ tooltip-warn=Вынести предупреждение
tooltip-warnings=Предупреждения:

[statistics]
heading-1=[font=heading-1]__1__[/font]
heading-3=[font=heading-3]__1__[/font]
caption=Статистика
all-categories=Все категории
caption-amount=Количество
caption-place=#
caption-player=Игрок
caption-amount=Количество
all-categories=Все категории
wrong-parameter=Задан некорректный параметр.
caption-show-buttons=Показывать статистику всем
caption=Статистика
heading-1=[font=heading-1]__1__[/font]
heading-3=[font=heading-3]__1__[/font]
no-data=Пока нет статистических данных для этой категории.
tooltip-show-buttons=Разрешает или запрещает игрокам открывать окно статистики.\nНа случай, если будут десинхроны или всё будет тормозить из-за частых обновлений.
wrong-parameter=Задан некорректный параметр.

builders=Топ Строителей
builders-info=Количество построенных руками объектов.
architectors=Топ Архитекторов
Expand Down Expand Up @@ -143,7 +146,7 @@ mariobrothers=Топ Водопроводчиков
mariobrothers-info=Количество установленных вручную труб.
oilmans=Топ Нефтянников
oilmans-info=Количество установленных объектов, относящихся к нефтепереработке, а так же труб и цистерн.
roadworkers=Топ Дорожнных рабочих
roadworkers=Топ Дорожных рабочих
roadworkers-info=Количество проложенных вручную дорожек и отсыпки.
electricians=Топ Электриков
electricians-info=Количество уставновленных не столбов, а опор.
Expand Down
76 changes: 70 additions & 6 deletions prototypes/style.lua
Original file line number Diff line number Diff line change
Expand Up @@ -233,11 +233,75 @@ style.server_mod_content_scroll_pane = {
}


-- PlayersInventory styles --
-- Statistics styles --

style.player_inventory_equipment_grid = {
type = "table_style",
margin = 0,
horizontal_spacing = 0,
vertical_spacing = 0
style.statistics_menu_item = {
type = "label_style",
font = "default",
font_color = {1, 1, 1},
margin = 3,
hovered_font_color = {1, 1, 0}
}

style.statistics_menu_current_item = {
type = "label_style",
parent = "statistics_menu_item",
font = "default-bold",
font_color = {1, 1, 0}
}

style.statistics_place = {
type = "label_style",
width = 30,
margin = 3,
horizontal_align = "right"
}

style.statistics_first_ten_place = {
type = "label_style",
parent = "statistics_place",
font = "default-bold"
}

style.statistics_first_three_place = {
type = "label_style",
parent = "statistics_first_ten_place",
font_color = {1, 1, 0}
}

style.statistics_player = {
type = "label_style",
width = 320,
margin = 3
}

style.statistics_first_ten_player = {
type = "label_style",
parent = "statistics_player",
font = "default-bold"
}

style.statistics_first_three_player = {
type = "label_style",
parent = "statistics_first_ten_player",
font_color = {1, 1, 0}
}

style.statistics_amount = {
type = "label_style",
width = 100,
margin = 3,
horizontal_align = "right"
}

style.statistics_first_ten_amount = {
type = "label_style",
parent = "statistics_amount",
font = "default-bold"
}

style.statistics_first_three_amount = {
type = "label_style",
parent = "statistics_first_ten_amount",
font_color = {1, 1, 0}
}
Loading

0 comments on commit 2d12f86

Please sign in to comment.