-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
187 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+1.24 KB
(100%)
...zations/PrincessGuide/ja.xcloc/Source Contents/PrincessGuide/en.lproj/Localizable.strings
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+1.24 KB
(100%)
...ns/PrincessGuide/zh-Hans.xcloc/Source Contents/PrincessGuide/en.lproj/Localizable.strings
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// | ||
// EnvironmentEffectAction.swift | ||
// PrincessGuide | ||
// | ||
// Created by zzk on 2024/7/2. | ||
// Copyright © 2024 zzk. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
class EnvironmentEffectAction: ActionParameter { | ||
|
||
var durationValues: [ActionValue] { | ||
return [ | ||
ActionValue(initial: String(actionValue1), perLevel: String(actionValue2), key: nil, startIndex: 1), | ||
] | ||
} | ||
|
||
override func localizedDetail(of level: Int, property: Property = .zero, style: CDSettingsViewController.Setting.ExpressionStyle = CDSettingsViewController.Setting.default.expressionStyle) -> String { | ||
let format = NSLocalizedString("Cast an environment effect of ID: %d for [%@]s.", comment: "") | ||
return String( | ||
format: format, | ||
actionDetail2, | ||
buildExpression(of: level, actionValues: durationValues, roundingRule: nil, style: style, property: property) | ||
) | ||
} | ||
|
||
} |
Oops, something went wrong.