Merge branch 'master' into Inventory
This commit is contained in:
+11
-5
@@ -4,9 +4,15 @@ project (MCServer)
|
||||
|
||||
include_directories ("${PROJECT_SOURCE_DIR}/../")
|
||||
|
||||
file(GLOB SOURCE
|
||||
"*.cpp"
|
||||
"*.h"
|
||||
)
|
||||
SET (SRCS
|
||||
SlotArea.cpp
|
||||
Window.cpp)
|
||||
|
||||
add_library(UI ${SOURCE})
|
||||
SET (HDRS
|
||||
SlotArea.h
|
||||
Window.h
|
||||
WindowOwner.h)
|
||||
|
||||
if(NOT MSVC)
|
||||
add_library(UI ${SRCS} ${HDRS})
|
||||
endif()
|
||||
|
||||
+2
-2
@@ -319,9 +319,9 @@ void cWindow::OwnerDestroyed()
|
||||
// Close window for each player. Note that the last one needs special handling
|
||||
while (m_OpenedBy.size() > 1)
|
||||
{
|
||||
(*m_OpenedBy.begin() )->CloseWindow();
|
||||
(*m_OpenedBy.begin())->CloseWindow();
|
||||
}
|
||||
(*m_OpenedBy.begin() )->CloseWindow();
|
||||
(*m_OpenedBy.begin())->CloseWindow();
|
||||
}
|
||||
|
||||
|
||||
|
||||
+2
-2
@@ -77,7 +77,7 @@ public:
|
||||
int GetWindowType(void) const { return m_WindowType; } // tolua_export
|
||||
|
||||
cWindowOwner * GetOwner(void) { return m_Owner; }
|
||||
void SetOwner( cWindowOwner * a_Owner ) { m_Owner = a_Owner; }
|
||||
void SetOwner( cWindowOwner * a_Owner) { m_Owner = a_Owner; }
|
||||
|
||||
/// Returns the total number of slots
|
||||
int GetNumSlots(void) const;
|
||||
@@ -134,7 +134,7 @@ public:
|
||||
// tolua_begin
|
||||
|
||||
const AString & GetWindowTitle() const { return m_WindowTitle; }
|
||||
void SetWindowTitle(const AString & a_WindowTitle ) { m_WindowTitle = a_WindowTitle; }
|
||||
void SetWindowTitle(const AString & a_WindowTitle) { m_WindowTitle = a_WindowTitle; }
|
||||
|
||||
/// Sends the UpdateWindowProperty (0x69) packet to all clients of the window
|
||||
virtual void SetProperty(int a_Property, int a_Value);
|
||||
|
||||
Reference in New Issue
Block a user