mirror of
https://github.com/JannisX11/blockbench.git
synced 2024-11-27 04:21:46 +08:00
Add setting for always showing splash art
This commit is contained in:
parent
637fa66e2e
commit
4fd20c310c
@ -384,6 +384,7 @@ const Settings = {
|
||||
new Setting('status_bar_modifier_keys', {category: 'interface', value: true, condition: !Blockbench.isTouch, onChange(value) {
|
||||
Interface.status_bar.vue.show_modifier_keys = value;
|
||||
}});
|
||||
new Setting('always_show_splash_art',{category: 'interface', value: true});
|
||||
new Setting('origin_size', {category: 'interface', value: 10, type: 'number', min: 2, max: 40});
|
||||
new Setting('control_size', {category: 'interface', value: 10, type: 'number', min: 2, max: 40});
|
||||
new Setting('motion_trails', {category: 'interface', value: true, onChange() {
|
||||
|
@ -431,19 +431,21 @@ onVueSetup(function() {
|
||||
if (settings.streamer_mode.value) {
|
||||
updateStreamerModeNotification()
|
||||
}
|
||||
addStartScreenSection('splash_screen', {
|
||||
"text_color": '#000000',
|
||||
"graphic": {
|
||||
"type": "image",
|
||||
"source": "./assets/splash_art.png?46",
|
||||
"width": 1000,
|
||||
"aspect_ratio": "64/27",
|
||||
"description": "Splash Art by [Wacky](https://twitter.com/wackyblocks)",
|
||||
"text_color": '#cfcfcf'
|
||||
if (Blockbench.hasFlag('after_update') || settings.always_show_splash_art.value) {
|
||||
addStartScreenSection('splash_screen', {
|
||||
"text_color": '#000000',
|
||||
"graphic": {
|
||||
"type": "image",
|
||||
"source": "./assets/splash_art.png?46",
|
||||
"width": 1000,
|
||||
"aspect_ratio": "64/27",
|
||||
"description": "Splash Art by [Wacky](https://twitter.com/wackyblocks)",
|
||||
"text_color": '#cfcfcf'
|
||||
}
|
||||
})
|
||||
if (!Blockbench.hasFlag('after_update')) {
|
||||
document.getElementById('start_screen').scrollTop = 100;
|
||||
}
|
||||
})
|
||||
if (!Blockbench.hasFlag('after_update')) {
|
||||
document.getElementById('start_screen').scrollTop = 100;
|
||||
}
|
||||
|
||||
//Backup Model
|
||||
@ -453,7 +455,7 @@ onVueSetup(function() {
|
||||
let section = addStartScreenSection({
|
||||
color: 'var(--color-back)',
|
||||
graphic: {type: 'icon', icon: 'fa-archive'},
|
||||
insert_after: 'splash_screen',
|
||||
insert_before: 'start_files',
|
||||
text: [
|
||||
{type: 'h2', text: tl('message.recover_backup.title')},
|
||||
{text: tl('message.recover_backup.message')},
|
||||
|
@ -757,6 +757,8 @@
|
||||
"settings.mobile_panel_side.desc": "Select which side of the screen panels are displayed on when using Blockbench on in landscape orientation",
|
||||
"settings.status_bar_modifier_keys": "Suggest Modifier Keys in Status Bar",
|
||||
"settings.status_bar_modifier_keys.desc": "Display context aware suggested modifier keys in the status bar",
|
||||
"settings.always_show_splash_art": "Always Show Splash Art",
|
||||
"settings.always_show_splash_art.desc": "Always display the splash art on the start screen",
|
||||
"settings.origin_size": "Pivot Marker",
|
||||
"settings.origin_size.desc": "Size of the pivot point marker",
|
||||
"settings.control_size": "Transform Gizmo Size",
|
||||
|
Loading…
Reference in New Issue
Block a user