Batch #7178 by eAthena: 0 byte-identical, 1 confirmed by peer review. - fn_12092 UIEquipWnd::DrawDamageSkinPage: logic confirmed by peer review Peer-reviewed-by: Yommy, alisonrag, Lumen Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
97 lines
3 KiB
C++
97 lines
3 KiB
C++
#include "Client/Session.h"
|
|
#include "Render/Primitives/AlphaRectangle.h"
|
|
#include "Render/Renderer.h"
|
|
#include "Render/TextureQuad.h"
|
|
#include "Resource/Bitmap/BitmapResource.h"
|
|
#include "Resource/ResourceMgr.h"
|
|
#include "Resource/TextureNames.h"
|
|
#include "UI/Chat/UIWhisperWnd.h"
|
|
#include "UI/Items/UIEquipWnd.h"
|
|
#include "UI/Skill/UISkillDescribeWnd.h"
|
|
#include "Utility/Text/FormatString.h"
|
|
|
|
// OFFSET: 0x008D0D80
|
|
// FUNCTION: fn_12090
|
|
void UISkillDescribeWnd::Slot43() {
|
|
int x = 0;
|
|
int y = 0;
|
|
this->ToScreen(x, y);
|
|
}
|
|
|
|
// OFFSET: 0x008D0DB0
|
|
// FUNCTION: fn_12091
|
|
void UIWhisperWnd::Slot43() {
|
|
int x = 0;
|
|
int y = 0;
|
|
this->ToScreen(x, y);
|
|
DrawAlphaRectangle(
|
|
g_renderer->primitives, g_renderer->queues, x + 1, y + 1, this->geometry.width - 2, this->geometry.height, 0x66000000,
|
|
g_renderer->fog.supported != 0, g_depthStart, g_depthEnd
|
|
);
|
|
DrawAlphaRectangle(
|
|
g_renderer->primitives, g_renderer->queues, x + 1, y + 1, this->geometry.width - 2, 17, 0x449EB6E4,
|
|
g_renderer->fog.supported != 0, g_depthStart, g_depthEnd
|
|
);
|
|
}
|
|
|
|
// OFFSET: 0x008D0F30
|
|
// FUNCTION: fn_12092
|
|
void UIEquipWnd::DrawDamageSkinPage() {
|
|
this->DrawBitmap(
|
|
0, this->m_contentTop + 14,
|
|
&static_cast<CBitmapRes*>(ResourceMgr::Instance().Load(Resolve("유저인터페이스\\ShowDamage\\bg_damage.bmp")))->image,
|
|
false
|
|
);
|
|
int slot = 0;
|
|
for (int x = 6; x < 0x116; x += 0x44) {
|
|
int index = this->m_firstSlot + slot;
|
|
if (index >= g_session.unknown_80C8) {
|
|
break;
|
|
}
|
|
if (g_session.m_damageSkinIndex == index) {
|
|
this->DrawBitmap(
|
|
x, 0x3A,
|
|
&static_cast<CBitmapRes*>(ResourceMgr::Instance().Load(
|
|
Resolve(FormatOwnedString("유저인터페이스\\showdamage\\btn_damage_pick.bmp").c_str())
|
|
))->image,
|
|
true
|
|
);
|
|
} else if (this->m_hoverSlot == index) {
|
|
this->DrawBitmap(
|
|
x, 0x3A,
|
|
&static_cast<CBitmapRes*>(ResourceMgr::Instance().Load(
|
|
Resolve(FormatOwnedString("유저인터페이스\\showdamage\\btn_damage_press.bmp").c_str())
|
|
))->image,
|
|
true
|
|
);
|
|
} else {
|
|
this->DrawBitmap(
|
|
x, 0x3A,
|
|
&static_cast<CBitmapRes*>(ResourceMgr::Instance().Load(
|
|
Resolve(FormatOwnedString("유저인터페이스\\showdamage\\btn_damage.bmp").c_str())
|
|
))->image,
|
|
true
|
|
);
|
|
}
|
|
int height;
|
|
unsigned char bold;
|
|
if (g_session.m_damageSkinIndex == index) {
|
|
this->DrawCenteredText(x + 1, 0x45, this->m_damageSkinNames[index].c_str(), 0x40, 0, 14, 0xBABABA, 1);
|
|
height = 14;
|
|
bold = 1;
|
|
} else {
|
|
this->DrawCenteredText(x + 1, 0x45, this->m_damageSkinNames[index].c_str(), 0x40, 0, 12, 0xBABABA, 0);
|
|
height = 12;
|
|
bold = 0;
|
|
}
|
|
this->DrawCenteredText(x, 0x44, this->m_damageSkinNames[index].c_str(), 0x40, 0, height, 0x323232, bold);
|
|
this->DrawBitmap(
|
|
x + 14, 0x5A,
|
|
&static_cast<CBitmapRes*>(ResourceMgr::Instance().Load(
|
|
Resolve(FormatOwnedString("%s.bmp", this->m_damageSkinIcons[index].c_str()).c_str())
|
|
))->image,
|
|
true
|
|
);
|
|
++slot;
|
|
}
|
|
}
|