Batch #10169 by ragnarok-clanker: forced by an admin (137 lower score(s), 472 changed function(s)); checked with 394 compiled unit(s), including every includer of Source/Contents/SignBoard/SignBoard.h, Source/UI/Buttons/UIBasicButton.h, Source/UI/Buttons/UIBitmapButton.h, Source/UI/Buttons/UIBmpRadioBtn.h, Source/UI/Buttons/UIBmpTextButton.h, Source/UI/Buttons/UIBmpTextButton2.h, Source/UI/Buttons/UIButton.h, Source/UI/Buttons/UICashEmotionSprBtn.h, Source/UI/Buttons/UICheckBox.h, Source/UI/Buttons/UIItemMoveInfo.h, Source/UI/Buttons/UIItemTagButton.h, Source/UI/Buttons/UIJobSlotButton.h, Source/UI/Buttons/UINaviLinkButton.h, Source/UI/Buttons/UINoneVisibleButton.h, Source/UI/Buttons/UIRadioBtn.h, Source/UI/Buttons/UIReplayButton.h, Source/UI/Buttons/UISlotBmpButton.h, Source/UI/Buttons/UISpriteButton.h, Source/UI/Buttons/UITVBitmapButton.h, Source/UI/Buttons/UITVTextButton.h, Source/UI/Buttons/UITagButton.h, Source/UI/Buttons/UITextButton.h, Source/UI/CashEmotion/UICashEmotionPiece.h, Source/UI/CashShop/UICashShopWnd.h, Source/UI/Chat/UIChatRoomTitle.h, Source/UI/Chat/UISubChatHisWnd.h, Source/UI/Chat/UIWhisperWnd.h, Source/UI/Clan/UIClanWnd.h, Source/UI/Dialogs/UIChooseWarpWnd.h, Source/UI/Dialogs/UIChooseWnd.h, Source/UI/Dialogs/UIEditctrlWnd.h, Source/UI/Dialogs/UIEmailAddressWnd.h, Source/UI/Dialogs/UIGraffiStrboxWnd.h, Source/UI/Dialogs/UIMemorialDunWnd.h, Source/UI/Dialogs/UIMenuWnd.h, Source/UI/Dialogs/UIMiniMapWnd.h, Source/UI/Dialogs/UIMinimapZoomWnd.h, Source/UI/Dialogs/UINotifyLevelUpWnd.h, Source/UI/Dialogs/UINotifyQuestWnd.h, Source/UI/Dialogs/UINpcEditDialogWnd.h, Source/UI/Dialogs/UIPasswordWnd.h, Source/UI/Dialogs/UIProhibitListWnd.h, Source/UI/Dialogs/UIQuitWnd.h, Source/UI/Dialogs/UIRestartWnd.h, Source/UI/Dialogs/UISelectCartWnd.h, Source/UI/Dialogs/UITipOfTheDayWnd.h, Source/UI/Dialogs/UITipboxWnd.h, Source/UI/Dialogs/UIWaitDBSaveWnd.h, Source/UI/Edit/UICandidateWnd.h, Source/UI/Edit/UIEditCtrl.h, Source/UI/Guild/UIAgitWnd.h, Source/UI/Guild/UIGuildHelperWnd.h, Source/UI/Guild/UIGuildWnd.h, Source/UI/Guild/UIGuild_Storage_Log.h, Source/UI/Item/UIItemBaseWnd.h, Source/UI/Items/MergeItemWnd.h, Source/UI/Items/UICardItemIllustWnd.h, Source/UI/Items/UIIllustWnd.h, Source/UI/Items/UIItemParamChangeDisplayWnd.h, Source/UI/Items/UIItemRepairWnd.h, Source/UI/Items/UIMakeTargetListWnd.h, Source/UI/Items/UIMakeTargetProcessWnd.h, Source/UI/Items/UIMakeTargetResultWnd.h, Source/UI/Items/UISpellListWnd.h, Source/UI/Items/UISwapEquipmentWnd.h, Source/UI/Items/UIWeaponRefineWnd.h, Source/UI/Lists/UIComboBoxDefWnd.h, Source/UI/Lists/UIListBox.h, Source/UI/Lists/UIMemberListBox.h, Source/UI/Lists/UITabControl.h, Source/UI/Lists/UITreeView.h, Source/UI/Navigation/UINavigationV4Wnd.h, Source/UI/Navigation/UIPrivateAirplaneWnd.h, Source/UI/Party/UIAdvenPartyBoardWnd.h, Source/UI/Party/UIApplyForPartyWnd.h, Source/UI/Party/UIPartyInfoWnd.h, Source/UI/Party/UIPartySettingWnd.h, Source/UI/Party/UIRegisterPartyWnd.h, Source/UI/Quest/UIRenewQuestWnd.h, Source/UI/RuneSystem/UIRuneSystemWnd.h, Source/UI/Shop/UIMerchantItemPurchaseMSGWnd.h, Source/UI/Shop/UIMerchantShopMakeWnd.h, Source/UI/Shop/UIMerchantShopTitle.h, Source/UI/Shop/UINoticeMessageBox_LockSellItem.h, Source/UI/Shortcuts/ShortcutControls.h, Source/UI/Shortcuts/UIShortCutWnd.h, Source/UI/Skill/UISkillNameChangeWnd.h, Source/UI/Status/UIStatusWnd.h, Source/UI/StylingShop/UIStylingShopWnd.h, Source/UI/Text/UIAchWnd.h, Source/UI/Text/UIStaticText.h, Source/UI/Text/UITextViewer.h, Source/UI/UIBarGraph.h, Source/UI/UIBasicCtrl.h, Source/UI/UIBroadcastBalloon.h, Source/UI/UICaptchaPreviewWnd.h, Source/UI/UICaptchaRegisterWnd.h, Source/UI/UIChangeMaterialWnd.h, Source/UI/UICheckAttendanceWnd.h, Source/UI/UIGradeEnchantWnd.h, Source/UI/UIHotkeyGuideWnd.h, Source/UI/UIIngredientInfoWnd.h, Source/UI/UIItemReformWnd.h, Source/UI/UILapineScrollBar.h, Source/UI/UILapineUpgradeBoxWnd.h, Source/UI/UIMacroBlackListCheckWnd.h, Source/UI/UIMacroUserInfoWnd.h, Source/UI/UIPreviewEquipWnd.h, Source/UI/UIRefiningWnd.h, Source/UI/UIReputeWnd.h, Source/UI/UISlotBitmap.h, Source/UI/UIStaticBitmap.h, Source/UI/UIStaticItem.h, Source/UI/Window/UIAccountLimitedToolWnd.h, Source/UI/Window/UIBalloonOpenBtn.h, Source/UI/Window/UIBank_NewWnd.h, Source/UI/Window/UIBasicInfoWnd.h, Source/UI/Window/UIBattleMsgOptionWnd.h, Source/UI/Window/UIChangeNameWnd.h, Source/UI/Window/UIChatRoomWnd.h, Source/UI/Window/UICntWnd.h, Source/UI/Window/UIDebuffRemoveWnd.h, Source/UI/Window/UIEscOptionWnd.h, Source/UI/Window/UIFrameWnd.h, Source/UI/Window/UIHomunInfoWnd.h, Source/UI/Window/UIJobListWnd.h, Source/UI/Window/UILoginOTPWnd.h, Source/UI/Window/UIMakeCharWnd.h, Source/UI/Window/UIMerInfoWnd.h, Source/UI/Window/UIMessageBox.h, Source/UI/Window/UIMileageWnd.h, Source/UI/Window/UIMonsterDisplayWnd.h, Source/UI/Window/UIMonsterInfoWnd.h, Source/UI/Window/UINavigationHelpWnd.h, Source/UI/Window/UINavigationWnd.h, Source/UI/Window/UINewMakeCharWnd.h, Source/UI/Window/UINewSelectCharWnd.h, Source/UI/Window/UINewSkillListWnd.h, Source/UI/Window/UINoteWnd.h, Source/UI/Window/UINoticeWnd.h, Source/UI/Window/UIOpenMailBoxWnd.h, Source/UI/Window/UIOpenRoulletteWnd.h, Source/UI/Window/UIPartyBookingHelpWnd.h, Source/UI/Window/UIPayConfirmWnd.h, Source/UI/Window/UIPetEvolutionWnd.h, Source/UI/Window/UIPetInfoWnd.h, Source/UI/Window/UIRebirthWnd.h, Source/UI/Window/UIReplayControlWnd.h, Source/UI/Window/UIReplayRECControlWnd.h, Source/UI/Window/UIRodexContentsWnd.h, Source/UI/Window/UISecondCostumeWnd.h, Source/UI/Window/UISeekPartyListWnd.h, Source/UI/Window/UISeekPartyMBWnd.h, Source/UI/Window/UISeekPartyWnd.h, Source/UI/Window/UISelectReplayDataWnd.h, Source/UI/Window/UISelectServerWnd.h, Source/UI/Window/UISerachStoreInfoWnd.h, Source/UI/Window/UIShowWarpWnd.h, Source/UI/Window/UITalkboxTrapInputWnd.h, Source/UI/Window/UITransMenuWnd.h, Source/UI/Window/UIVideoWnd.h, Source/UI/Window/UIViewCameraInfoWnd.h, Source/UI/Window/UIWindow.h.
411 lines
14 KiB
C++
411 lines
14 KiB
C++
#include "UI/UIPreviewEquipWnd.h"
|
|
|
|
#include "Client/Mode/CGameMode.h"
|
|
#include "Client/Mode/ModeMgr.h"
|
|
#include "Client/Session.h"
|
|
#include "Contents/Actors/CharacterRender.h"
|
|
#include "Contents/Actors/Pc.h"
|
|
#include "Contents/Actors/SpriteDrawingPolicy.h"
|
|
#include "Contents/Items/ItemInfo.h"
|
|
#include "Contents/MessageTable.h"
|
|
#include "Contents/UserData/NormalItemSlots.h"
|
|
#include "Render/Renderer.h"
|
|
#include "UI/Buttons/UIBasicButton.h"
|
|
#include "UI/Buttons/UIBitmapButton.h"
|
|
#include "UI/Text/UIStaticText.h"
|
|
#include "UI/Window/UIWindowMgr.h"
|
|
#include "Contents/World/World.h"
|
|
#include "UI/Window/FuncDrawWNDChar.h"
|
|
#include "Utility/Math/AffineMatrix.h"
|
|
|
|
// OFFSET: 0x007F2F90
|
|
// FUNCTION: fn_09879
|
|
UIPreviewEquipWnd::UIPreviewEquipWnd(UIWindowContext& windows)
|
|
: UIFrameWnd(windows, 1), saved(nullptr), m_render(nullptr), m_leftButton(nullptr), m_rightButton(nullptr), unknown_00C4(0) {
|
|
}
|
|
|
|
// OFFSET: 0x007F3090
|
|
// FUNCTION: fn_09880
|
|
UIPreviewEquipWnd::~UIPreviewEquipWnd() {
|
|
delete this->m_render;
|
|
}
|
|
|
|
// OFFSET: 0x007F3590
|
|
// FUNCTION: fn_09881
|
|
void UIPreviewEquipWnd::DrawCharacter() {
|
|
CCharacterRender* render = this->m_render;
|
|
matrix view;
|
|
view.MakeXRotation(render->unknown_0074 / 180.0f * 3.141592f);
|
|
view.AppendYRotation(render->unknown_0078 / 180.0f * 3.141592f);
|
|
|
|
const float distance = -render->unknown_0070;
|
|
float eye[3];
|
|
eye[0] = distance * view.values[6] + view.values[9];
|
|
eye[1] = distance * view.values[7] + view.values[10];
|
|
eye[2] = distance * view.values[8] + view.values[11];
|
|
|
|
float up[3];
|
|
up[0] = render->unknown_0088;
|
|
up[1] = render->unknown_008C;
|
|
up[2] = *reinterpret_cast<float*>(&render->unknown_0090);
|
|
view.LookAt(eye, reinterpret_cast<float*>(&render->unknown_0004), up);
|
|
|
|
float screenX = 0.0f;
|
|
float screenY = 0.0f;
|
|
float depth = 0.0f;
|
|
g_renderer->ProjectViewportCentered(
|
|
reinterpret_cast<float*>(&render->unknown_0004), view.values, &screenX, &screenY, &depth,
|
|
static_cast<float>(this->geometry.width) + *reinterpret_cast<float*>(&render->unknown_0054),
|
|
static_cast<float>(this->geometry.height) + render->unknown_0058
|
|
);
|
|
|
|
FuncDrawWNDChar drawer(
|
|
this, static_cast<int>(screenX), static_cast<int>(screenY), static_cast<unsigned char>(render->unknown_0018[0]),
|
|
static_cast<short>(render->unknown_0010), render->unknown_0014, static_cast<short>(render->unknown_0050),
|
|
static_cast<short>(render->unknown_0018[1]), static_cast<short>(render->unknown_0028), static_cast<short>(render->unknown_002C),
|
|
static_cast<short>(render->unknown_0030), render->unknown_00BC, render->unknown_004C, render->unknown_0048, render->unknown_0018[2],
|
|
render->unknown_0018[3], render->unknown_0040, render->unknown_0044, 0
|
|
);
|
|
drawer.Draw(1);
|
|
}
|
|
|
|
// OFFSET: 0x007F38A0
|
|
// FUNCTION: fn_09882
|
|
void UIPreviewEquipWnd::Slot15(int width, int height) {
|
|
|
|
this->AddBaseButton();
|
|
this->AddCloseButton("", 0);
|
|
|
|
UIStaticText* shadow = new UIStaticText(*this->m_context);
|
|
shadow->SetSize(
|
|
this->TextWidth(LookupMessage(0xB90), 0, 0, 12, 0, 0),
|
|
this->TextHeight(LookupMessage(0xB90), 0, 0, 12, 0, 0)
|
|
);
|
|
shadow->SetText(LookupMessage(0xB90), 0);
|
|
shadow->SetColor(255, 255, 255);
|
|
shadow->Move(19, 4);
|
|
this->AddChild(shadow);
|
|
|
|
UIStaticText* title = new UIStaticText(*this->m_context);
|
|
title->SetSize(
|
|
this->TextWidth(LookupMessage(0xB90), 0, 0, 12, 0, 0),
|
|
this->TextHeight(LookupMessage(0xB90), 0, 0, 12, 0, 0)
|
|
);
|
|
title->SetText(LookupMessage(0xB90), 0);
|
|
title->Move(18, 3);
|
|
this->AddChild(title);
|
|
|
|
if (!g_modeMgr.GetGameMode() || !static_cast<CGameMode*>(g_modeMgr.GetGameMode())->scene) {
|
|
return;
|
|
}
|
|
|
|
this->m_render = new CCharacterRender(width, height);
|
|
this->SyncFromPlayer();
|
|
|
|
this->m_leftButton = new UIBitmapButton(*this->m_context);
|
|
this->m_leftButton->SetBitmap("유저인터페이스\\equip_preview\\chr_arrow_rotate_l_out.bmp", 0, 0);
|
|
this->m_leftButton->SetBitmap("유저인터페이스\\equip_preview\\chr_arrow_rotate_l_over.bmp", 1, 0);
|
|
this->m_leftButton->SetBitmap("유저인터페이스\\equip_preview\\chr_arrow_rotate_l_press.bmp", 2, 0);
|
|
this->m_leftButton->SetSize(this->m_leftButton->BitmapWidth(), this->m_leftButton->BitmapHeight());
|
|
this->m_leftButton->Move(13, 151);
|
|
this->m_leftButton->SetId(0x180);
|
|
this->AddChild(this->m_leftButton);
|
|
|
|
this->m_rightButton = new UIBitmapButton(*this->m_context);
|
|
this->m_rightButton->SetBitmap("유저인터페이스\\equip_preview\\chr_arrow_rotate_r_out.bmp", 0, 0);
|
|
this->m_rightButton->SetBitmap("유저인터페이스\\equip_preview\\chr_arrow_rotate_r_over.bmp", 1, 0);
|
|
this->m_rightButton->SetBitmap("유저인터페이스\\equip_preview\\chr_arrow_rotate_r_press.bmp", 2, 0);
|
|
this->m_rightButton->SetSize(this->m_rightButton->BitmapWidth(), this->m_rightButton->BitmapHeight());
|
|
this->m_rightButton->Move(this->geometry.width - this->m_rightButton->BitmapWidth() - 13, 151);
|
|
this->m_rightButton->SetId(0x181);
|
|
this->AddChild(this->m_rightButton);
|
|
|
|
this->unknown_00C4 = new UIBasicButton(*this->m_context);
|
|
this->unknown_00C4->Configure(80, LookupMessage(0xB9F));
|
|
this->unknown_00C4->Move(static_cast<int>((this->geometry.width - this->unknown_00C4->geometry.width) * 0.5), this->geometry.height - 30);
|
|
this->unknown_00C4->SetId(0x16B);
|
|
this->unknown_00C4->invalidateParent = 1;
|
|
this->AddChild(this->unknown_00C4);
|
|
}
|
|
|
|
// OFFSET: 0x007F3CD0
|
|
// FUNCTION: fn_09883
|
|
void UIPreviewEquipWnd::Paint() {
|
|
this->SetSolid(this->m_context->primitives, this->geometry.width, this->geometry.height, 0);
|
|
this->DrawNamed(this->m_context->primitives, 0, 0, "유저인터페이스\\equip_preview\\bg_mounting2.bmp", 0xffffffff, 0, 0);
|
|
void (UIPreviewEquipWnd::*draw)() = &UIPreviewEquipWnd::DrawCharacter;
|
|
(this->*draw)();
|
|
}
|
|
|
|
// OFFSET: 0x007F3DC0
|
|
// FUNCTION: fn_09885
|
|
void UIPreviewEquipWnd::SyncFromPlayer() {
|
|
this->m_render->unknown_00B0 = 0;
|
|
|
|
CGameMode* mode = static_cast<CGameMode*>(g_modeMgr.GetGameMode());
|
|
CPlayer* player = mode->scene->player;
|
|
if (player == nullptr) {
|
|
return;
|
|
}
|
|
|
|
this->m_render->unknown_0010 = player->GetEffectiveJob(-1);
|
|
this->m_render->unknown_0014 = player->unknown_04D4;
|
|
this->m_render->unknown_0018[0] = player->unknown_0260;
|
|
this->m_render->unknown_0018[1] = player->unknown_0440;
|
|
this->m_render->unknown_0018[2] = static_cast<int>(player->render.previousAnimation);
|
|
this->m_render->unknown_0018[3] = player->unknown_0444;
|
|
this->m_render->unknown_0028 = player->unknown_0450;
|
|
this->m_render->unknown_002C = player->unknown_0454;
|
|
this->m_render->unknown_0030 = player->unknown_0458;
|
|
reinterpret_cast<SpriteDrawingPolicy*>(this->m_render)->SetRobe(player->unknown_049C);
|
|
this->m_render->unknown_0048 = player->Slot56();
|
|
this->m_render->unknown_004C = player->unknown_02CC;
|
|
this->m_render->unknown_0050 = player->Slot46();
|
|
*reinterpret_cast<float*>(&this->m_render->unknown_0054) = -5.0f;
|
|
this->m_render->unknown_0058 = 136.0f;
|
|
this->RefreshHeadgearLocations();
|
|
this->Invalidate();
|
|
}
|
|
|
|
// OFFSET: 0x007F3EF0
|
|
// FUNCTION: fn_09886
|
|
int UIPreviewEquipWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, std::intptr_t b, std::intptr_t c, std::intptr_t d) {
|
|
if (message == 6) {
|
|
switch (a) {
|
|
case 0xC9:
|
|
g_windowMgr.CloseWindow(0x126);
|
|
break;
|
|
case 0x16B:
|
|
this->SyncFromPlayer();
|
|
break;
|
|
case 0x180:
|
|
this->m_render->unknown_0040 = this->m_render->unknown_0040 + 1;
|
|
if (this->m_render->unknown_0040 > 7) {
|
|
this->m_render->unknown_0040 = 0;
|
|
}
|
|
this->Invalidate();
|
|
break;
|
|
case 0x181:
|
|
this->m_render->unknown_0040 = this->m_render->unknown_0040 - 1;
|
|
if (this->m_render->unknown_0040 < 0) {
|
|
this->m_render->unknown_0040 = 7;
|
|
}
|
|
this->Invalidate();
|
|
break;
|
|
}
|
|
} else if (message == 0x22) {
|
|
this->saved = reinterpret_cast<PreviewEquipWndInfo*>(a);
|
|
if (!this->saved->IsValid()) {
|
|
this->saved->Reset();
|
|
}
|
|
this->Move(this->saved->x, this->saved->y);
|
|
} else if (message == 0x17 && a != 0) {
|
|
const ITEM_INFO* item = reinterpret_cast<const ITEM_INFO*>(a);
|
|
CCharacterRender* render = this->m_render;
|
|
const int value = static_cast<int>(item->unknown_0070);
|
|
switch (item->unknown_0000[2]) {
|
|
case 0x100:
|
|
case 0x400:
|
|
render->unknown_002C = value;
|
|
render->unknown_0038 = 0x100;
|
|
if ((render->unknown_0034 & 0x100) != 0) {
|
|
render->unknown_0034 = 0;
|
|
render->unknown_0028 = 0;
|
|
}
|
|
if ((render->unknown_003C & 0x100) != 0) {
|
|
render->unknown_003C = 0;
|
|
render->unknown_0030 = 0;
|
|
}
|
|
break;
|
|
case 0x200:
|
|
case 0x800:
|
|
render->unknown_0030 = value;
|
|
render->unknown_003C = 0x200;
|
|
if ((render->unknown_0034 & 0x200) != 0) {
|
|
render->unknown_0034 = 0;
|
|
render->unknown_0028 = 0;
|
|
}
|
|
if ((render->unknown_0038 & 0x200) != 0) {
|
|
render->unknown_0038 = 0;
|
|
render->unknown_002C = 0;
|
|
}
|
|
break;
|
|
case 0x300:
|
|
case 0xC00:
|
|
render->unknown_002C = value;
|
|
render->unknown_0030 = 0;
|
|
render->unknown_0038 = 0x300;
|
|
render->unknown_003C = 0x300;
|
|
if (render->unknown_0034 != 1) {
|
|
render->unknown_0034 = 0;
|
|
render->unknown_0028 = 0;
|
|
}
|
|
break;
|
|
case 0x301:
|
|
case 0x1C00:
|
|
render->unknown_0028 = value;
|
|
render->unknown_002C = 0;
|
|
render->unknown_0030 = 0;
|
|
render->unknown_0034 = 0x301;
|
|
render->unknown_0038 = 0x301;
|
|
render->unknown_003C = 0x301;
|
|
break;
|
|
case 0x201:
|
|
case 0x1800:
|
|
render->unknown_0030 = value;
|
|
render->unknown_0028 = 0;
|
|
render->unknown_003C = 0x201;
|
|
render->unknown_0034 = 0x201;
|
|
if (render->unknown_0038 != 0x100) {
|
|
render->unknown_0038 = 0;
|
|
render->unknown_002C = 0;
|
|
}
|
|
break;
|
|
case 0x101:
|
|
case 0x1400:
|
|
render->unknown_002C = value;
|
|
render->unknown_0028 = 0;
|
|
render->unknown_0038 = 0x101;
|
|
render->unknown_0034 = 0x101;
|
|
if (render->unknown_003C != 0x200) {
|
|
render->unknown_003C = 0;
|
|
render->unknown_0030 = 0;
|
|
}
|
|
break;
|
|
case 1:
|
|
case 0x1000:
|
|
render->unknown_0028 = value;
|
|
render->unknown_0034 = 1;
|
|
if ((render->unknown_0038 & 1) != 0) {
|
|
render->unknown_0038 = 0;
|
|
render->unknown_002C = 0;
|
|
}
|
|
if ((render->unknown_003C & 1) != 0) {
|
|
render->unknown_003C = 0;
|
|
render->unknown_0030 = 0;
|
|
}
|
|
break;
|
|
case 4:
|
|
case 0x2000:
|
|
reinterpret_cast<SpriteDrawingPolicy*>(render)->SetRobe(value);
|
|
break;
|
|
}
|
|
}
|
|
|
|
return UIFrameWnd::SendMsg(sender, message, a, b, c, d);
|
|
}
|
|
|
|
// OFFSET: 0x007F43E0
|
|
// FUNCTION: fn_09887
|
|
void UIPreviewEquipWnd::RefreshHeadgearLocations() {
|
|
if (this->m_render->unknown_0028) {
|
|
ITEM_INFO equipped = g_session.GetItem17F0(0);
|
|
if (this->m_render->unknown_0028 == equipped.unknown_0070) {
|
|
this->m_render->unknown_0034 = 1;
|
|
if (equipped.unknown_0000[2] == 0x301) {
|
|
this->m_render->unknown_0034 = 0x301;
|
|
this->m_render->unknown_0038 = 0x301;
|
|
this->m_render->unknown_003C = 0x301;
|
|
}
|
|
}
|
|
|
|
ITEM_INFO costume = g_session.GetItem2B50(0);
|
|
if (this->m_render->unknown_0028 == costume.unknown_0070) {
|
|
this->m_render->unknown_0034 = 1;
|
|
if (costume.unknown_0000[2] == 0x1C00) {
|
|
this->m_render->unknown_0034 = 0x301;
|
|
this->m_render->unknown_0038 = 0x301;
|
|
this->m_render->unknown_003C = 0x301;
|
|
}
|
|
}
|
|
}
|
|
|
|
if (this->m_render->unknown_002C) {
|
|
ITEM_INFO equipped = g_session.GetItem17F0(8);
|
|
if (this->m_render->unknown_002C == equipped.unknown_0070) {
|
|
if (equipped.unknown_0000[2] == 0x100) {
|
|
this->m_render->unknown_0038 = 0x100;
|
|
}
|
|
|
|
if (equipped.unknown_0000[2] == 0x101) {
|
|
this->m_render->unknown_0038 = 0x101;
|
|
this->m_render->unknown_0034 = 0x101;
|
|
}
|
|
|
|
if (equipped.unknown_0000[2] == 0x300) {
|
|
this->m_render->unknown_0038 = 0x300;
|
|
this->m_render->unknown_003C = 0x300;
|
|
}
|
|
|
|
if (equipped.unknown_0000[2] == 0x301) {
|
|
this->m_render->unknown_0034 = 0x301;
|
|
this->m_render->unknown_0038 = 0x301;
|
|
this->m_render->unknown_003C = 0x301;
|
|
}
|
|
}
|
|
|
|
ITEM_INFO costume = g_session.GetItem2B50(8);
|
|
if (this->m_render->unknown_002C == costume.unknown_0070) {
|
|
if (costume.unknown_0000[2] == 0x400) {
|
|
this->m_render->unknown_0038 = 0x100;
|
|
}
|
|
|
|
if (costume.unknown_0000[2] == 0x1400) {
|
|
this->m_render->unknown_0038 = 0x101;
|
|
this->m_render->unknown_0034 = 0x101;
|
|
}
|
|
|
|
if (costume.unknown_0000[2] == 0xC00) {
|
|
this->m_render->unknown_0038 = 0x300;
|
|
this->m_render->unknown_003C = 0x300;
|
|
}
|
|
|
|
if (costume.unknown_0000[2] == 0x1C00) {
|
|
this->m_render->unknown_0034 = 0x301;
|
|
this->m_render->unknown_0038 = 0x301;
|
|
this->m_render->unknown_003C = 0x301;
|
|
}
|
|
}
|
|
}
|
|
|
|
if (this->m_render->unknown_0030) {
|
|
ITEM_INFO equipped = g_session.GetItem17F0(9);
|
|
if (this->m_render->unknown_0030 == equipped.unknown_0070) {
|
|
if (equipped.unknown_0000[2] == 0x200) {
|
|
this->m_render->unknown_003C = 0x200;
|
|
}
|
|
|
|
if (equipped.unknown_0000[2] == 0x201) {
|
|
this->m_render->unknown_003C = 0x201;
|
|
this->m_render->unknown_0034 = 0x201;
|
|
}
|
|
}
|
|
|
|
ITEM_INFO costume = g_session.GetItem2B50(9);
|
|
if (this->m_render->unknown_0030 == costume.unknown_0070) {
|
|
if (costume.unknown_0000[2] == 0x800) {
|
|
this->m_render->unknown_003C = 0x200;
|
|
}
|
|
|
|
if (costume.unknown_0000[2] == 0x1800) {
|
|
this->m_render->unknown_003C = 0x201;
|
|
this->m_render->unknown_0034 = 0x201;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
// OFFSET: 0x007F4830
|
|
// FUNCTION: fn_09888
|
|
void UIPreviewEquipWnd::Slot11() {
|
|
if (this->saved) {
|
|
this->saved->x = this->geometry.x;
|
|
this->saved->y = this->geometry.y;
|
|
}
|
|
}
|
|
|
|
// OFFSET: 0x007F3DB0
|
|
// FUNCTION: fn_09884
|
|
void UIPreviewEquipWnd::Slot19() {
|
|
this->Invalidate();
|
|
}
|