Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/develop' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
adam4813 committed Jun 1, 2016
2 parents ea5e7fa + 3acad1c commit 8a41e5e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 30 deletions.
11 changes: 10 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,15 @@ IF (NOT ${BUILD_DEPS_FIRST})
${LUA_LIBRARIES}
)

SET(TEC_SERVER_LIBS
${CMAKE_THREAD_LIBS_INIT}
${OSX_LIBRARIES}
${BULLET_LIBRARIES}
libprotobuf
VCOMPUTER_STATIC
${LUA_LIBRARIES}
)

ADD_LIBRARY(TEC_LIB STATIC
${TEC_LIB_SRC}
${TEC_INCLUDES}
Expand Down Expand Up @@ -337,7 +346,7 @@ IF (NOT ${BUILD_DEPS_FIRST})
TARGET_COMPILE_DEFINITIONS( "Server" PUBLIC _WIN32_WINNT=0x600 PROTOBUF_USE_DLLS )
ENDIF (WIN32)

TARGET_LINK_LIBRARIES("Server" TEC_LIB ${TEC_ALL_LIBS})
TARGET_LINK_LIBRARIES("Server" TEC_LIB ${TEC_SERVER_LIBS})

IF(BUILD_TESTS_TEC)
ADD_SUBDIRECTORY("tests")
Expand Down
31 changes: 2 additions & 29 deletions client/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -215,36 +215,9 @@ int main(int argc, char* argv[]) {
gui.ShowWindow("active_entity");
gui.AddWindowDrawFunction("main_menu", [&os, &connection, &gui] () {
if (ImGui::BeginMainMenuBar()) {
if (ImGui::BeginMenu("File")) {
if (ImGui::MenuItem("Load PROTO", "CTRL+L")) { }
if (ImGui::MenuItem("Reload PROTO", "CTRL+R")) {
//tec::ProtoLoad();
}
if (ImGui::MenuItem("Save PROTO", "CTRL+S")) {
tec::ProtoSave();
}
ImGui::Separator();
if (ImGui::MenuItem("Quit", "Alt+F4")) {
tec::ProtoSave();
os.Quit();
}
if (ImGui::MenuItem("Quit w/o Saving", "Alt+F4")) {
os.Quit();
}
ImGui::EndMenu();
}
if (ImGui::BeginMenu("Edit")) {
if (ImGui::MenuItem("Undo", "CTRL+Z")) { }
if (ImGui::MenuItem("Redo", "CTRL+Y", false, false)) { } // Disabled item
ImGui::Separator();
if (ImGui::MenuItem("Cut", "CTRL+X")) { }
if (ImGui::MenuItem("Copy", "CTRL+C")) { }
if (ImGui::MenuItem("Paste", "CTRL+V")) { }
ImGui::EndMenu();
}
if (ImGui::BeginMenu("Windows")) {
if (ImGui::BeginMenu("Connect")) {
bool visible = gui.IsWindowVisible("connect_window");
if (ImGui::MenuItem("Connect", "", visible)) {
if (ImGui::MenuItem("Connect to server...", "", visible)) {
if (visible) {
gui.HideWindow("connect_window");
}
Expand Down

0 comments on commit 8a41e5e

Please sign in to comment.