hard coded a few unlocks for test builds

This commit is contained in:
Eric Froemling 2020-04-05 17:38:03 -07:00
parent 2caa45284f
commit 1e0c6a7b4d
3 changed files with 5 additions and 7 deletions

View File

@ -34,7 +34,7 @@ NOTE: This file was autogenerated by gendummymodule; do not edit by hand.
""" """
# (hash we can use to see if this file is out of date) # (hash we can use to see if this file is out of date)
# SOURCES_HASH=3220898821583429869185544511076035538 # SOURCES_HASH=279775284016994471710131432123768789736
# I'm sorry Pylint. I know this file saddens you. Be strong. # I'm sorry Pylint. I know this file saddens you. Be strong.
# pylint: disable=useless-suppression # pylint: disable=useless-suppression

View File

@ -161,8 +161,7 @@ def have_pro() -> bool:
# Check our tickets-based pro upgrade and our two real-IAP based upgrades. # Check our tickets-based pro upgrade and our two real-IAP based upgrades.
return bool( return bool(
_ba.get_purchased('upgrades.pro') or _ba.get_purchased('static.pro') _ba.get_purchased('upgrades.pro') or _ba.get_purchased('static.pro')
or _ba.get_purchased('static.pro_sale') or _ba.get_purchased('static.pro_sale'))
or 'ballistica' + 'core' == 'ballisticacore')
def have_pro_options() -> bool: def have_pro_options() -> bool:
@ -176,10 +175,9 @@ def have_pro_options() -> bool:
# (which is generally just when we own pro), # (which is generally just when we own pro),
# or also if we've been grandfathered in or are using ballistica-core # or also if we've been grandfathered in or are using ballistica-core
# builds. # builds.
return bool( return have_pro() or bool(
_ba.get_account_misc_read_val_2('proOptionsUnlocked', False) _ba.get_account_misc_read_val_2('proOptionsUnlocked', False)
or _ba.app.config.get('lc14292', 0) > 1 or _ba.app.config.get('lc14292', 0) > 1)
or 'ballistica' + 'core' == 'ballisticacore')
def show_post_purchase_message() -> None: def show_post_purchase_message() -> None:

View File

@ -149,7 +149,7 @@ class MainMenuActivity(ba.Activity):
assert self.version.node assert self.version.node
ba.animate(self.version.node, 'opacity', {2.3: 0, 3.0: 1.0}) ba.animate(self.version.node, 'opacity', {2.3: 0, 3.0: 1.0})
# Throw in beta info. # Throw in test build info.
self.beta_info = self.beta_info_2 = None self.beta_info = self.beta_info_2 = None
if app.test_build and not app.kiosk_mode: if app.test_build and not app.kiosk_mode:
pos = (230, 125) if app.kiosk_mode else (230, 35) pos = (230, 125) if app.kiosk_mode else (230, 35)