Skip to content

Commit a6c97bd

Browse files
committed
Merge branch 'develop'
2 parents 4db5eb3 + fc711be commit a6c97bd

15 files changed

+62
-71
lines changed

.prettierrc.json

Whitespace-only changes.

.stylelintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"extends": ["stylelint-config-standard", "stylelint-config-prettier"],
2+
"extends": ["stylelint-config-standard"],
33
"rules": {
44
"selector-class-pattern": "^([a-z][a-z0-9]*)((_|-)[a-z0-9]+)*$"
55
}

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# CHANGELOG
22

3+
## v1.2.2 - 2024-01-21
4+
5+
- Corrected forum link
6+
37
## v1.2.1 - 2022-08-08
48

59
- Fixed mod icon

README.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,6 @@ ALL2 displays army metal in place of army count. Army metal counts all units and
1717

1818
You should download and install this mod via the Planetary Annihilation TITANS in-game Community Mod Manager. You will need to [enable Community Mods](https://steamcommunity.com/sharedfiles/filedetails/?id=1417396826).
1919

20-
## Translations
21-
22-
Please help [translate All-In-One Spectator Tab](https://poeditor.com/join/project/juanyAfxIm) to your local language.
23-
2420
## FAQ
2521

2622
**Why didn't you include total unit count?**
@@ -31,10 +27,6 @@ Because I wanted to avoid having the ALL tab be any wider than the other tabs. I
3127

3228
I've tried to ensure this is very unlikely to happen, but because the columns are narrower it _could_ happen. Things will get more cramped though. You can switch to the other tabs still if things get ugly.
3329

34-
**Do you support translations?**
35-
36-
No. When you include translations in a Planetary Annihilation client mod, it breaks all other translations in the game. Until this is fixed this mod can't ship with translations.
37-
3830
## Thanks
3931

4032
- mikeyh, who once again covered for my total inability to inject Javascript and HTML

modinfo.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
"display_name": "All-In-One Spectator Tab",
55
"description": "Adds a tab called ALL to the spectator panel, which contains both economy and army information.",
66
"author": "Quitch",
7-
"version": "1.2.1",
8-
"build": "115872",
9-
"date": "2022/08/08",
7+
"version": "1.2.2",
8+
"build": "116982",
9+
"date": "2024/01/21",
1010
"signature": " ",
11-
"forum": "https://steamcommunity.com/app/386070/discussions/0/1694914736008697542/",
11+
"forum": "https://steamcommunity.com/app/386070/discussions/0/2656452469269054878/",
1212
"icon": "https://raw.githubusercontent.com/Quitch/All-In-One-Spectator-Tab/develop/images/icon.png",
1313
"category": ["ui", "classic", "titans"],
1414
"priority": 100,

sonar-project.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
sonar.projectKey=Quitch_All-In-One-Spectator-Tab
22
sonar.organization=quitch
3-
sonar.projectVersion=1.2.1
3+
sonar.projectVersion=1.2.2

ui/mods/com.quitch.qallinonetab/all2_buttons.html

Lines changed: 0 additions & 6 deletions
This file was deleted.

ui/mods/com.quitch.qallinonetab/all_buttons.html

Lines changed: 0 additions & 6 deletions
This file was deleted.

ui/mods/com.quitch.qallinonetab/all_tabs.js

Lines changed: 20 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -5,37 +5,32 @@ if (!allInOneSpectatorTabLoaded) {
55

66
function allInOneSpectatorTab() {
77
try {
8-
$("div.div_spectator_panel_buttons").append(
9-
loadHtml("coui://ui/mods/com.quitch.qallinonetab/all_buttons.html")
8+
var appendHtml = function (htmlClass, file) {
9+
var path = "coui://ui/mods/com.quitch.qallinonetab/";
10+
$(htmlClass).append(loadHtml(path + file));
11+
};
12+
13+
appendHtml("div.div_spectator_panel_buttons", "army_count_buttons.html");
14+
appendHtml(
15+
"table.tbl_spectator_stats tr:first",
16+
"army_count_headers.html"
1017
);
11-
12-
$("table.tbl_spectator_stats tr:first").append(
13-
loadHtml("coui://ui/mods/com.quitch.qallinonetab/all_headers.html")
14-
);
15-
16-
$("table.tbl_spectator_stats tr:last").append(
17-
loadHtml("coui://ui/mods/com.quitch.qallinonetab/all_values.html")
18-
);
19-
$("div.div_spectator_panel_buttons").append(
20-
loadHtml("coui://ui/mods/com.quitch.qallinonetab/all2_buttons.html")
21-
);
22-
23-
$("table.tbl_spectator_stats tr:first").append(
24-
loadHtml("coui://ui/mods/com.quitch.qallinonetab/all2_headers.html")
25-
);
26-
27-
$("table.tbl_spectator_stats tr:last").append(
28-
loadHtml("coui://ui/mods/com.quitch.qallinonetab/all2_values.html")
18+
appendHtml("table.tbl_spectator_stats tr:last", "army_count_values.html");
19+
appendHtml("div.div_spectator_panel_buttons", "army_metal_buttons.html");
20+
appendHtml(
21+
"table.tbl_spectator_stats tr:first",
22+
"army_metal_headers.html"
2923
);
24+
appendHtml("table.tbl_spectator_stats tr:last", "army_metal_values.html");
3025

31-
model.showAllData = ko.computed(function () {
32-
return model.spectatorPanelMode() === "all";
26+
model.showArmyCount = ko.computed(function () {
27+
return model.spectatorPanelMode() === "armyCount";
3328
});
34-
model.showAllData2 = ko.computed(function () {
35-
return model.spectatorPanelMode() === "all2";
29+
model.showArmyMetal = ko.computed(function () {
30+
return model.spectatorPanelMode() === "armyMetal";
3631
});
3732

38-
model.spectatorPanelMode("all");
33+
model.spectatorPanelMode("armyCount");
3934
model.pinSpectatorPanel(true);
4035
} catch (e) {
4136
console.error(e);
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<div
2+
class="div_spectator_panel_button"
3+
data-bind="click: function () { spectatorPanelMode('armyCount') }, css: { div_spectator_panel_button_active: showArmyCount } "
4+
>
5+
<loc>ALL</loc>
6+
</div>

0 commit comments

Comments
 (0)