Skip to content

Commit

Permalink
Hide unusable tools (#62)
Browse files Browse the repository at this point in the history
* unusable tools are disabled

* update android build template

* re install MAP
  • Loading branch information
thepromaper authored Nov 22, 2022
1 parent 3057c93 commit b2d92a3
Show file tree
Hide file tree
Showing 1,191 changed files with 1,189 additions and 101,764 deletions.
8 changes: 8 additions & 0 deletions Game.gd
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ extends Node
onready var _animation = $AnimationPlayer
onready var _finish_popup = $finish_game_popup

# shows what tools can be used with each body part.
export(Dictionary) var tools_per_type:Dictionary

export(bool) var hint_hided: bool = true
export(ButtonGroup) var _buttons: ButtonGroup
var _hints: Array
Expand All @@ -18,6 +21,11 @@ func _ready():
hide_hints(hint_hided)
# yield(get_tree(), "idle_frame")
_disable_buttons(true)

for b in _buttons.get_buttons():
if b.get_parent()!=$UI/scroll/tools:
continue
b.visible = tools_per_type[Global.type].has(b.name)

func hide_hints(hided: bool) -> void:
for h in _hints:
Expand Down
Binary file not shown.
Binary file removed android/build/.gradle/6.9.3/fileHashes/fileHashes.lock
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Binary file modified android/build/.gradle/7.2/executionHistory/executionHistory.lock
Binary file not shown.
Binary file modified android/build/.gradle/7.2/fileHashes/fileHashes.bin
Binary file not shown.
Binary file modified android/build/.gradle/7.2/fileHashes/fileHashes.lock
Binary file not shown.
Binary file removed android/build/.gradle/7.5.1/checksums/checksums.lock
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed android/build/.gradle/7.5.1/fileHashes/fileHashes.lock
Binary file not shown.
Empty file.
Binary file modified android/build/.gradle/buildOutputCleanup/buildOutputCleanup.lock
Binary file not shown.
4 changes: 2 additions & 2 deletions android/build/.gradle/buildOutputCleanup/cache.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#Tue Nov 01 23:58:12 CET 2022
gradle.version=7.5.1
#Sun Nov 20 17:57:20 COT 2022
gradle.version=7.2
Binary file modified android/build/.gradle/buildOutputCleanup/outputFiles.bin
Binary file not shown.
Binary file modified android/build/.gradle/checksums/checksums.lock
Binary file not shown.
Binary file modified android/build/.gradle/checksums/md5-checksums.bin
Binary file not shown.
Binary file modified android/build/.gradle/checksums/sha1-checksums.bin
Binary file not shown.
Binary file removed android/build/.gradle/file-system.probe
Binary file not shown.
3 changes: 0 additions & 3 deletions android/build/.idea/.gitignore

This file was deleted.

12 changes: 0 additions & 12 deletions android/build/.idea/gradle.xml

This file was deleted.

10 changes: 0 additions & 10 deletions android/build/.idea/misc.xml

This file was deleted.

6 changes: 0 additions & 6 deletions android/build/.idea/vcs.xml

This file was deleted.

34 changes: 29 additions & 5 deletions android/build/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@
<!-- Any tag in this line after android:icon will be erased when doing custom builds. -->
<!-- If you want to add tags manually, do before it. -->
<!-- WARNING: This should stay on a single line until the parsing code is improved. See GH-32414. -->
<!-- TODO: Remove the 'requestLegacyExternalStorage' attribute when https://github.com/godotengine/godot/issues/38913 is resolved -->
<application tools:replace="android:allowBackup,android:label" android:label="@string/godot_project_name_string" android:allowBackup="false" tools:ignore="GoogleAppIndexingWarning" android:requestLegacyExternalStorage="false" android:icon="@mipmap/icon">

<application android:label="@string/godot_project_name_string" android:allowBackup="false" android:isGame="true" android:hasFragileUserData="false" android:requestLegacyExternalStorage="false" tools:ignore="GoogleAppIndexingWarning" android:icon="@mipmap/icon" >
<!-- Records the version of the Godot editor used for building -->
<meta-data
android:name="org.godotengine.editor.version"
Expand All @@ -47,22 +45,48 @@
android:name="com.google.android.gms.ads.APPLICATION_ID"
android:value="ca-app-pub-7188592076082444~9384775166"/>

<!-- XR hand tracking metadata -->
<!-- This is modified by the exporter based on the selected xr mode. DO NOT CHANGE the values here. -->
<!-- Removed at export time if the xr mode is not VR or hand tracking is disabled. -->
<meta-data
android:name="xr_hand_tracking_metadata_name"
android:value="xr_hand_tracking_metadata_value"/>

<!-- XR hand tracking version -->
<!-- This is modified by the exporter based on the selected xr mode. DO NOT CHANGE the values here. -->
<!-- Removed at export time if the xr mode is not VR or hand tracking is disabled. -->
<meta-data
android:name="xr_hand_tracking_version_name"
android:value="xr_hand_tracking_version_value"/>

<!-- Supported Meta devices -->
<!-- This is removed by the exporter if the xr mode is not VR. -->
<meta-data
android:name="com.oculus.supportedDevices"
android:value="all" />

<activity
android:name=".GodotApp"
android:label="@string/godot_project_name_string"
android:theme="@style/GodotAppSplashTheme"
android:launchMode="singleTask"
android:excludeFromRecents="false"
android:exported="true"
android:screenOrientation="landscape"
android:configChanges="orientation|keyboardHidden|screenSize|smallestScreenSize|density|keyboard|navigation|screenLayout|uiMode"
android:resizeableActivity="false"
tools:ignore="UnusedAttribute" >

<!-- Focus awareness metadata is updated at export time if the user enables it in the 'Xr Features' section. -->
<meta-data android:name="com.oculus.vr.focusaware" android:value="false" />
<!-- Focus awareness metadata is removed at export time if the xr mode is not VR. -->
<meta-data android:name="com.oculus.vr.focusaware" android:value="true" />

<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />

<!-- Enable access to OpenXR on Oculus mobile devices, no-op on other Android
platforms. -->
<category android:name="com.oculus.intent.category.VR" />
</intent-filter>
</activity>

Expand Down
3 changes: 0 additions & 3 deletions android/build/assets/Game.gd.remap

This file was deleted.

Binary file removed android/build/assets/Game.gdc
Binary file not shown.
3 changes: 0 additions & 3 deletions android/build/assets/Global.gd.remap

This file was deleted.

Binary file removed android/build/assets/Global.gdc
Binary file not shown.
Binary file removed android/build/assets/_cl_
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
9 changes: 0 additions & 9 deletions android/build/assets/assets/styles/button_1_normal.tres

This file was deleted.

11 changes: 0 additions & 11 deletions android/build/assets/assets/styles/panel_1.tres

This file was deleted.

13 changes: 0 additions & 13 deletions android/build/assets/assets/styles/scroll_bar_remove.tres

This file was deleted.

This file was deleted.

62 changes: 0 additions & 62 deletions android/build/assets/assets/themes/default.tres

This file was deleted.

57 changes: 0 additions & 57 deletions android/build/assets/assets/themes/menu.tres

This file was deleted.

11 changes: 0 additions & 11 deletions android/build/assets/assets/themes/title.tres

This file was deleted.

Binary file not shown.
Binary file removed android/build/assets/assets/videos/cyst-sample.ogv
Binary file not shown.
Binary file not shown.
Binary file not shown.
3 changes: 0 additions & 3 deletions android/build/assets/bodyparts/BodyPart.gd.remap

This file was deleted.

Binary file removed android/build/assets/bodyparts/BodyPart.gdc
Binary file not shown.
3 changes: 0 additions & 3 deletions android/build/assets/bodyparts/ScaleFixer.gd.remap

This file was deleted.

Binary file removed android/build/assets/bodyparts/ScaleFixer.gdc
Binary file not shown.
7 changes: 0 additions & 7 deletions android/build/assets/bodyparts/ScaleFixer.tscn

This file was deleted.

This file was deleted.

Binary file not shown.
Loading

0 comments on commit b2d92a3

Please sign in to comment.