mirror of
https://github.com/StarCitizenToolBox/app.git
synced 2026-02-06 15:10:20 +00:00
feat: unp4k data forge support
This commit is contained in:
@@ -124,6 +124,13 @@ class ToolsUIModel extends _$ToolsUIModel {
|
||||
const Icon(FontAwesomeIcons.fileZipper, size: 24),
|
||||
onTap: () => _unp4kc(context),
|
||||
),
|
||||
ToolsItemData(
|
||||
"dcb_viewer",
|
||||
S.current.tools_action_dcb_viewer,
|
||||
S.current.tools_action_dcb_viewer_info,
|
||||
const Icon(FluentIcons.database, size: 24),
|
||||
onTap: () => _dcbViewer(context),
|
||||
),
|
||||
]);
|
||||
|
||||
state = state.copyWith(items: items);
|
||||
@@ -702,6 +709,10 @@ class ToolsUIModel extends _$ToolsUIModel {
|
||||
context.push("/tools/unp4kc");
|
||||
}
|
||||
|
||||
Future<void> _dcbViewer(BuildContext context) async {
|
||||
context.push("/tools/dcb_viewer");
|
||||
}
|
||||
|
||||
static Future<void> rsiEnhance(BuildContext context, {bool showNotGameInstallMsg = false}) async {
|
||||
if ((await SystemHelper.getPID("RSI Launcher")).isNotEmpty) {
|
||||
if (!context.mounted) return;
|
||||
|
||||
@@ -41,7 +41,7 @@ final class ToolsUIModelProvider
|
||||
}
|
||||
}
|
||||
|
||||
String _$toolsUIModelHash() => r'17890d6d16d8e9d98c42d06d9e6c6165965bcee0';
|
||||
String _$toolsUIModelHash() => r'b0fefd36bd8f1e23fdd6123d487f73d78e40ad06';
|
||||
|
||||
abstract class _$ToolsUIModel extends $Notifier<ToolsUIState> {
|
||||
ToolsUIState build();
|
||||
|
||||
1124
lib/ui/tools/unp4kc/dcb_viewer_ui.dart
Normal file
1124
lib/ui/tools/unp4kc/dcb_viewer_ui.dart
Normal file
File diff suppressed because it is too large
Load Diff
@@ -359,7 +359,7 @@ class _FileListItem extends HookWidget {
|
||||
final dirName = item.name?.replaceAll(state.curPath.trim(), "") ?? "";
|
||||
model.changeDir(dirName);
|
||||
} else {
|
||||
model.openFile(item.name ?? "");
|
||||
model.openFile(item.name ?? "", context: context);
|
||||
}
|
||||
},
|
||||
icon: Padding(
|
||||
|
||||
Reference in New Issue
Block a user