Skip to content

Commit b3293c5

Browse files
committed
code cleanup
1 parent e808fad commit b3293c5

File tree

8 files changed

+135
-257
lines changed

8 files changed

+135
-257
lines changed

TAKeyBinding.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
using ColossalFramework;
22
using ColossalFramework.UI;
33
using System.Threading;
4-
using UI;
54
using UnityEngine;
65
using static TreeAnarchy.TAMod;
76

@@ -68,17 +67,17 @@ protected void Update() {
6867
TAPatcher.MoveItUseTreeSnap.SetValue(null, state);
6968
}
7069
TAOptionPanel.SetTreeSnapState(state);
71-
UIIndicator.SnapIndicator?.SetState(state);
70+
//UIIndicator.SnapIndicator?.SetState(state);
7271
ThreadPool.QueueUserWorkItem(SaveSettings);
7372
} else if (m_lockForestry.IsPressed(e)) {
7473
bool state = UseLockForestry = !UseLockForestry;
7574
TAOptionPanel.SetLockForestryState(state);
76-
UIIndicator.LockForestryIndicator?.SetState(state);
75+
//UIIndicator.LockForestryIndicator?.SetState(state);
7776
ThreadPool.QueueUserWorkItem(SaveSettings);
7877
} else if (m_treeAnarchy.IsPressed(e)) {
7978
bool state = UseTreeAnarchy = !UseTreeAnarchy;
8079
TAOptionPanel.SetTreeAnarchyState(state);
81-
UIIndicator.AnarchyIndicator.State = state;
80+
//UIIndicator.AnarchyIndicator.State = state;
8281
ThreadPool.QueueUserWorkItem(SaveSettings);
8382
}
8483
#if ENABLETREEGROUP

TALODFixManager.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ public enum TreeLODResolution : int {
1414
}
1515

1616
public static void SetResolution(this TreeManager manager, TreeLODResolution resolution) {
17-
int res = LOD_LODRES;
17+
int res = LOD_ULTRARES;
1818
switch (resolution) {
19-
//case TreeLODResolution.Low: res = LOD_LODRES; break; // This seems to break the game not sure why
19+
case TreeLODResolution.Low: res = LOD_LODRES; break; // This seems to break the game not sure why
2020
case TreeLODResolution.Medium: res = LOD_MEDIUMRES; break;
2121
case TreeLODResolution.High: res = LOD_HIGHRES; break;
2222
case TreeLODResolution.UltraHigh: res = LOD_ULTRARES; break;
@@ -29,7 +29,6 @@ public static void SetResolution(this TreeManager manager, TreeLODResolution res
2929
filterMode = FilterMode.Trilinear,
3030
autoGenerateMips = true
3131
};
32-
manager.m_renderDiffuseTexture.autoGenerateMips = true;
3332
manager.m_renderShadowTexture = new RenderTexture(res, res, 24, RenderTextureFormat.ARGB32, RenderTextureReadWrite.Linear) {
3433
filterMode = FilterMode.Point,
3534
autoGenerateMips = false

TALocale.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ public static void OnLocaleChanged() {
4141
}
4242
}
4343
LoadLocale(locale);
44-
TAOptionPanel[] optionPanel = UnityEngine.Object.FindObjectsOfType<TAOptionPanel>();
45-
foreach (var panel in optionPanel) {
46-
panel.Invalidate();
47-
}
44+
//TAOptionPanel[] optionPanel = UnityEngine.Object.FindObjectsOfType<TAOptionPanel>();
45+
//foreach (var panel in optionPanel) {
46+
// panel.Invalidate();
47+
//}
4848
}
4949

5050
private static void LoadLocale(string culture) {

TAMovementManager.cs

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

0 commit comments

Comments
 (0)