Skip to content

Conversation

@gabrielew
Copy link
Contributor

Description

Migrating the Prey window from OTUI to HTML

Summary

  • Infinite scroll / lazy loading for the prey selection list to handle large datasets without freezing the UI.
  • Prevent full UI reload after confirmation; only the affected parts update.
  • Reset prey slot state when the slot type changes to avoid stale state leakage.
  • Hide the active monster from the selectable names list to avoid duplicate/invalid choices.
  • Improve resource validation across events; update resource bindings where needed.
  • Layout / color tweaks to keep visual consistency and readability.

Behavior

Actual

image image image image image image
2025-10-17.15-17-09.mp4

Type of change

  • New feature (non-breaking change which adds functionality)

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I checked the PR checks reports
  • I have commented my code, particularly in hard-to-understand areas

mehah and others added 30 commits October 14, 2025 15:47
…scroll-for-prey-list

Implement lazy loading for prey list selection
fix: select by index not type id
…-slot-in-module

Avoid reloading prey module on confirmation dialogs
@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
D Reliability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

@majestyotbr majestyotbr changed the title Feat/prey creatures html feat: prey creatures html Oct 17, 2025
end

function PreyController:onGameStart()
if g_game.getClientVersion() >= 1149 then
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if g_game.getClientVersion() >= 1149 then
if g_game.getFeature(GamePrey) then

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants