Batch #14943 by ragnarok-clanker: no function's compiled code changes; checked with 741 compiled unit(s), including every includer of Source/ActorPickNode.h, Source/Client/Browser/BrowserClientSite.h, Source/Client/Browser/BrowserPopupDispatch.h, Source/Client/Mode/CGameMode.h, Source/Client/Mode/CLoginMode.h, Source/Client/Mode/CMode.h, Source/Client/Mode/ModeDragState.h, Source/Client/Replay.h, Source/Client/Session.h, Source/Client/Stove/StoveMgr.h, Source/Contents/AchievementMgr.h, Source/Contents/ActorNameCard.h, Source/Contents/Actors/CharacterRender.h, Source/Contents/Actors/EffectActors.h, Source/Contents/Actors/GameActor.h, Source/Contents/Actors/GrannyGameActor.h, Source/Contents/Actors/GroundScope.h, Source/Contents/Actors/Item.h, Source/Contents/Actors/Npc.h, Source/Contents/Actors/Pc.h, Source/Contents/Actors/RenderObjectState.h, Source/Contents/Actors/Skill.h, Source/Contents/AdventureGuideMgr.h, Source/Contents/Camera/Camera.h, Source/Contents/Camera/CameraState.h, Source/Contents/CashEmotionMgr.h, Source/Contents/Configuration/GameSettingsMgr.h, Source/Contents/EffectResourceSwitcher.h, Source/Contents/Effects/AMachineEffect.h, Source/Contents/Effects/AcidifiedThrow.h, Source/Contents/Effects/AxeBoomerang.h, Source/Contents/Effects/BlastForge.h, Source/Contents/Effects/CaneOfEvilEyeEffect.h, Source/Contents/Effects/CharacterParticleBundle.h, Source/Contents/Effects/CloudKillEffect.h, Source/Contents/Effects/Effect.h, Source/Contents/Effects/EffectActor.h, Source/Contents/Effects/EffectEmitter.h, Source/Contents/Effects/EffectMaker.h, Source/Contents/Effects/EffectPrimitiveState.h, Source/Contents/Effects/FuumaShouakuEffect.h, Source/Contents/Effects/GravityControlEffect.h, Source/Contents/Effects/HealSpEffect.h, Source/Contents/Effects/Level99Effect.h, Source/Contents/Effects/MapChainEffect.h, Source/Contents/Effects/MonsterSkillEffects.h, Source/Contents/Effects/MsgEffect.h, Source/Contents/Effects/NyanggrassEffect.h, Source/Contents/Effects/Particle.h, Source/Contents/Effects/PowderingEffect.h, Source/Contents/Effects/RagEffectState.h, Source/Contents/Effects/RectUpEffect.h, Source/Contents/Effects/ShadowExceedEffect.h, Source/Contents/Effects/SkillEffects.h, Source/Contents/Effects/SpriteParticle.h, Source/Contents/Effects/StormCannonEffect.h, Source/Contents/Effects/ThrowEffects.h, Source/Contents/EntryQueueMgr.h, Source/Contents/EquipmentResourceMgr.h, Source/Contents/FlyingShipRouteInfo.h, Source/Contents/Ground/GroundGeometry.h, Source/Contents/GuildInfo.h, Source/Contents/Items/ItemDescription.h, Source/Contents/Items/ItemInfo.h, Source/Contents/MapSkyMgr.h, Source/Contents/Messenger/MessengerWindows.h, Source/Contents/Models/ModelNode.h, Source/Contents/NavigationManager.h, Source/Contents/Party/AdventurerAgencyMgr.h, Source/Contents/RDamageVar.h, Source/Contents/RenewQuestMgr.h, Source/Contents/ReputeMgr.h, Source/Contents/RodexMailStore.h, Source/Contents/RouletteMgr.h, Source/Contents/Schedule/Schedule.h, Source/Contents/SignBoard/SignBoard.h, Source/Contents/Skills/ClientSkills.h, Source/Contents/Skills/PlayerSkillBundle.h, Source/Contents/Skills/SkillInfo.h, Source/Contents/SpriteLayerDrawing.h, Source/Contents/TipBoxTitles.h, Source/Contents/UserData/AccountLinkedUserDataMgr.h, Source/Contents/UserData/NormalItemSlots.h, Source/Contents/World/World.h, Source/Contents/WorldView/WorldViewData.h, Source/Render/Primitives/LightmappedPrimitive.h, Source/Render/Primitives/RenderPrimitive.h, Source/Render/Renderer.h, Source/Render/Textures/SpritePixels.h, Source/Render/Textures/Texture.h, Source/Resource/EZeffectResource.h, Source/Resource/Models/AnimatedModelResource.h, Source/Resource/Models/GrannyModelResource.h, Source/Resource/Sprites/ActionResource.h, Source/Resource/World/GroundResource.h, Source/Resource/World/WorldResource.h, Source/Resource/XmlNode.h, Source/UI/AdventureGuide/UIAdventureGuide.h, Source/UI/Buttons/UIBmpRadioBtn.h, Source/UI/Buttons/UIDescriptRace.h, Source/UI/Buttons/UIItemTagButton.h, Source/UI/Buttons/UISlotBmpButton.h, Source/UI/Buttons/UISpriteButton.h, Source/UI/Buttons/UITVTextButton.h, Source/UI/Buttons/UITextureButton.h, Source/UI/CashEmotion/UICashEmotionListWnd.h, Source/UI/CashEmotion/UICashEmotionPack.h, Source/UI/CashShop/UICashShopWnd.h, Source/UI/Chat/UIChatRoomMakeWnd.h, Source/UI/Chat/UIChatRoomTitle.h, Source/UI/Chat/UINewChatWnd.h, Source/UI/Chat/UISubChatHisWnd.h, Source/UI/Chat/UISubChatMiniWnd.h, Source/UI/Chat/UIWhisperWnd.h, Source/UI/Clan/UIClanWnd.h, Source/UI/Dialogs/UIBookWnd.h, Source/UI/Dialogs/UIChooseWarpWnd.h, Source/UI/Dialogs/UIMenuWnd.h, Source/UI/Dialogs/UIMiniMapWnd.h, Source/UI/Dialogs/UIMinimapZoomWnd.h, Source/UI/Dialogs/UINpcEditDialogWnd.h, Source/UI/Dialogs/UIPasswordWnd.h, Source/UI/Dialogs/UISayDialogWnd.h, Source/UI/Dialogs/UISelectCartWnd.h, Source/UI/Dialogs/UITipboxWnd.h, Source/UI/Edit/UIEditBoxEx.h, Source/UI/Edit/UIEditCtrl.h, Source/UI/Edit/UIEditCtrl_Currency.h, Source/UI/Edit/UIItemTagCtrl.h, Source/UI/Enchant/EnchantUI.h, Source/UI/Exchange/UIExchangeUI.h, Source/UI/FrameSkin.h, Source/UI/GameSettings/GameSettingsUI.h, Source/UI/Gauges/UIPcGage.h, Source/UI/Guild/UIGuildHelperWnd.h, Source/UI/Guild/UIGuildWnd.h, Source/UI/Guild/UIGuild_Storage_Log.h, Source/UI/Item/UIEquipmentPropertiesWnd.h, Source/UI/Item/UIItemBaseWnd.h, Source/UI/Item/UIItemPurchaseWnd.h, Source/UI/Item/UIItemSellWnd2.h, Source/UI/Item/UIItemShopWnd.h, Source/UI/Item/UIItemShopWnd2.h, Source/UI/Item/UIItemStoreFindWnd.h, Source/UI/Item/UIItemStoreSubWnd.h, Source/UI/Item/UIItemStoreWnd.h, Source/UI/Item/UIItemWnd.h, Source/UI/Item/UIMerchantItemLogWnd.h, Source/UI/Item/UIParaItemShopWnd.h, Source/UI/Items/UICardItemIllustWnd.h, Source/UI/Items/UIEquipWnd.h, Source/UI/Items/UIExchangeWnd.h, Source/UI/Items/UIGameItem.h, Source/UI/Items/UIItemCollectionWnd.h, Source/UI/Items/UIItemIdentifyWnd.h, Source/UI/Items/UIItemParamChangeDisplayWnd.h, Source/UI/Items/UISwapEquipmentWnd.h, Source/UI/Layout/WindowGeometry.h, Source/UI/Lists/UIChatHisBox.h, Source/UI/Lists/UIComboBoxV2Wnd.h, Source/UI/Lists/UIImgMenu.h, Source/UI/Lists/UIListBoxID.h, Source/UI/Lists/UIListBoxTemplate.h, Source/UI/Lists/UIMemberListBox.h, Source/UI/Lists/UITabControl.h, Source/UI/Lists/UITagListBox.h, Source/UI/Lists/UITreeView.h, Source/UI/Menu/UIMenuIconWnd.h, Source/UI/Navigation/UINavigationV4Wnd.h, Source/UI/ProbabilityTable/UIProbabilityTable.h, Source/UI/Quest/UIQuestDisplay.h, Source/UI/Quest/UIRenewQuestUI.h, Source/UI/Quest/UIRenewQuestWnd.h, Source/UI/Rodex/UIRodexComposeWnd.h, Source/UI/Rodex/UIRodexInboxWnd.h, Source/UI/RuneSystem/UIRuneSystemWindows.h, Source/UI/RuneSystem/UIRuneSystemWnd.h, Source/UI/Shop/UIMerchantItemMyShopWnd.h, Source/UI/Shop/UIMerchantItemPurchaseMSGWnd.h, Source/UI/Shop/UIMerchantItemPurchaseWnd.h, Source/UI/Shop/UIMerchantItemShopWnd.h, Source/UI/Shop/UIMerchantMirrorItemWnd.h, Source/UI/Shop/UIMerchantShopMakeWnd.h, Source/UI/Shop/UIMerchantShopTitle.h, Source/UI/Skill/UISkillDescribeWnd.h, Source/UI/Skill/UISkillListWnd.h, Source/UI/SkillDelayInfo/SkillDelayInfo.h, Source/UI/StylingShop/UIStylingShopWnd.h, Source/UI/Text/CreateLineInfo.h, Source/UI/Text/UIAchWnd.h, Source/UI/Text/UIBalloonText.h, Source/UI/Text/UINameBalloonText.h, Source/UI/Text/UIStaticTextControl.h, Source/UI/Text/UIString.h, Source/UI/Text/UITextViewerControl.h, Source/UI/UIBarGraph.h, Source/UI/UIBartermarketWnd.h, Source/UI/UIChangeMaterialWnd.h, Source/UI/UIGradeEnchantWnd.h, Source/UI/UILapineScrollBar.h, Source/UI/UIMacroBlackListCheckWnd.h, Source/UI/UIMacroDetectorWnd.h, Source/UI/UIMacroReport.h, Source/UI/UIMacroUserInfoWnd.h, Source/UI/UIPreviewEquipWnd.h, Source/UI/UIRefiningWnd.h, Source/UI/UIScrollWnd.h, Source/UI/UISlotBitmap.h, Source/UI/Window/FuncDrawWNDChar.h, Source/UI/Window/UIBattleMsgOptionWnd.h, Source/UI/Window/UIChatRoomWnd.h, Source/UI/Window/UICollectionSystemWnd.h, Source/UI/Window/UIControl.h, Source/UI/Window/UIHomunInfoWnd.h, Source/UI/Window/UIHotKeyWnd.h, Source/UI/Window/UIJobListWnd.h, Source/UI/Window/UILoginOTPWnd.h, Source/UI/Window/UILoginWnd.h, Source/UI/Window/UIMakeCharWnd.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/UINoticeWnd.h, Source/UI/Window/UIPetInfoWnd.h, Source/UI/Window/UIRegisterMgr.h, Source/UI/Window/UIRoMapWnd.h, Source/UI/Window/UIRodexContentsWnd.h, Source/UI/Window/UISecondCostumeWnd.h, Source/UI/Window/UISeekPartyMBWnd.h, Source/UI/Window/UISeekPartyWnd.h, Source/UI/Window/UISelCharForUServerWnd.h, Source/UI/Window/UISerachStoreInfoWnd.h, Source/UI/Window/UITransMenuWnd.h, Source/UI/Window/UIWindow.h, Source/UI/Window/UIWindowMgr.h, Source/UI/Window/UIWindowMgr.inl, Source/Utility/Lexicon/LexiconSerializer.h.
444 lines
14 KiB
C++
444 lines
14 KiB
C++
#include "UI/Guild/UIGuildHelperWnd.h"
|
|
#include "Client/Mode/ModeMessage.h"
|
|
#include "UI/Window/WindowId.h"
|
|
#include "UI/Window/UIEnums.h"
|
|
#include "Client/Mode/CMode.h"
|
|
#include "Client/Mode/ModeMgr.h"
|
|
#include "Contents/MessageTable.h"
|
|
#include "Contents/UserData/NormalItemSlots.h"
|
|
#include "UI/Buttons/UIBitmapButton.h"
|
|
#include "UI/Buttons/UIButton.h"
|
|
#include "UI/Edit/UIEditCtrl.h"
|
|
#include "UI/Window/InputFocus.h"
|
|
#include "UI/Window/UIWindowMgr.h"
|
|
#include "UI/Window/WindowManagerWindows.h"
|
|
#include "UI/Text/UIStaticText.h"
|
|
#include "Contents/GuildTip.h"
|
|
#include "Resource/ResourceMgr.h"
|
|
#include "Resource/SkinPalette.h"
|
|
#include "UI/Text/UITextViewer.h"
|
|
|
|
#include "Resource/MSGSTRINGID.h"
|
|
#include <mbstring.h>
|
|
#include <string>
|
|
#include <windows.h>
|
|
#include <timeapi.h>
|
|
|
|
// GLOBAL: gl_24878
|
|
static const std::string s_itemLinkOpening = "<ITEML>";
|
|
|
|
// GLOBAL: gl_24879
|
|
static const std::string s_itemLinkClosing = "</ITEML>";
|
|
|
|
// GLOBAL: gl_25120
|
|
CGuildTip g_guildTip;
|
|
|
|
// OFFSET: 0x00953960
|
|
// FUNCTION: fn_12996
|
|
UIGuildHelperWnd::UIGuildHelperWnd() : UIFrameWnd(0) {
|
|
}
|
|
|
|
// OFFSET: 0x00953810
|
|
// FUNCTION: fn_12993
|
|
UICreateGuildWnd::UICreateGuildWnd(int mode) : m_mode(mode) {
|
|
}
|
|
|
|
// OFFSET: 0x00953A90
|
|
// FUNCTION: fn_12998
|
|
UIGuildLeaveReasonDescWnd::UIGuildLeaveReasonDescWnd()
|
|
: UIFrameWnd(0), m_reasonEdit(nullptr), m_reasonText(nullptr) {
|
|
}
|
|
|
|
// OFFSET: 0x00953880
|
|
// FUNCTION: fn_12994
|
|
UIGuildBanReasonDescWnd::UIGuildBanReasonDescWnd() {
|
|
}
|
|
|
|
// OFFSET: 0x0095DB20
|
|
// FUNCTION: fn_13071
|
|
void UIGuildHelperWnd::Paint() {
|
|
this->DrawTitleBar(true, LookupMessage(MSI_GUILD_HELPER), 0);
|
|
this->DrawPanelBackground(17, 0, "");
|
|
this->DrawButtonBar(2, 0, 1);
|
|
this->DrawTextAt(15, 32, LookupMessage(MSI_NO_GUILD_CURRENTLY_PARTICIPATED_IN), 0, 0, 12, 0, 0, 0);
|
|
}
|
|
|
|
// OFFSET: 0x0095FCB0
|
|
// FUNCTION: fn_13084
|
|
void UIGuildHelperWnd::OnLBtnDown(int x, int y) {
|
|
if (y < 17) {
|
|
UIFrameWnd::OnLBtnDown(x, y);
|
|
if (UIWindow* window = g_windowMgr.createGuildWnd) {
|
|
window->geometry.targetAlpha = 128;
|
|
window->geometry.alphaStart = timeGetTime();
|
|
}
|
|
}
|
|
}
|
|
|
|
// OFFSET: 0x00960130
|
|
// FUNCTION: fn_13095
|
|
void UIGuildHelperWnd::OnLBtnUp(int x, int y) {
|
|
UIFrameWnd::OnLBtnUp(x, y);
|
|
if (UIWindow* window = g_windowMgr.createGuildWnd) {
|
|
window->geometry.targetAlpha = 255;
|
|
window->geometry.alphaStart = timeGetTime();
|
|
}
|
|
}
|
|
|
|
// OFFSET: 0x009601D0
|
|
// FUNCTION: fn_13098
|
|
void UIGuildHelperWnd::OnMouseMove(int x, int y) {
|
|
UIFrameWnd::OnMouseMove(x, y);
|
|
if (g_windowMgr.createGuildWnd) {
|
|
x = 0;
|
|
y = 0;
|
|
this->ToScreen(x, y);
|
|
g_windowMgr.createGuildWnd->Move(x + 2 + this->geometry.width, y);
|
|
}
|
|
}
|
|
|
|
// OFFSET: 0x0095D5C0
|
|
// FUNCTION: fn_13069
|
|
void UICreateGuildWnd::Paint() {
|
|
this->DrawPanelBackground(17, 0, "");
|
|
this->DrawButtonBar(2, 0, 1);
|
|
const int text = this->m_mode == 0 ? 2077 : 2089;
|
|
this->DrawTitleBar(true, LookupMessage(text - 1), 0);
|
|
this->DrawTextAt(16, 23, LookupMessage(text), 0, 0, 12, 0, 0, 0);
|
|
}
|
|
|
|
// OFFSET: 0x0095FBE0
|
|
// FUNCTION: fn_13082
|
|
void UICreateGuildWnd::OnLBtnDown(int, int) {
|
|
}
|
|
|
|
// OFFSET: 0x009601C0
|
|
// FUNCTION: fn_13097
|
|
void UICreateGuildWnd::OnMouseMove(int, int) {
|
|
}
|
|
|
|
// OFFSET: 0x00960120
|
|
// FUNCTION: fn_13094
|
|
void UICreateGuildWnd::OnLBtnUp(int, int) {
|
|
}
|
|
|
|
// OFFSET: 0x0095F420
|
|
// FUNCTION: fn_13078
|
|
void UIGuildTipWnd::Paint() {
|
|
this->DrawTitleBar(true, LookupMessage(MSI_PARTY_RECRUIT_REFUSE_VOLUNTEER), 0);
|
|
this->DrawPanelBackground(17, 0, "");
|
|
this->DrawButtonBar(2, 0, 1);
|
|
}
|
|
|
|
// OFFSET: 0x0095E310
|
|
// FUNCTION: fn_13073
|
|
void UIGuildLeaveReasonDescWnd::Paint() {
|
|
this->DrawBorder(0, 0, 0, 0);
|
|
}
|
|
|
|
// OFFSET: 0x00965650
|
|
// FUNCTION: fn_13138
|
|
void UICreateGuildWnd::StoreInfo() {
|
|
}
|
|
|
|
// OFFSET: 0x00965660
|
|
// FUNCTION: fn_13139
|
|
void UIGuildHelperWnd::StoreInfo() {
|
|
if (this->m_saved) {
|
|
this->m_saved->x = this->geometry.x;
|
|
this->m_saved->y = this->geometry.y;
|
|
this->m_saved->width = this->geometry.width;
|
|
this->m_saved->height = this->geometry.height;
|
|
}
|
|
}
|
|
|
|
// OFFSET: 0x009612E0
|
|
// FUNCTION: fn_13123
|
|
int UICreateGuildWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a1, std::intptr_t a2, std::intptr_t a3, std::intptr_t a4) {
|
|
if (message != UM_COMMAND) {
|
|
return UIFrameWnd::SendMsg(sender, message, a1, a2, a3, a4);
|
|
}
|
|
|
|
switch (a1) {
|
|
case ID_OK: {
|
|
CMode* mode = g_modeMgr.GetGameMode();
|
|
std::string name = "";
|
|
name = this->m_nameEdit->Text();
|
|
this->m_nameEdit->SelectAll();
|
|
|
|
if (name.empty()) {
|
|
g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast<std::intptr_t>(LookupMessage(MSI_SHOW_MAPNAMETITLE)), 0xFF, 0, 0, 0);
|
|
} else if (_mbsstr(reinterpret_cast<const unsigned char*>(this->m_nameEdit->Text()), reinterpret_cast<const unsigned char*>(s_itemLinkOpening.c_str())) ||
|
|
_mbsstr(reinterpret_cast<const unsigned char*>(this->m_nameEdit->Text()), reinterpret_cast<const unsigned char*>(s_itemLinkClosing.c_str()))) {
|
|
g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast<std::intptr_t>(LookupMessage(MSI_STYLING_SHOP_OPEN_COUPON)), 0xFF, 0, 0, 0);
|
|
} else if (this->m_mode == 0) {
|
|
mode->SendMsg(MM_REQ_MAKE_GUILD, reinterpret_cast<int>(name.c_str()), 0, 0, 0);
|
|
} else {
|
|
mode->SendMsg(MM_REQ_DISORGANIZE_GUILD, reinterpret_cast<int>(name.c_str()), 0, 0, 0);
|
|
g_windowMgr.CloseWindow(WID_CREATEGUILDWND_MODE_1);
|
|
}
|
|
break;
|
|
}
|
|
case ID_CANCEL:
|
|
if (this->m_mode == 0) {
|
|
g_windowMgr.CloseWindow(WID_CREATEGUILDWND_MODE_0);
|
|
} else {
|
|
g_windowMgr.CloseWindow(WID_CREATEGUILDWND_MODE_1);
|
|
}
|
|
break;
|
|
}
|
|
|
|
return 0;
|
|
}
|
|
|
|
// OFFSET: 0x00961540
|
|
// FUNCTION: fn_13124
|
|
int UIGuildBanReasonDescWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a1, std::intptr_t a2, std::intptr_t a3, std::intptr_t a4) {
|
|
switch (message) {
|
|
case UM_COMMAND:
|
|
switch (a1) {
|
|
case ID_OK: {
|
|
g_windowMgr.CloseWindow(WID_GUILDBANREASONDESCWND);
|
|
CMode* mode = g_modeMgr.gameMode;
|
|
mode->SendMsg(MM_REQ_BAN_GUILD, reinterpret_cast<int>(&this->m_target), reinterpret_cast<int>(this->m_reasonEdit->Text()), 0, 0);
|
|
break;
|
|
}
|
|
case ID_CANCEL:
|
|
g_windowMgr.CloseWindow(WID_GUILDBANREASONDESCWND);
|
|
break;
|
|
}
|
|
return 0;
|
|
case UM_SETINFO: {
|
|
const GuildBanTarget* target = reinterpret_cast<const GuildBanTarget*>(a1);
|
|
this->m_target.guildId = target->guildId;
|
|
this->m_target.accountId = target->accountId;
|
|
this->m_target.characterId = target->characterId;
|
|
return 0;
|
|
}
|
|
default:
|
|
return UIFrameWnd::SendMsg(sender, message, a1, a2, a3, a4);
|
|
}
|
|
}
|
|
|
|
// OFFSET: 0x00961710
|
|
// FUNCTION: fn_13126
|
|
int UIGuildHelperWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a1, std::intptr_t a2, std::intptr_t a3, std::intptr_t a4) {
|
|
switch (message) {
|
|
case UM_COMMAND:
|
|
switch (a1) {
|
|
case ID_OK:
|
|
g_windowMgr.CloseWindow(WID_GUILDTIPWND);
|
|
g_windowMgr.CloseWindow(WID_CREATEGUILDWND_MODE_0);
|
|
g_windowMgr.CloseWindow(WID_GUILDHELPERWND);
|
|
break;
|
|
case ID_HELP:
|
|
if (!g_windowMgr.CloseWindow(WID_GUILDTIPWND)) {
|
|
g_windowMgr.EnsureWindow(WID_GUILDTIPWND);
|
|
}
|
|
break;
|
|
case 448:
|
|
if (!g_windowMgr.CloseWindow(WID_CREATEGUILDWND_MODE_0)) {
|
|
g_windowMgr.EnsureWindow(WID_CREATEGUILDWND_MODE_0);
|
|
if (g_windowMgr.createGuildWnd) {
|
|
int x = 0;
|
|
int y = 0;
|
|
this->ToScreen(x, y);
|
|
g_windowMgr.createGuildWnd->Move(x + 2 + this->geometry.width, y);
|
|
}
|
|
}
|
|
break;
|
|
}
|
|
return 0;
|
|
case UM_SETINFO:
|
|
this->m_saved = reinterpret_cast<GuildHelperWndInfo*>(a1);
|
|
if (!this->m_saved->IsValid()) {
|
|
this->m_saved->Reset();
|
|
}
|
|
this->SendMsg(nullptr, UM_REFRESHITEM, 0, 0, 0, 0);
|
|
this->Move(this->m_saved->x, this->m_saved->y);
|
|
return 0;
|
|
default:
|
|
return UIFrameWnd::SendMsg(sender, message, a1, a2, a3, a4);
|
|
}
|
|
}
|
|
|
|
// OFFSET: 0x00964C60
|
|
// FUNCTION: fn_13133
|
|
int UIGuildTipWnd::SendMsg(UIWindow*, int message, std::intptr_t a1, std::intptr_t, std::intptr_t, std::intptr_t) {
|
|
if (message == UM_COMMAND && a1 == ID_CLOSE) {
|
|
g_windowMgr.CloseWindow(WID_GUILDTIPWND);
|
|
}
|
|
|
|
return 0;
|
|
}
|
|
|
|
// OFFSET: 0x00958070
|
|
// FUNCTION: fn_13055
|
|
void UICreateGuildWnd::OnCreate(int, int) {
|
|
this->m_nameEdit = new UIEditCtrl();
|
|
this->m_nameEdit->SetSize(124, 20);
|
|
this->m_nameEdit->Move(13, 42);
|
|
this->m_nameEdit->maximum = 23;
|
|
this->m_nameEdit->Background(230, 230, 230);
|
|
this->AddChild(this->m_nameEdit);
|
|
|
|
{
|
|
const std::string prefix("유저인터페이스\\");
|
|
int positions[2][2] = {{this->geometry.width - 92, this->geometry.height - 24}, {this->geometry.width - 46, this->geometry.height - 24}};
|
|
const char* names[2][3] = {{"btn_ok", "btn_ok_a", "btn_ok_b"}, {"btn_cancel", "btn_cancel_a", "btn_cancel_b"}};
|
|
int ids[2] = {184, 185};
|
|
std::string name;
|
|
|
|
for (unsigned int i = 0; i < 2; ++i) {
|
|
auto* button = new UIBitmapButton();
|
|
name.assign(prefix);
|
|
name += names[i][0];
|
|
name += ".bmp";
|
|
button->SetBitmap(name.c_str(), 0, 0);
|
|
name.assign(prefix);
|
|
name += names[i][1];
|
|
name += ".bmp";
|
|
button->SetBitmap(name.c_str(), 1, 0);
|
|
name.assign(prefix);
|
|
name += names[i][2];
|
|
name += ".bmp";
|
|
button->SetBitmap(name.c_str(), 2, 0);
|
|
button->SetSize(button->BitmapWidth(), button->BitmapHeight());
|
|
button->Move(positions[i][0], positions[i][1]);
|
|
button->SetId(ids[i]);
|
|
this->AddChild(button);
|
|
}
|
|
}
|
|
|
|
g_windowMgr.SetFocus(this->m_nameEdit);
|
|
this->m_message0 = 184;
|
|
}
|
|
|
|
// OFFSET: 0x00958990
|
|
// FUNCTION: fn_13058
|
|
void UIGuildHelperWnd::OnCreate(int width, int height) {
|
|
const std::string prefix("유저인터페이스\\guild_helper\\");
|
|
const char* names[3][3] = {{"btn_help", "btn_help_a", "btn_help_b"}, {"create_guild", "create_guild_a", "create_guild_b"}, {"btn_ok", "btn_ok_a", "btn_ok_b"}};
|
|
int ids[3] = {343, 448, 184};
|
|
|
|
int x = 8;
|
|
std::string name;
|
|
for (int i = 0; i < 3; ++i) {
|
|
this->m_button = new UIBitmapButton();
|
|
name.assign(prefix);
|
|
name += names[i][0];
|
|
name += ".bmp";
|
|
this->m_button->SetBitmap(name.c_str(), 0, 0);
|
|
name.assign(prefix);
|
|
name += names[i][1];
|
|
name += ".bmp";
|
|
this->m_button->SetBitmap(name.c_str(), 1, 0);
|
|
name.assign(prefix);
|
|
name += names[i][2];
|
|
name += ".bmp";
|
|
this->m_button->SetBitmap(name.c_str(), 2, 0);
|
|
this->m_button->SetSize(this->m_button->BitmapWidth(), this->m_button->BitmapHeight());
|
|
this->m_button->Move(i < 2 ? x : width - 52, height - 24);
|
|
this->m_button->SetId(ids[i]);
|
|
this->AddChild(this->m_button);
|
|
x += 62;
|
|
}
|
|
}
|
|
|
|
// OFFSET: 0x00958700
|
|
// FUNCTION: fn_13056
|
|
void UIGuildBanReasonDescWnd::OnCreate(int width, int height) {
|
|
UIGuildLeaveReasonDescWnd::OnCreate(width, height);
|
|
|
|
if (this->m_reasonText != nullptr) {
|
|
this->m_reasonText->SetText(LookupMessage(MSI_PELASE_INPUT_WHY_EXPEL), 0);
|
|
}
|
|
}
|
|
|
|
// OFFSET: 0x009597E0
|
|
// FUNCTION: fn_13060
|
|
void UIGuildLeaveReasonDescWnd::OnCreate(int, int) {
|
|
this->m_reasonEdit = new UIEditCtrl();
|
|
this->m_reasonEdit->SetSize(this->geometry.width - 32, 16);
|
|
this->m_reasonEdit->Move(15, 22);
|
|
this->m_reasonEdit->maximum = 39;
|
|
this->m_reasonEdit->Background(232, 232, 232);
|
|
this->m_reasonEdit->SetText("");
|
|
this->AddChild(this->m_reasonEdit);
|
|
|
|
g_windowMgr.SetFocus(this->m_reasonEdit);
|
|
|
|
this->m_reasonText = new UIStaticText();
|
|
this->m_reasonText->SetSize(this->geometry.width - 30, 15);
|
|
this->m_reasonText->Move(15, 6);
|
|
this->m_reasonText->SetText(LookupMessage(MSI_PLEASE_INPUT_WHY_LEAVING), 0);
|
|
this->AddChild(this->m_reasonText);
|
|
|
|
{
|
|
const std::string prefix("유저인터페이스\\");
|
|
int positions[2][2] = {{this->geometry.width - 101, this->geometry.height - 32}, {this->geometry.width - 55, this->geometry.height - 32}};
|
|
const char* names[2][3] = {{"btn_ok", "btn_ok_a", "btn_ok_b"}, {"btn_cancel", "btn_cancel_a", "btn_cancel_b"}};
|
|
int ids[2] = {184, 185};
|
|
std::string name;
|
|
|
|
for (int i = 0; i < 2; ++i) {
|
|
auto* button = new UIBitmapButton();
|
|
name.assign(prefix);
|
|
name += names[i][0];
|
|
name += ".bmp";
|
|
button->SetBitmap(name.c_str(), 0, 0);
|
|
name.assign(prefix);
|
|
name += names[i][1];
|
|
name += ".bmp";
|
|
button->SetBitmap(name.c_str(), 1, 0);
|
|
name.assign(prefix);
|
|
name += names[i][2];
|
|
name += ".bmp";
|
|
button->SetBitmap(name.c_str(), 2, 0);
|
|
button->SetSize(button->BitmapWidth(), button->BitmapHeight());
|
|
button->Move(positions[i][0], positions[i][1]);
|
|
button->SetId(ids[i]);
|
|
this->AddChild(button);
|
|
}
|
|
}
|
|
|
|
this->m_message0 = 184;
|
|
}
|
|
|
|
// OFFSET: 0x0095CCD0
|
|
// FUNCTION: fn_13065
|
|
void UIGuildTipWnd::OnCreate(int width, int height) {
|
|
this->m_textViewer = new UITextViewer();
|
|
this->m_textViewer->Configure(10, 22, width - 15, height - 55, 0);
|
|
|
|
unsigned int red = 0;
|
|
unsigned int green = 0;
|
|
unsigned int blue = 0;
|
|
SkinPaletteChannels(ResourceMgr::Instance(), 2, 2, red, green, blue);
|
|
this->m_textViewer->backgroundColor = 0xFF000000 | (blue << 16) | (green << 8) | red;
|
|
this->m_textViewer->Invalidate();
|
|
this->AddChild(this->m_textViewer);
|
|
|
|
if (!g_guildTip.m_bTryLoading) {
|
|
g_guildTip.Load();
|
|
}
|
|
|
|
if (g_guildTip.m_tipList.size() != 0) {
|
|
std::vector<StringList> tipList = g_guildTip.GetTipList();
|
|
for (const auto& tip : tipList) {
|
|
for (unsigned int i = 0; i < tip.size(); ++i) {
|
|
this->m_textViewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast<std::intptr_t>(tip[i].c_str()), 50, 0, 0);
|
|
}
|
|
}
|
|
}
|
|
|
|
const std::string prefix("유저인터페이스\\");
|
|
this->m_closeButton = new UIBitmapButton();
|
|
this->m_closeButton->SetBitmap((prefix + "btn_close" + ".bmp").c_str(), 0, 0);
|
|
this->m_closeButton->SetBitmap((prefix + "btn_close_a" + ".bmp").c_str(), 1, 0);
|
|
this->m_closeButton->SetBitmap((prefix + "btn_close_b" + ".bmp").c_str(), 2, 0);
|
|
this->m_closeButton->SetSize(this->m_closeButton->BitmapWidth(), this->m_closeButton->BitmapHeight());
|
|
this->m_closeButton->Move(width - 50, height - 24);
|
|
this->m_closeButton->SetId(201);
|
|
this->AddChild(this->m_closeButton);
|
|
}
|