Skip to content

Commit

Permalink
Adrift test launch for Thunderword build 187
Browse files Browse the repository at this point in the history
  • Loading branch information
WakeRealityDev committed Mar 6, 2017
1 parent 6e1396a commit ad8491d
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Wake Reality's Thunderstrike
===============================
Thunderstrike is a quick and dirty example app / proof of concept of how to interface RemGlk JSON data exchange with the Thunderword app. It also demonstrates how to specify the data file you want and how to trigger Thunderword to launch the story.

Intended for Android Studio 2.2.3. Android 5.1 and newer devices should be used at this point in testing.
Intended for Android Studio 2.3 development environment. Android 5.1 and newer devices should be used at this point in testing. The free Android SDK Emulator works fine too (you will have to sideload Thunderworkd APK).

Quickstart:

Expand Down
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ android {
minSdkVersion 15
targetSdkVersion 25

versionCode 21
versionName "0.1.21"
versionCode 22
versionName "0.1.22"

testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,11 @@ public void launchStoryClick(final View view) {
// luna.gblorb
intent.putExtra("datapick", "9e2e2945f6f913cdce1ea86a1adfaee79a9ecb10afa2a55d039f8ea1f2cd6f31");
break;
case R.id.launchStoryPickNTextView0:
// The Evil Chicken of Doom by Mel S, year 2002
intent.putExtra("path", "/sdcard/myfiction/chicken.taf");
intent.setAction("interactivefiction.engine.adrift");
break;
}

// ToDo: A wise app would check that the data file exists before blindly sending it over to Thunderword.
Expand Down
13 changes: 12 additions & 1 deletion app/src/main/res/layout/activity_thunderword_remote_simple.xml
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,17 @@
android:layout_alignBaseline="@id/topStatusTextView0"
android:background="#00FF00"
/>
<TextView
android:id="@+id/launchStoryPickNTextView0"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="[N]"
android:layout_marginLeft="4dp"
android:onClick="launchStoryClick"
android:layout_toRightOf="@id/launchStoryPickMTextView0"
android:layout_alignBaseline="@id/topStatusTextView0"
android:background="#F0FF00"
/>

<TextView
android:id="@+id/closeThunderwordTextView0"
Expand All @@ -188,7 +199,7 @@
android:text="[Ω]"
android:layout_marginLeft="4dp"
android:onClick="closeThunderwordClick"
android:layout_toRightOf="@id/launchStoryPickMTextView0"
android:layout_toRightOf="@id/launchStoryPickNTextView0"
android:layout_alignBaseline="@id/topStatusTextView0"
android:background="#FFC1C7"
/>
Expand Down

0 comments on commit ad8491d

Please sign in to comment.