summaryrefslogtreecommitdiff
path: root/Plugin.cs
diff options
context:
space:
mode:
authorAndrew Opalach <andrew@akon.city> 2026-06-03 17:24:53 -0400
committerAndrew Opalach <andrew@akon.city> 2026-06-03 19:01:27 -0400
commitd8fda32bb62dbc02e4e881e5e5a2b865aa862493 (patch)
tree98e986422cc3f195ca432249039f683d02a8a428 /Plugin.cs
parent377858fd543439558f7980ba5ca17a0ce690c038 (diff)
downloadNewCamera-d8fda32bb62dbc02e4e881e5e5a2b865aa862493.tar.gz
NewCamera-d8fda32bb62dbc02e4e881e5e5a2b865aa862493.tar.bz2
NewCamera-d8fda32bb62dbc02e4e881e5e5a2b865aa862493.zip
Small cleanup for 4.1_beta1HEADmaster
Signed-off-by: Andrew Opalach <andrew@akon.city>
Diffstat (limited to 'Plugin.cs')
-rwxr-xr-xPlugin.cs10
1 files changed, 7 insertions, 3 deletions
diff --git a/Plugin.cs b/Plugin.cs
index 7f88d07..0451ea8 100755
--- a/Plugin.cs
+++ b/Plugin.cs
@@ -1,4 +1,4 @@
-#define ENABLE_ASSERTS
+//#define ENABLE_ASSERTS
//#define HOOK_ORDER_ASSERTS
//#define LOG_DEBUG_MESSAGES
#define MOUSE_AND_KEYBOARD_LAYER
@@ -53,6 +53,7 @@ using SharpPluginLoader.Core.Configuration;
// - Attempt to document all test cases I can think of.
// - Centralize all bindings to get a better idea of how to structure custom binds.
// - Pass on ImGui flicker.
+// - Simplify setting ImGui width.
// - WASD for ignore camera direction.
// - Make audio like waterfall follow camera position instead of player position.
// - Audio high/lowpass possible?
@@ -3341,9 +3342,9 @@ namespace NewCamera
int lodCount = MemoryUtil.Read<int>(partsAddr + 0xD0);
const int lodStructSize = 0x50;
const int partsPerLine = 10;
- bool allOn = ImGui.Button("All On");
+ bool allOn = ImGui.Button("Show All");
ImGui.SameLine();
- bool allOff = ImGui.Button("All Off");
+ bool allOff = ImGui.Button("Hide All");
for (int i = 0; i < numParts; i++)
{
ref int lodOffset = ref MemoryUtil.GetRef<int>(baseOffset + (i * 0x4));
@@ -3626,6 +3627,7 @@ namespace NewCamera
private void drawViewportInfo(int i, float width, Config config, bool debug)
{
+ ImGui.PushItemWidth(width * 0.75f);
Viewport vp = CameraSystem.GetViewport(i);
if (debug)
{
@@ -3885,6 +3887,7 @@ namespace NewCamera
}
}
}
+ ImGui.PopItemWidth();
}
private void drawAnimationInfo(Entity entity, float width, bool debug)
@@ -5296,6 +5299,7 @@ namespace NewCamera
if (timeAddr != 0x0)
{
float gameTime = MemoryUtil.Read<float>(timeAddr + 0x38);
+ ImGui.SetNextItemWidth(width * 0.75f);
if (ImGui.SliderFloat("Time of Day", ref gameTime, 0.0f, 24.0f))
{
MemoryUtil.GetRef<float>(timeAddr + 0x38) = gameTime;