Skills, auto-attack, aura and chain lightning rework, Esc, cache fix
- Skill bar: no art selection; slot 0 is the right-click art, keys 0-6 cast slots directly; cooldown labels in exact seconds; slot 0 set apart. - Arts regenerate on their own (casting no longer refills the group). - Auto-attack after targeting or casting at a hostile creature, at the speed of a held button. - Auras can be recast while active (renew, no second visual). - Blicke wie Klingen hits every enemy in range, physical, with life leech. - Blitzschlag steers the game's own chain: 3 + level/5 hits, 1 + level/10 chains, re-hits a lone enemy. - Weapon sets: click selects, drag only from the selected set; the leftmost set is clickable (signed hit tests). - Esc closes open windows before opening the game menu. - HUD: standalone buttons and texts are centred. - Record cache sized for widened views (town lag while walking). - Shared game code: orders, fx events, text drawing, cooldowns, effects. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
f721d2a486
commit
1fd89524d3
41 files changed
+2347
-214
No files matched your search
@@ -44,6 +44,7 @@ thread_local int g_offsetX = 0;
|
||||
// Whether the UI event currently being handled has already been shifted.
|
||||
thread_local bool g_eventShifted = false;
|
||||
|
||||
|
||||
enum class Anchor { Center, Right };
|
||||
|
||||
int OffsetFor(Anchor anchor) {
|
||||
@@ -500,6 +501,21 @@ HUD_RENDER(0x0071dd80, UiSavegame_Render, Anchor::Center)
|
||||
HUD_EVENT(0x00720c10, UiBusyDlg_HandleEvent, Anchor::Center)
|
||||
HUD_RENDER(0x007213a0, UiBusyDlg_Render, Anchor::Center)
|
||||
|
||||
// Controls that can be top-level windows of their own, e.g. the quest dialog
|
||||
// (buttons and texts placed directly in the UI manager). Inside one of the
|
||||
// windows above they are already in its scope (outermost wins); on their own
|
||||
// they were drawn and clicked unshifted (or shifted by whichever window was
|
||||
// active), which made the dialog jump and its buttons miss.
|
||||
HUD_EVENT(0x0072adf0, UiButton_HandleEvent, Anchor::Center)
|
||||
HUD_RENDER(0x0072af90, UiButton_Render, Anchor::Center)
|
||||
HUD_EVENT(0x00753c70, UiStaticText_HandleEvent, Anchor::Center)
|
||||
HUD_RENDER(0x00753a20, UiStaticText_Render, Anchor::Center)
|
||||
HUD_EVENT(0x00754610, UiStaticTextFx_HandleEvent, Anchor::Center)
|
||||
HUD_RENDER(0x007541e0, UiStaticTextFx_Render, Anchor::Center)
|
||||
HUD_EVENT(0x00753360, UiStatic_HandleEvent, Anchor::Center)
|
||||
HUD_RENDER(0x007530a0, UiStatic_Render, Anchor::Center)
|
||||
HUD_RENDER(0x007228b0, UiTextLines_Render, Anchor::Center)
|
||||
|
||||
// Tooltips: placed by the hovered window in its own layout (see TrackHover).
|
||||
int __fastcall UiTooltip_Render(void* self, void* edx, void* device);
|
||||
RE_HOOK(0x006e7300, UiTooltip_Render);
|
||||
|
||||
Reference in new issue
Block a user