- "Clear Messages" now works for any tab, not just the active one.
- Readonly panel is cleared and closed on relogin/character switch.
- Refactored clear logic to always target the correct tab and readonly state.
* Fix map resizing issue in extended view when toggling topmenu with Ctrl+Shift+T
Fixes an issue where the game map panel would not return to its original size after toggling the top menu visibility (Ctrl+Shift+T) in extended view mode.
**Problem:**
- In extended view mode, hiding the top menu would correctly expand the map
- However, showing the top menu again would not restore the map to its proper size
- This was caused by incorrect anchoring of the gameRootPanel
**Solution:**
- Modified hide() and show() functions in topmenu.lua to check for extended view mode
- Ensures proper anchoring to topMenu.bottom when in extended view mode
- Maintains backward compatibility with normal view mode
* fix: mainpanel
* Minor fixes
* Removed dead code (Outfit)
* Fixed type error SpellGroups vs game_cooldown
* Fixed Keybind
* And more
* more fixes
* ...
* Changes in shop (store)
* Added function addOutfit;
* Fixed entries per page (history);
* Fixed Extras Category
* Added function Game.getMountIdByClientId
The main improvements implemented in the code are:
>> Cache System for Points:
* Added a cache system to reduce frequent database queries.
* The cache expires after 5 minutes to ensure that the data is updated periodically.
>> Optimization of Infinite Loop:
* Added a counter to limit the number of executions of the refreshPlayersPoints function.
* The counter is stored in GlobalStorage for persistence.
>> Single Initialization of the Shop:
* Implemented a check to prevent the shop from being initialized multiple times.
* This reduces memory usage and redundant processing.
>> String Construction Optimization:
* Replaced excessive concatenations with table construction and table.concat().
* This approach is much more efficient in Lua.
>> Event Consolidation:
* Created a unified updatePlayerShopData function to reduce the number of event calls.
* This reduces the overhead of scheduling events.
>> Cache Cleanup on Logout:
* Added a logout event to clear the cache when the player disconnects.
* This prevents memory accumulation from data of players who are no longer online.
>> Purchase History Limitation:
* Limited the purchase history to 50 records to avoid data overload.
>> Name Validation Optimization:
* Improved the efficiency of the validName function by using lookup tables and more direct checks.
- Fixed the search functionality: item descriptions now load correctly when searching.
- Added a new "Rookgaard Items" category in the shop, visible only to players with no vocation.
There was an issue when trying to read the item descriptions, especially in the MOUNTS category, due to the size of the descriptions.
To resolve this, a modification was made so that the server sends the item descriptions separately, which fixed the problem.