Skip to content

Commit

Permalink
Respect button Selectable visibility state and fix Game Center entitl…
Browse files Browse the repository at this point in the history
…ements
  • Loading branch information
justindriggers committed Feb 19, 2024
1 parent 6dba29a commit 8938bf9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 3 additions & 0 deletions linguine/src/systems/ButtonSystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ void ButtonSystem::update(float deltaTime) {
auto drawable = entity.get<Drawable>();
drawable->renderable->setEnabled(button->visible);

auto selectable = entity.get<Selectable>();
selectable->renderable->setEnabled(button->visible);

if (button->enabled && entity.has<Pressed>()) {
auto pressed = entity.get<Pressed>();

Expand Down
5 changes: 2 additions & 3 deletions scampi/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,13 @@ add_executable(scampi
)

set(ENV{PRODUCT_BUNDLE_IDENTIFIER} "com.justindriggers.scampi")
set(APP_VERSION "0.0.3")
set(APP_VERSION "0.0.4")

set_xcode_property(scampi PRODUCT_BUNDLE_IDENTIFIER "$ENV{PRODUCT_BUNDLE_IDENTIFIER}" "All")
set_xcode_property(scampi CODE_SIGN_IDENTITY "$ENV{CODE_SIGN_IDENTITY}" "All")
set_xcode_property(scampi DEVELOPMENT_TEAM "$ENV{DEVELOPMENT_TEAM}" "All")
set_xcode_property(scampi ASSETCATALOG_COMPILER_APPICON_NAME "AppIcon" "All")
set_xcode_property(scampi CODE_SIGN_ENTITLEMENTS "${CMAKE_CURRENT_SOURCE_DIR}/scampi.entitlements" "All")

set_target_properties(scampi PROPERTIES
MACOSX_BUNDLE_INFO_PLIST "${CMAKE_CURRENT_SOURCE_DIR}/Info.plist.in"
Expand Down Expand Up @@ -84,6 +85,4 @@ if (DEFINED ENV{PROVISIONING_PROFILE_SPECIFIER})
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
)
add_dependencies(scampi-upload scampi-archive)
else()
set_xcode_property(scampi CODE_SIGN_ENTITLEMENTS "${CMAKE_CURRENT_SOURCE_DIR}/scampi.entitlements" "All")
endif()

0 comments on commit 8938bf9

Please sign in to comment.