Skip to content

Commit

Permalink
fix missing
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurKun21 authored Aug 15, 2024
1 parent cb70568 commit fd21b1d
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ private fun AutoBattle.ExitReason.text(): String = when (this) {
AutoBattle.ExitReason.FirstClearRewards -> stringResource(R.string.first_clear_rewards)
AutoBattle.ExitReason.Paused -> stringResource(R.string.script_paused)
AutoBattle.ExitReason.StopAfterThisRun -> stringResource(R.string.stop_after_this_run)
AutoBattle.ExitReason.OutOfCommandSpells -> stringResource(id = R.string.p_stop_on_out_of_command_spell)
}

@Composable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import androidx.compose.runtime.getValue
import androidx.compose.ui.res.stringResource
import androidx.core.view.WindowCompat
import dagger.hilt.android.AndroidEntryPoint
import androidx.compose.runtime.collectAsState
import io.github.fate_grand_automata.R
import io.github.fate_grand_automata.scripts.models.ServantTarget
import io.github.fate_grand_automata.scripts.models.Skill
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ fun SkillMakerCommandSpells(
verticalAlignment = Alignment.CenterVertically
) {
Skill.CommandSpell.list.forEach {
SkillButton(
CommandSpellButton(
skill = it,
color = colorResource(R.color.colorCommandSpell)
) {
Expand All @@ -60,7 +60,7 @@ fun SkillMakerCommandSpells(
}

@Composable
fun RowScope.SkillButton(
private fun RowScope.CommandSpellButton(
skill: Skill,
color: Color,
onClick: () -> Unit
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ sealed class SkillMakerEntry {

is AutoSkillAction.ServantSkill -> toString(action.skill, action.targets)
is AutoSkillAction.MasterSkill -> toString(action.skill, action.target)
is AutoSkillAction.CommandSpell -> toString(action.skill, action.target)
is AutoSkillAction.TargetEnemy -> "t${action.enemy.autoSkillCode}"
is AutoSkillAction.OrderChange -> "x${action.starting.autoSkillCode}${action.sub.autoSkillCode}"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ private fun TestSkillMaker(
showKukulkan: Boolean = false,
showSpaceIshtar: Boolean = false,
showMelusine: Boolean = showEmiya
showTargetNone: Boolean = false
) {
FGATheme {
SkillMakerTarget(
Expand All @@ -140,7 +141,8 @@ private fun TestSkillMaker(
showKukulkan = showKukulkan,
onKukulkan = {},
showMelusine = showMelusine,
onMelusine = {}
onMelusine = {},
showTargetNone = showTargetNone
)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import kotlinx.coroutines.flow.map
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.SharingStarted
import kotlinx.coroutines.flow.stateIn
import androidx.lifecycle.viewModelScope
import javax.inject.Inject

@HiltViewModel
Expand Down

0 comments on commit fd21b1d

Please sign in to comment.