Pre releases 0.0.1 (#20)

* update submodule, breast limit multiplier

* add type, add limit axis config

* update layout

* update submodule

* update workflow
This commit is contained in:
chinosk
2024-06-16 11:53:50 -05:00
committed by GitHub
parent f5a88a9127
commit 1855ae79cc
11 changed files with 432 additions and 48 deletions
+184 -24
View File
@@ -861,7 +861,7 @@
<TableRow
android:layout_width="match_parent"
android:layout_height="match_parent"
android:weightSum="2">
android:weightSum="1">
<com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"
@@ -883,29 +883,6 @@
android:text="@={`` + config.bRootWeight}" />
</com.google.android.material.textfield.TextInputLayout>
<com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"
android:layout_height="48dp"
android:layout_weight="1"
android:background="@android:color/transparent"
android:hint="@string/uselimit_0_1"
app:boxBackgroundColor="@android:color/transparent">
<com.google.android.material.textfield.TextInputEditText
android:layout_width="match_parent"
android:layout_height="match_parent"
android:ems="10"
android:inputType="number"
android:onTextChanged="@{(s, st, b, a) -> listener.onBUseLimitChanged(s, st, b, a)}"
android:paddingStart="0dp"
android:paddingEnd="0dp"
android:paddingBottom="0dp"
android:text="@={`` + config.bUseLimit}" />
</com.google.android.material.textfield.TextInputLayout>
</TableRow>
</TableLayout>
@@ -975,6 +952,189 @@
</TableRow>
<TableRow
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/table_row_border"
android:visibility="@{config.enableBreastParam ? android.view.View.VISIBLE : android.view.View.GONE}">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingLeft="10sp"
android:paddingRight="10sp"
android:paddingBottom="10sp"
android:orientation="vertical">
<com.google.android.material.switchmaterial.SwitchMaterial
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:checked="@={config.bUseLimit}"
android:onCheckedChanged="@{(view, value) -> listener.onBUseLimitChanged(value)}"
android:text="@string/uselimitmultiplier" />
<TableRow
android:layout_width="match_parent"
android:layout_height="match_parent"
android:visibility="@{config.bUseLimit ? android.view.View.VISIBLE : android.view.View.GONE}">
<TableLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<TableRow
android:layout_width="match_parent"
android:layout_height="match_parent"
android:weightSum="3">
<com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"
android:layout_height="48dp"
android:layout_weight="1"
android:background="@android:color/transparent"
android:hint="@string/axisx_x"
app:boxBackgroundColor="@android:color/transparent">
<com.google.android.material.textfield.TextInputEditText
android:layout_width="match_parent"
android:layout_height="match_parent"
android:ems="10"
android:inputType="numberDecimal|numberSigned"
android:onTextChanged="@{(s, st, b, a) -> listener.onBLimitXxChanged(s, st, b, a)}"
android:paddingStart="0dp"
android:paddingEnd="0dp"
android:paddingBottom="0dp"
android:text="@={`` + config.bLimitXx}" />
</com.google.android.material.textfield.TextInputLayout>
<com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"
android:layout_height="48dp"
android:layout_weight="1"
android:background="@android:color/transparent"
android:hint="@string/axisy_x"
app:boxBackgroundColor="@android:color/transparent">
<com.google.android.material.textfield.TextInputEditText
android:layout_width="match_parent"
android:layout_height="match_parent"
android:ems="10"
android:inputType="numberDecimal|numberSigned"
android:onTextChanged="@{(s, st, b, a) -> listener.onBLimitYxChanged(s, st, b, a)}"
android:paddingStart="0dp"
android:paddingEnd="0dp"
android:paddingBottom="0dp"
android:text="@={`` + config.bLimitYx}" />
</com.google.android.material.textfield.TextInputLayout>
<com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"
android:layout_height="48dp"
android:layout_weight="1"
android:background="@android:color/transparent"
android:hint="@string/axisz_x"
app:boxBackgroundColor="@android:color/transparent">
<com.google.android.material.textfield.TextInputEditText
android:layout_width="match_parent"
android:layout_height="match_parent"
android:ems="10"
android:inputType="numberDecimal|numberSigned"
android:onTextChanged="@{(s, st, b, a) -> listener.onBLimitZxChanged(s, st, b, a)}"
android:paddingStart="0dp"
android:paddingEnd="0dp"
android:paddingBottom="0dp"
android:text="@={`` + config.bLimitZx}" />
</com.google.android.material.textfield.TextInputLayout>
</TableRow>
<TableRow
android:layout_width="match_parent"
android:layout_height="match_parent"
android:weightSum="3">
<com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"
android:layout_height="48dp"
android:layout_weight="1"
android:background="@android:color/transparent"
android:hint="@string/axisx_y"
app:boxBackgroundColor="@android:color/transparent">
<com.google.android.material.textfield.TextInputEditText
android:layout_width="match_parent"
android:layout_height="match_parent"
android:ems="10"
android:inputType="numberDecimal|numberSigned"
android:onTextChanged="@{(s, st, b, a) -> listener.onBLimitXyChanged(s, st, b, a)}"
android:paddingStart="0dp"
android:paddingEnd="0dp"
android:paddingBottom="0dp"
android:text="@={`` + config.bLimitXy}" />
</com.google.android.material.textfield.TextInputLayout>
<com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"
android:layout_height="48dp"
android:layout_weight="1"
android:background="@android:color/transparent"
android:hint="@string/axisy_y"
app:boxBackgroundColor="@android:color/transparent">
<com.google.android.material.textfield.TextInputEditText
android:layout_width="match_parent"
android:layout_height="match_parent"
android:ems="10"
android:inputType="numberDecimal|numberSigned"
android:onTextChanged="@{(s, st, b, a) -> listener.onBLimitYyChanged(s, st, b, a)}"
android:paddingStart="0dp"
android:paddingEnd="0dp"
android:paddingBottom="0dp"
android:text="@={`` + config.bLimitYy}" />
</com.google.android.material.textfield.TextInputLayout>
<com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"
android:layout_height="48dp"
android:layout_weight="1"
android:background="@android:color/transparent"
android:hint="@string/axisz_y"
app:boxBackgroundColor="@android:color/transparent">
<com.google.android.material.textfield.TextInputEditText
android:layout_width="match_parent"
android:layout_height="match_parent"
android:ems="10"
android:inputType="numberDecimal|numberSigned"
android:onTextChanged="@{(s, st, b, a) -> listener.onBLimitZyChanged(s, st, b, a)}"
android:paddingStart="0dp"
android:paddingEnd="0dp"
android:paddingBottom="0dp"
android:text="@={`` + config.bLimitZy}" />
</com.google.android.material.textfield.TextInputLayout>
</TableRow>
</TableLayout>
</TableRow>
</LinearLayout>
</TableRow>
</TableLayout>
</TableRow>
+8 -1
View File
@@ -32,9 +32,16 @@
<string name="pendulumrange">钟摆范围 (PendulumRange)</string>
<string name="average">Average</string>
<string name="rootweight">RootWeight</string>
<string name="uselimit_0_1">限制范围 (0/1)</string>
<string name="uselimit_0_1">范围限制倍率 (0 为不限制, 1 为原版)</string>
<string name="usearmcorrection">使用手臂矫正</string>
<string name="isdirty">IsDirty</string>
<string name="usescale">应用缩放</string>
<string name="breast_scale">胸部缩放倍率</string>
<string name="uselimitmultiplier">启用范围限制倍率</string>
<string name="axisx_x">axisX.x</string>
<string name="axisy_x">axisY.x</string>
<string name="axisz_x">axisZ.x</string>
<string name="axisx_y">axisX.y</string>
<string name="axisy_y">axisY.y</string>
<string name="axisz_y">axisZ.y</string>
</resources>
+8 -1
View File
@@ -32,10 +32,17 @@
<string name="pendulumrange">Pendulum Range</string>
<string name="average">Average</string>
<string name="rootweight">Root Weight</string>
<string name="uselimit_0_1">Use Limit (0/1)</string>
<string name="uselimit_0_1">Limit Range Multiplier (0 is Unlimited)</string>
<string name="usearmcorrection">Use Arm Correction</string>
<string name="isdirty">IsDirty</string>
<string name="usescale">Use Breast Scale</string>
<string name="breast_scale">Breast Scale</string>
<string name="uselimitmultiplier">Use Limit Multiplier</string>
<string name="axisx_x">axisX.x</string>
<string name="axisy_x">axisY.x</string>
<string name="axisz_x">axisZ.x</string>
<string name="axisx_y">axisX.y</string>
<string name="axisy_y">axisY.y</string>
<string name="axisz_y">axisZ.y</string>
</resources>