Decompile 6 functions in Source/Contents/UserData/NormalItemSlots.cpp, Source/UI/Navigation/UINavigationV4Wnd.h, ...
Batch #5350 by eAthena: 1 byte-identical, 5 confirmed by peer review. - fn_13738 NavigationWindowInfo::Clamp: logic confirmed by peer review - fn_13745 UIParaResultWnd::AddItem: logic confirmed by peer review - fn_13746 UIParaResultWnd::AddItem: logic confirmed by peer review - fn_13747 UIParaItemPurchaseWnd::Slot10: logic confirmed by peer review - fn_13748 UIParaItemShopWnd::Slot10: logic confirmed by peer review - fn_13749 UIParaResultWnd::Slot10: byte-identical Peer-reviewed-by: meitogi, alisonrag, Snow Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). Adds to the build: Source/UI/Item/UIParaItemShopWnd.cpp
This commit is contained in:
parent
2cfa4a4d5e
commit
85eeed6fea
5 changed files with 153 additions and 0 deletions
|
|
@ -2,6 +2,7 @@
|
|||
#include "Client/Session.h"
|
||||
#include "Contents/MapSkyMgr.h"
|
||||
#include "Render/Renderer.h"
|
||||
#include "UI/Navigation/UINavigationV4Wnd.h"
|
||||
|
||||
#include <json/value.h>
|
||||
|
||||
|
|
@ -1037,3 +1038,33 @@ void PreviewEquipWndInfo::Reset() {
|
|||
this->x = static_cast<int>(static_cast<float>(g_renderer->viewport.width - 280) * g_depthAverageHalf);
|
||||
this->y = static_cast<int>(static_cast<float>(g_renderer->viewport.height - 260) * g_depthAverageHalf);
|
||||
}
|
||||
|
||||
// OFFSET: 0x009A7CA0
|
||||
// FUNCTION: fn_13738
|
||||
void NavigationWindowInfo::Clamp() {
|
||||
if (this->height < 338 || this->height > 338) {
|
||||
this->height = 338;
|
||||
}
|
||||
|
||||
if (this->expanded) {
|
||||
if (this->width != 272) {
|
||||
this->width = 272;
|
||||
}
|
||||
} else if (this->width != 228) {
|
||||
this->width = 228;
|
||||
}
|
||||
|
||||
if (this->x < 0) {
|
||||
this->x = 0;
|
||||
}
|
||||
if (this->x > g_renderer->viewport.width - this->width) {
|
||||
this->x = g_renderer->viewport.width - this->width;
|
||||
}
|
||||
|
||||
if (this->y < 0) {
|
||||
this->y = 0;
|
||||
}
|
||||
if (this->y > g_renderer->viewport.height - this->height) {
|
||||
this->y = g_renderer->viewport.height - this->height;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue