Jump to content

CaptainCappi

Member
  • Posts

    1
  • Joined

  • Last visited

Everything posted by CaptainCappi

  1. CaptainCappi

    Trade Hub

    [Bug Report / Fix] TradeHub v1.4.0 — Player Movement While Marketplace UI Is Open Plugin: TradeHub v1.4.0 Issue: Players can still move their characters using keyboard inputs (WASD, Space, Shift, etc.) while the TradeHub marketplace interface is open. Description: When players open the TradeHub marketplace using /th, the UI correctly captures mouse input, but keyboard movement remains enabled. This allows players to unintentionally move around while browsing listings, purchasing items, or interacting with the marketplace. Suggested Fix: In TradeHub.cs, locate the AddBlurPanel() method (approximately line 3253 in v1.4.0). The existing panel initialization contains: CursorEnabled = cursor Change it to: CursorEnabled = cursor, KeyboardEnabled = name == UiMain Full updated method: private static string AddBlurPanel( CuiElementContainer container, string parent, string name, string color, string min, string max, bool cursor) { string panelName = string.IsNullOrEmpty(name) ? CuiHelper.GetGuid() : name; container.Add(new CuiPanel { Image = { Color = color, Material = TradeHub.UiBlurMaterial }, RectTransform = { AnchorMin = min, AnchorMax = max }, CursorEnabled = cursor, KeyboardEnabled = name == UiMain }, parent, panelName); return panelName; } Why this works: Setting KeyboardEnabled on the main marketplace panel enables keyboard focus for the CUI, preventing normal movement inputs from controlling the character while the marketplace is open. Restricting the change to name == UiMain avoids applying keyboard focus to persistent HUD elements and unrelated UI panels. When the main marketplace UI closes and is destroyed, keyboard focus should return to normal gameplay. Expected behavior: Opening TradeHub prevents unintended character movement. Mouse interactions and marketplace controls remain functional. Closing TradeHub restores normal movement. Persistent HUD buttons remain unaffected. Testing: The source modification has been applied locally. Full in-game regression testing is still recommended, particularly for text fields, Claims, listing creation, and keyboard focus after closing the interface. Hopefully this can be incorporated into the next TradeHub update so server owners won't need to patch the source manually. Thanks for maintaining the plugin!

About Us

Codefling is the largest marketplace for plugins, maps, tools, and more, making it easy for customers to discover new content and for creators to monetize their work.

Downloads
3.2m
Total downloads
Customers
12.3k
Customers served
Files Sold
174.7k
Total sales
Payments
3.8m
Processed total
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.