diff options
Diffstat (limited to 'Plugin.cs')
| -rwxr-xr-x | Plugin.cs | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -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;
|