mirror of
https://github.com/SwingTheVine/Wplace-BlueMarble.git
synced 2026-04-21 11:11:57 +00:00
Renamed enable button to create button
This commit is contained in:
parent
9840004460
commit
221ef34551
6 changed files with 16 additions and 16 deletions
4
dist/BlueMarble.user.js
vendored
4
dist/BlueMarble.user.js
vendored
File diff suppressed because one or more lines are too long
|
|
@ -44,7 +44,7 @@
|
|||
<a href="https://github.com/SwingTheVine/Wplace-BlueMarble/blob/main/LICENSE.txt" target="_blank" rel="noopener noreferrer"><img alt="Software License: MPL-2.0" src="https://img.shields.io/badge/Software_License-MPL--2.0-slateblue?style=flat"></a>
|
||||
<a href="https://discord.gg/tpeBPy46hf" target="_blank" rel="noopener noreferrer"><img alt="Contact Me" src="https://img.shields.io/badge/Contact_Me-gray?style=flat&logo=Discord&logoColor=white&logoSize=auto&labelColor=cornflowerblue"></a>
|
||||
<a href="" target="_blank" rel="noopener noreferrer"><img alt="WakaTime" src="https://img.shields.io/badge/Coding_Time-91hrs_0mins-blue?style=flat&logo=wakatime&logoColor=black&logoSize=auto&labelColor=white"></a>
|
||||
<a href="" target="_blank" rel="noopener noreferrer"><img alt="Total Patches" src="https://img.shields.io/badge/Total_Patches-476-black?style=flat"></a>
|
||||
<a href="" target="_blank" rel="noopener noreferrer"><img alt="Total Patches" src="https://img.shields.io/badge/Total_Patches-479-black?style=flat"></a>
|
||||
<a href="" target="_blank" rel="noopener noreferrer"><img alt="Total Lines of Code" src="https://tokei.rs/b1/github/SwingTheVine/Wplace-BlueMarble?category=code"></a>
|
||||
<a href="" target="_blank" rel="noopener noreferrer"><img alt="Total Comments" src="https://tokei.rs/b1/github/SwingTheVine/Wplace-BlueMarble?category=comments"></a>
|
||||
<a href="" target="_blank" rel="noopener noreferrer"><img alt="Compression" src="https://img.shields.io/badge/Compression-73.73%25-blue"></a>
|
||||
|
|
|
|||
4
package-lock.json
generated
4
package-lock.json
generated
|
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "wplace-bluemarble",
|
||||
"version": "0.72.21",
|
||||
"version": "0.73.3",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "wplace-bluemarble",
|
||||
"version": "0.72.21",
|
||||
"version": "0.73.3",
|
||||
"devDependencies": {
|
||||
"esbuild": "^0.25.0",
|
||||
"terser": "^5.43.1"
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "wplace-bluemarble",
|
||||
"version": "0.73.0",
|
||||
"version": "0.73.3",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"build": "node build/build.js",
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
// ==UserScript==
|
||||
// @name Blue Marble
|
||||
// @namespace https://github.com/SwingTheVine/
|
||||
// @version 0.73.0
|
||||
// @version 0.73.3
|
||||
// @description A userscript to automate and/or enhance the user experience on Wplace.live. Make sure to comply with the site's Terms of Service, and rules! This script is not affiliated with Wplace.live in any way, use at your own risk. This script is not affiliated with TamperMonkey. The author of this userscript is not responsible for any damages, issues, loss of data, or punishment that may occur as a result of using this script. This script is provided "as is" under the MPL-2.0 license. The "Blue Marble" icon is licensed under CC0 1.0 Universal (CC0 1.0) Public Domain Dedication. The image is owned by NASA.
|
||||
// @author SwingTheVine
|
||||
// @license MPL-2.0
|
||||
|
|
|
|||
18
src/main.js
18
src/main.js
|
|
@ -272,7 +272,7 @@ function buildOverlayMain() {
|
|||
const dragBar = document.querySelector('#bm-bar-drag');
|
||||
const coordsContainer = document.querySelector('#bm-contain-coords');
|
||||
const coordsButton = document.querySelector('#bm-button-coords');
|
||||
const enableButton = document.querySelector('#bm-button-enable');
|
||||
const createButton = document.querySelector('#bm-button-create');
|
||||
const coordInputs = document.querySelectorAll('#bm-contain-coords input');
|
||||
|
||||
// Pre-restore original dimensions when switching to maximized state
|
||||
|
|
@ -319,9 +319,9 @@ function buildOverlayMain() {
|
|||
coordsButton.style.display = 'none';
|
||||
}
|
||||
|
||||
// Hide enable/disable template button
|
||||
if (enableButton) {
|
||||
enableButton.style.display = 'none';
|
||||
// Hide create template button
|
||||
if (createButton) {
|
||||
createButton.style.display = 'none';
|
||||
}
|
||||
|
||||
// Hide all coordinate input fields individually (failsafe)
|
||||
|
|
@ -372,10 +372,10 @@ function buildOverlayMain() {
|
|||
coordsButton.style.display = '';
|
||||
}
|
||||
|
||||
// Restore enable button visibility and reset positioning
|
||||
if (enableButton) {
|
||||
enableButton.style.display = '';
|
||||
enableButton.style.marginTop = '';
|
||||
// Restore create button visibility and reset positioning
|
||||
if (createButton) {
|
||||
createButton.style.display = '';
|
||||
createButton.style.marginTop = '';
|
||||
}
|
||||
|
||||
// Restore all coordinate input fields
|
||||
|
|
@ -460,7 +460,7 @@ function buildOverlayMain() {
|
|||
.buildElement()
|
||||
.addInputFile({'id': 'bm-input-file-template', 'textContent': 'Upload Template', 'accept': 'image/png, image/jpeg, image/webp, image/bmp, image/gif'}).buildElement()
|
||||
.addDiv({'id': 'bm-contain-buttons-template'})
|
||||
.addButton({'id': 'bm-button-enable', 'textContent': 'Enable'}, (instance, button) => {
|
||||
.addButton({'id': 'bm-button-create', 'textContent': 'Create'}, (instance, button) => {
|
||||
button.onclick = () => {
|
||||
const input = document.querySelector('#bm-input-file-template');
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue