mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-30 04:15:31 +00:00
[Client] Send PlayerInventory packet after completing a vendor trade
This commit is contained in:
parent
e97c9f72a2
commit
0ad9c99cf4
2 changed files with 28 additions and 7 deletions
|
@ -1,5 +1,12 @@
|
|||
#include "hud.hpp"
|
||||
|
||||
#include <MyGUI_RenderManager.h>
|
||||
#include <MyGUI_ProgressBar.h>
|
||||
#include <MyGUI_Button.h>
|
||||
#include <MyGUI_InputManager.h>
|
||||
#include <MyGUI_ImageBox.h>
|
||||
#include <MyGUI_ScrollView.h>
|
||||
|
||||
/*
|
||||
Start of tes3mp addition
|
||||
|
||||
|
@ -14,13 +21,6 @@
|
|||
End of tes3mp addition
|
||||
*/
|
||||
|
||||
#include <MyGUI_RenderManager.h>
|
||||
#include <MyGUI_ProgressBar.h>
|
||||
#include <MyGUI_Button.h>
|
||||
#include <MyGUI_InputManager.h>
|
||||
#include <MyGUI_ImageBox.h>
|
||||
#include <MyGUI_ScrollView.h>
|
||||
|
||||
#include <components/settings/settings.hpp>
|
||||
#include <components/openmw-mp/Log.hpp>
|
||||
|
||||
|
|
|
@ -6,6 +6,17 @@
|
|||
#include <MyGUI_InputManager.h>
|
||||
#include <MyGUI_ControllerManager.h>
|
||||
|
||||
/*
|
||||
Start of tes3mp addition
|
||||
|
||||
Include additional headers for multiplayer purposes
|
||||
*/
|
||||
#include "../mwmp/Main.hpp"
|
||||
#include "../mwmp/LocalPlayer.hpp"
|
||||
/*
|
||||
End of tes3mp addition
|
||||
*/
|
||||
|
||||
#include <components/widgets/numericeditbox.hpp>
|
||||
|
||||
#include "../mwbase/environment.hpp"
|
||||
|
@ -350,6 +361,16 @@ namespace MWGui
|
|||
mPtr.getClass().getCreatureStats(mPtr).getGoldPool() - mCurrentBalance );
|
||||
}
|
||||
|
||||
/*
|
||||
Start of tes3mp addition
|
||||
|
||||
Send an ID_PLAYER_INVENTORY packet every time a player completes a trade
|
||||
*/
|
||||
mwmp::Main::get().getLocalPlayer()->sendInventory();
|
||||
/*
|
||||
End of tes3mp addition
|
||||
*/
|
||||
|
||||
MWBase::Environment::get().getWindowManager()->getDialogueWindow()->addResponse(
|
||||
MWBase::Environment::get().getWorld()->getStore().get<ESM::GameSetting>().find("sBarterDialog5")->getString());
|
||||
|
||||
|
|
Loading…
Reference in a new issue