diff options
author | Hop311 <Hop3114@gmail.com> | 2023-09-23 22:53:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-23 22:53:40 +0200 |
commit | 0b4c30aa02c3ec1dacfc3ac190af4733531753ea (patch) | |
tree | 41aacf220a1f7085c81f2b0f522ad9f36991947b /game/src/Game/Theme/PieChart | |
parent | d56941e60016bf73587c63a36ac5ca9da3f6023e (diff) | |
parent | 6e2ba19d77c36ddc4767a20de040489b574ae0c3 (diff) |
Merge pull request #157 from OpenVicProject/more-dataloading
More dataloading
Diffstat (limited to 'game/src/Game/Theme/PieChart')
-rw-r--r-- | game/src/Game/Theme/PieChart/PieChart.gd | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/game/src/Game/Theme/PieChart/PieChart.gd b/game/src/Game/Theme/PieChart/PieChart.gd index cfd7917..4b81b28 100644 --- a/game/src/Game/Theme/PieChart/PieChart.gd +++ b/game/src/Game/Theme/PieChart/PieChart.gd @@ -193,13 +193,13 @@ func _create_tooltip(labelHovered : String) -> String: for label in _slice_order: var slice : SliceData = _slices.get(label) var percent := _format_percent(slice.percentage) - var entry : String = "%s %s%%" % [label, percent] + var entry : String = "%s %s%%" % [tr(label), percent] if label == labelHovered: entry = "[i][u][b]>>%s<<[/b][/u][/i]" % entry slice_tooltips.push_back(entry) # Slices are ordered smallest to largest, but here we want the opposite slice_tooltips.reverse() - return "[font_size=10]%s[/font_size]" % "\n".join(slice_tooltips) + return "[font_size=14]%s[/font_size]" % "\n".join(slice_tooltips) # Angle from center.angle_to_point is measured from the +x axis, # but the chart starts from +y |