mirror of
https://github.com/jie65535/GrasscutterCommandGenerator.git
synced 2025-10-22 20:09:46 +08:00
Compare commits
30 Commits
v0.10.0-M2
...
v1.1.0
Author | SHA1 | Date | |
---|---|---|---|
6ccd828044 | |||
52b93619da | |||
cb69bf8502 | |||
![]() |
4a7d19af00 | ||
f46e63b189 | |||
![]() |
d9e420b226 | ||
92f1dc81d9 | |||
a189d26105 | |||
38e88d6ea5 | |||
f7f1452b5c | |||
ba25cd6e7c | |||
2f2c8e24b0 | |||
8eca0a728b | |||
2a3ba29b1d | |||
3defcbbdc1 | |||
e471253b12 | |||
0a0d33ae4a | |||
fb17ebe60b | |||
2f161a5586 | |||
d82b5b590e | |||
a36c376fc0 | |||
c4c543b0d4 | |||
182f71d4ca | |||
0b7347e118 | |||
e30a2f79cf | |||
94a8a490b3 | |||
68c42b16dd | |||
c089b7ac07 | |||
da7033395b | |||
![]() |
3264ed8de6 |
BIN
Doc/Screenshots/OpenCommand.gif
Normal file
BIN
Doc/Screenshots/OpenCommand.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 821 KiB |
798
LICENSE
798
LICENSE
@@ -1,201 +1,661 @@
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
GNU AFFERO GENERAL PUBLIC LICENSE
|
||||
Version 3, 19 November 2007
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
1. Definitions.
|
||||
Preamble
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
The GNU Affero General Public License is a free, copyleft license for
|
||||
software and other kinds of works, specifically designed to ensure
|
||||
cooperation with the community in the case of network server software.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
The licenses for most software and other practical works are designed
|
||||
to take away your freedom to share and change the works. By contrast,
|
||||
our General Public Licenses are intended to guarantee your freedom to
|
||||
share and change all versions of a program--to make sure it remains free
|
||||
software for all its users.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
them if you wish), that you receive source code or can get it if you
|
||||
want it, that you can change the software or use pieces of it in new
|
||||
free programs, and that you know you can do these things.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
Developers that use our General Public Licenses protect your rights
|
||||
with two steps: (1) assert copyright on the software, and (2) offer
|
||||
you this License which gives you legal permission to copy, distribute
|
||||
and/or modify the software.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
A secondary benefit of defending all users' freedom is that
|
||||
improvements made in alternate versions of the program, if they
|
||||
receive widespread use, become available for other developers to
|
||||
incorporate. Many developers of free software are heartened and
|
||||
encouraged by the resulting cooperation. However, in the case of
|
||||
software used on network servers, this result may fail to come about.
|
||||
The GNU General Public License permits making a modified version and
|
||||
letting the public access it on a server without ever releasing its
|
||||
source code to the public.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
The GNU Affero General Public License is designed specifically to
|
||||
ensure that, in such cases, the modified source code becomes available
|
||||
to the community. It requires the operator of a network server to
|
||||
provide the source code of the modified version running there to the
|
||||
users of that server. Therefore, public use of a modified version, on
|
||||
a publicly accessible server, gives the public access to the source
|
||||
code of the modified version.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
An older license, called the Affero General Public License and
|
||||
published by Affero, was designed to accomplish similar goals. This is
|
||||
a different license, not a version of the Affero GPL, but Affero has
|
||||
released a new version of the Affero GPL which permits relicensing under
|
||||
this license.
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
TERMS AND CONDITIONS
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
0. Definitions.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
"This License" refers to version 3 of the GNU Affero General Public License.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
"Copyright" also means copyright-like laws that apply to other kinds of
|
||||
works, such as semiconductor masks.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
"The Program" refers to any copyrightable work licensed under this
|
||||
License. Each licensee is addressed as "you". "Licensees" and
|
||||
"recipients" may be individuals or organizations.
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
To "modify" a work means to copy from or adapt all or part of the work
|
||||
in a fashion requiring copyright permission, other than the making of an
|
||||
exact copy. The resulting work is called a "modified version" of the
|
||||
earlier work or a work "based on" the earlier work.
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
A "covered work" means either the unmodified Program or a work based
|
||||
on the Program.
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
To "propagate" a work means to do anything with it that, without
|
||||
permission, would make you directly or secondarily liable for
|
||||
infringement under applicable copyright law, except executing it on a
|
||||
computer or modifying a private copy. Propagation includes copying,
|
||||
distribution (with or without modification), making available to the
|
||||
public, and in some countries other activities as well.
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
To "convey" a work means any kind of propagation that enables other
|
||||
parties to make or receive copies. Mere interaction with a user through
|
||||
a computer network, with no transfer of a copy, is not conveying.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
An interactive user interface displays "Appropriate Legal Notices"
|
||||
to the extent that it includes a convenient and prominently visible
|
||||
feature that (1) displays an appropriate copyright notice, and (2)
|
||||
tells the user that there is no warranty for the work (except to the
|
||||
extent that warranties are provided), that licensees may convey the
|
||||
work under this License, and how to view a copy of this License. If
|
||||
the interface presents a list of user commands or options, such as a
|
||||
menu, a prominent item in the list meets this criterion.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
1. Source Code.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
The "source code" for a work means the preferred form of the work
|
||||
for making modifications to it. "Object code" means any non-source
|
||||
form of a work.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
A "Standard Interface" means an interface that either is an official
|
||||
standard defined by a recognized standards body, or, in the case of
|
||||
interfaces specified for a particular programming language, one that
|
||||
is widely used among developers working in that language.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
The "System Libraries" of an executable work include anything, other
|
||||
than the work as a whole, that (a) is included in the normal form of
|
||||
packaging a Major Component, but which is not part of that Major
|
||||
Component, and (b) serves only to enable use of the work with that
|
||||
Major Component, or to implement a Standard Interface for which an
|
||||
implementation is available to the public in source code form. A
|
||||
"Major Component", in this context, means a major essential component
|
||||
(kernel, window system, and so on) of the specific operating system
|
||||
(if any) on which the executable work runs, or a compiler used to
|
||||
produce the work, or an object code interpreter used to run it.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
The "Corresponding Source" for a work in object code form means all
|
||||
the source code needed to generate, install, and (for an executable
|
||||
work) run the object code and to modify the work, including scripts to
|
||||
control those activities. However, it does not include the work's
|
||||
System Libraries, or general-purpose tools or generally available free
|
||||
programs which are used unmodified in performing those activities but
|
||||
which are not part of the work. For example, Corresponding Source
|
||||
includes interface definition files associated with source files for
|
||||
the work, and the source code for shared libraries and dynamically
|
||||
linked subprograms that the work is specifically designed to require,
|
||||
such as by intimate data communication or control flow between those
|
||||
subprograms and other parts of the work.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
The Corresponding Source need not include anything that users
|
||||
can regenerate automatically from other parts of the Corresponding
|
||||
Source.
|
||||
|
||||
APPENDIX: How to apply the Apache License to your work.
|
||||
The Corresponding Source for a work in source code form is that
|
||||
same work.
|
||||
|
||||
To apply the Apache License to your work, attach the following
|
||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||
replaced with your own identifying information. (Don't include
|
||||
the brackets!) The text should be enclosed in the appropriate
|
||||
comment syntax for the file format. We also recommend that a
|
||||
file or class name and description of purpose be included on the
|
||||
same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
2. Basic Permissions.
|
||||
|
||||
Copyright 2022 jie65535
|
||||
All rights granted under this License are granted for the term of
|
||||
copyright on the Program, and are irrevocable provided the stated
|
||||
conditions are met. This License explicitly affirms your unlimited
|
||||
permission to run the unmodified Program. The output from running a
|
||||
covered work is covered by this License only if the output, given its
|
||||
content, constitutes a covered work. This License acknowledges your
|
||||
rights of fair use or other equivalent, as provided by copyright law.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
You may make, run and propagate covered works that you do not
|
||||
convey, without conditions so long as your license otherwise remains
|
||||
in force. You may convey covered works to others for the sole purpose
|
||||
of having them make modifications exclusively for you, or provide you
|
||||
with facilities for running those works, provided that you comply with
|
||||
the terms of this License in conveying all material for which you do
|
||||
not control copyright. Those thus making or running the covered works
|
||||
for you must do so exclusively on your behalf, under your direction
|
||||
and control, on terms that prohibit them from making any copies of
|
||||
your copyrighted material outside their relationship with you.
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
Conveying under any other circumstances is permitted solely under
|
||||
the conditions stated below. Sublicensing is not allowed; section 10
|
||||
makes it unnecessary.
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||
|
||||
No covered work shall be deemed part of an effective technological
|
||||
measure under any applicable law fulfilling obligations under article
|
||||
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
||||
similar laws prohibiting or restricting circumvention of such
|
||||
measures.
|
||||
|
||||
When you convey a covered work, you waive any legal power to forbid
|
||||
circumvention of technological measures to the extent such circumvention
|
||||
is effected by exercising rights under this License with respect to
|
||||
the covered work, and you disclaim any intention to limit operation or
|
||||
modification of the work as a means of enforcing, against the work's
|
||||
users, your or third parties' legal rights to forbid circumvention of
|
||||
technological measures.
|
||||
|
||||
4. Conveying Verbatim Copies.
|
||||
|
||||
You may convey verbatim copies of the Program's source code as you
|
||||
receive it, in any medium, provided that you conspicuously and
|
||||
appropriately publish on each copy an appropriate copyright notice;
|
||||
keep intact all notices stating that this License and any
|
||||
non-permissive terms added in accord with section 7 apply to the code;
|
||||
keep intact all notices of the absence of any warranty; and give all
|
||||
recipients a copy of this License along with the Program.
|
||||
|
||||
You may charge any price or no price for each copy that you convey,
|
||||
and you may offer support or warranty protection for a fee.
|
||||
|
||||
5. Conveying Modified Source Versions.
|
||||
|
||||
You may convey a work based on the Program, or the modifications to
|
||||
produce it from the Program, in the form of source code under the
|
||||
terms of section 4, provided that you also meet all of these conditions:
|
||||
|
||||
a) The work must carry prominent notices stating that you modified
|
||||
it, and giving a relevant date.
|
||||
|
||||
b) The work must carry prominent notices stating that it is
|
||||
released under this License and any conditions added under section
|
||||
7. This requirement modifies the requirement in section 4 to
|
||||
"keep intact all notices".
|
||||
|
||||
c) You must license the entire work, as a whole, under this
|
||||
License to anyone who comes into possession of a copy. This
|
||||
License will therefore apply, along with any applicable section 7
|
||||
additional terms, to the whole of the work, and all its parts,
|
||||
regardless of how they are packaged. This License gives no
|
||||
permission to license the work in any other way, but it does not
|
||||
invalidate such permission if you have separately received it.
|
||||
|
||||
d) If the work has interactive user interfaces, each must display
|
||||
Appropriate Legal Notices; however, if the Program has interactive
|
||||
interfaces that do not display Appropriate Legal Notices, your
|
||||
work need not make them do so.
|
||||
|
||||
A compilation of a covered work with other separate and independent
|
||||
works, which are not by their nature extensions of the covered work,
|
||||
and which are not combined with it such as to form a larger program,
|
||||
in or on a volume of a storage or distribution medium, is called an
|
||||
"aggregate" if the compilation and its resulting copyright are not
|
||||
used to limit the access or legal rights of the compilation's users
|
||||
beyond what the individual works permit. Inclusion of a covered work
|
||||
in an aggregate does not cause this License to apply to the other
|
||||
parts of the aggregate.
|
||||
|
||||
6. Conveying Non-Source Forms.
|
||||
|
||||
You may convey a covered work in object code form under the terms
|
||||
of sections 4 and 5, provided that you also convey the
|
||||
machine-readable Corresponding Source under the terms of this License,
|
||||
in one of these ways:
|
||||
|
||||
a) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by the
|
||||
Corresponding Source fixed on a durable physical medium
|
||||
customarily used for software interchange.
|
||||
|
||||
b) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by a
|
||||
written offer, valid for at least three years and valid for as
|
||||
long as you offer spare parts or customer support for that product
|
||||
model, to give anyone who possesses the object code either (1) a
|
||||
copy of the Corresponding Source for all the software in the
|
||||
product that is covered by this License, on a durable physical
|
||||
medium customarily used for software interchange, for a price no
|
||||
more than your reasonable cost of physically performing this
|
||||
conveying of source, or (2) access to copy the
|
||||
Corresponding Source from a network server at no charge.
|
||||
|
||||
c) Convey individual copies of the object code with a copy of the
|
||||
written offer to provide the Corresponding Source. This
|
||||
alternative is allowed only occasionally and noncommercially, and
|
||||
only if you received the object code with such an offer, in accord
|
||||
with subsection 6b.
|
||||
|
||||
d) Convey the object code by offering access from a designated
|
||||
place (gratis or for a charge), and offer equivalent access to the
|
||||
Corresponding Source in the same way through the same place at no
|
||||
further charge. You need not require recipients to copy the
|
||||
Corresponding Source along with the object code. If the place to
|
||||
copy the object code is a network server, the Corresponding Source
|
||||
may be on a different server (operated by you or a third party)
|
||||
that supports equivalent copying facilities, provided you maintain
|
||||
clear directions next to the object code saying where to find the
|
||||
Corresponding Source. Regardless of what server hosts the
|
||||
Corresponding Source, you remain obligated to ensure that it is
|
||||
available for as long as needed to satisfy these requirements.
|
||||
|
||||
e) Convey the object code using peer-to-peer transmission, provided
|
||||
you inform other peers where the object code and Corresponding
|
||||
Source of the work are being offered to the general public at no
|
||||
charge under subsection 6d.
|
||||
|
||||
A separable portion of the object code, whose source code is excluded
|
||||
from the Corresponding Source as a System Library, need not be
|
||||
included in conveying the object code work.
|
||||
|
||||
A "User Product" is either (1) a "consumer product", which means any
|
||||
tangible personal property which is normally used for personal, family,
|
||||
or household purposes, or (2) anything designed or sold for incorporation
|
||||
into a dwelling. In determining whether a product is a consumer product,
|
||||
doubtful cases shall be resolved in favor of coverage. For a particular
|
||||
product received by a particular user, "normally used" refers to a
|
||||
typical or common use of that class of product, regardless of the status
|
||||
of the particular user or of the way in which the particular user
|
||||
actually uses, or expects or is expected to use, the product. A product
|
||||
is a consumer product regardless of whether the product has substantial
|
||||
commercial, industrial or non-consumer uses, unless such uses represent
|
||||
the only significant mode of use of the product.
|
||||
|
||||
"Installation Information" for a User Product means any methods,
|
||||
procedures, authorization keys, or other information required to install
|
||||
and execute modified versions of a covered work in that User Product from
|
||||
a modified version of its Corresponding Source. The information must
|
||||
suffice to ensure that the continued functioning of the modified object
|
||||
code is in no case prevented or interfered with solely because
|
||||
modification has been made.
|
||||
|
||||
If you convey an object code work under this section in, or with, or
|
||||
specifically for use in, a User Product, and the conveying occurs as
|
||||
part of a transaction in which the right of possession and use of the
|
||||
User Product is transferred to the recipient in perpetuity or for a
|
||||
fixed term (regardless of how the transaction is characterized), the
|
||||
Corresponding Source conveyed under this section must be accompanied
|
||||
by the Installation Information. But this requirement does not apply
|
||||
if neither you nor any third party retains the ability to install
|
||||
modified object code on the User Product (for example, the work has
|
||||
been installed in ROM).
|
||||
|
||||
The requirement to provide Installation Information does not include a
|
||||
requirement to continue to provide support service, warranty, or updates
|
||||
for a work that has been modified or installed by the recipient, or for
|
||||
the User Product in which it has been modified or installed. Access to a
|
||||
network may be denied when the modification itself materially and
|
||||
adversely affects the operation of the network or violates the rules and
|
||||
protocols for communication across the network.
|
||||
|
||||
Corresponding Source conveyed, and Installation Information provided,
|
||||
in accord with this section must be in a format that is publicly
|
||||
documented (and with an implementation available to the public in
|
||||
source code form), and must require no special password or key for
|
||||
unpacking, reading or copying.
|
||||
|
||||
7. Additional Terms.
|
||||
|
||||
"Additional permissions" are terms that supplement the terms of this
|
||||
License by making exceptions from one or more of its conditions.
|
||||
Additional permissions that are applicable to the entire Program shall
|
||||
be treated as though they were included in this License, to the extent
|
||||
that they are valid under applicable law. If additional permissions
|
||||
apply only to part of the Program, that part may be used separately
|
||||
under those permissions, but the entire Program remains governed by
|
||||
this License without regard to the additional permissions.
|
||||
|
||||
When you convey a copy of a covered work, you may at your option
|
||||
remove any additional permissions from that copy, or from any part of
|
||||
it. (Additional permissions may be written to require their own
|
||||
removal in certain cases when you modify the work.) You may place
|
||||
additional permissions on material, added by you to a covered work,
|
||||
for which you have or can give appropriate copyright permission.
|
||||
|
||||
Notwithstanding any other provision of this License, for material you
|
||||
add to a covered work, you may (if authorized by the copyright holders of
|
||||
that material) supplement the terms of this License with terms:
|
||||
|
||||
a) Disclaiming warranty or limiting liability differently from the
|
||||
terms of sections 15 and 16 of this License; or
|
||||
|
||||
b) Requiring preservation of specified reasonable legal notices or
|
||||
author attributions in that material or in the Appropriate Legal
|
||||
Notices displayed by works containing it; or
|
||||
|
||||
c) Prohibiting misrepresentation of the origin of that material, or
|
||||
requiring that modified versions of such material be marked in
|
||||
reasonable ways as different from the original version; or
|
||||
|
||||
d) Limiting the use for publicity purposes of names of licensors or
|
||||
authors of the material; or
|
||||
|
||||
e) Declining to grant rights under trademark law for use of some
|
||||
trade names, trademarks, or service marks; or
|
||||
|
||||
f) Requiring indemnification of licensors and authors of that
|
||||
material by anyone who conveys the material (or modified versions of
|
||||
it) with contractual assumptions of liability to the recipient, for
|
||||
any liability that these contractual assumptions directly impose on
|
||||
those licensors and authors.
|
||||
|
||||
All other non-permissive additional terms are considered "further
|
||||
restrictions" within the meaning of section 10. If the Program as you
|
||||
received it, or any part of it, contains a notice stating that it is
|
||||
governed by this License along with a term that is a further
|
||||
restriction, you may remove that term. If a license document contains
|
||||
a further restriction but permits relicensing or conveying under this
|
||||
License, you may add to a covered work material governed by the terms
|
||||
of that license document, provided that the further restriction does
|
||||
not survive such relicensing or conveying.
|
||||
|
||||
If you add terms to a covered work in accord with this section, you
|
||||
must place, in the relevant source files, a statement of the
|
||||
additional terms that apply to those files, or a notice indicating
|
||||
where to find the applicable terms.
|
||||
|
||||
Additional terms, permissive or non-permissive, may be stated in the
|
||||
form of a separately written license, or stated as exceptions;
|
||||
the above requirements apply either way.
|
||||
|
||||
8. Termination.
|
||||
|
||||
You may not propagate or modify a covered work except as expressly
|
||||
provided under this License. Any attempt otherwise to propagate or
|
||||
modify it is void, and will automatically terminate your rights under
|
||||
this License (including any patent licenses granted under the third
|
||||
paragraph of section 11).
|
||||
|
||||
However, if you cease all violation of this License, then your
|
||||
license from a particular copyright holder is reinstated (a)
|
||||
provisionally, unless and until the copyright holder explicitly and
|
||||
finally terminates your license, and (b) permanently, if the copyright
|
||||
holder fails to notify you of the violation by some reasonable means
|
||||
prior to 60 days after the cessation.
|
||||
|
||||
Moreover, your license from a particular copyright holder is
|
||||
reinstated permanently if the copyright holder notifies you of the
|
||||
violation by some reasonable means, this is the first time you have
|
||||
received notice of violation of this License (for any work) from that
|
||||
copyright holder, and you cure the violation prior to 30 days after
|
||||
your receipt of the notice.
|
||||
|
||||
Termination of your rights under this section does not terminate the
|
||||
licenses of parties who have received copies or rights from you under
|
||||
this License. If your rights have been terminated and not permanently
|
||||
reinstated, you do not qualify to receive new licenses for the same
|
||||
material under section 10.
|
||||
|
||||
9. Acceptance Not Required for Having Copies.
|
||||
|
||||
You are not required to accept this License in order to receive or
|
||||
run a copy of the Program. Ancillary propagation of a covered work
|
||||
occurring solely as a consequence of using peer-to-peer transmission
|
||||
to receive a copy likewise does not require acceptance. However,
|
||||
nothing other than this License grants you permission to propagate or
|
||||
modify any covered work. These actions infringe copyright if you do
|
||||
not accept this License. Therefore, by modifying or propagating a
|
||||
covered work, you indicate your acceptance of this License to do so.
|
||||
|
||||
10. Automatic Licensing of Downstream Recipients.
|
||||
|
||||
Each time you convey a covered work, the recipient automatically
|
||||
receives a license from the original licensors, to run, modify and
|
||||
propagate that work, subject to this License. You are not responsible
|
||||
for enforcing compliance by third parties with this License.
|
||||
|
||||
An "entity transaction" is a transaction transferring control of an
|
||||
organization, or substantially all assets of one, or subdividing an
|
||||
organization, or merging organizations. If propagation of a covered
|
||||
work results from an entity transaction, each party to that
|
||||
transaction who receives a copy of the work also receives whatever
|
||||
licenses to the work the party's predecessor in interest had or could
|
||||
give under the previous paragraph, plus a right to possession of the
|
||||
Corresponding Source of the work from the predecessor in interest, if
|
||||
the predecessor has it or can get it with reasonable efforts.
|
||||
|
||||
You may not impose any further restrictions on the exercise of the
|
||||
rights granted or affirmed under this License. For example, you may
|
||||
not impose a license fee, royalty, or other charge for exercise of
|
||||
rights granted under this License, and you may not initiate litigation
|
||||
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
||||
any patent claim is infringed by making, using, selling, offering for
|
||||
sale, or importing the Program or any portion of it.
|
||||
|
||||
11. Patents.
|
||||
|
||||
A "contributor" is a copyright holder who authorizes use under this
|
||||
License of the Program or a work on which the Program is based. The
|
||||
work thus licensed is called the contributor's "contributor version".
|
||||
|
||||
A contributor's "essential patent claims" are all patent claims
|
||||
owned or controlled by the contributor, whether already acquired or
|
||||
hereafter acquired, that would be infringed by some manner, permitted
|
||||
by this License, of making, using, or selling its contributor version,
|
||||
but do not include claims that would be infringed only as a
|
||||
consequence of further modification of the contributor version. For
|
||||
purposes of this definition, "control" includes the right to grant
|
||||
patent sublicenses in a manner consistent with the requirements of
|
||||
this License.
|
||||
|
||||
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
||||
patent license under the contributor's essential patent claims, to
|
||||
make, use, sell, offer for sale, import and otherwise run, modify and
|
||||
propagate the contents of its contributor version.
|
||||
|
||||
In the following three paragraphs, a "patent license" is any express
|
||||
agreement or commitment, however denominated, not to enforce a patent
|
||||
(such as an express permission to practice a patent or covenant not to
|
||||
sue for patent infringement). To "grant" such a patent license to a
|
||||
party means to make such an agreement or commitment not to enforce a
|
||||
patent against the party.
|
||||
|
||||
If you convey a covered work, knowingly relying on a patent license,
|
||||
and the Corresponding Source of the work is not available for anyone
|
||||
to copy, free of charge and under the terms of this License, through a
|
||||
publicly available network server or other readily accessible means,
|
||||
then you must either (1) cause the Corresponding Source to be so
|
||||
available, or (2) arrange to deprive yourself of the benefit of the
|
||||
patent license for this particular work, or (3) arrange, in a manner
|
||||
consistent with the requirements of this License, to extend the patent
|
||||
license to downstream recipients. "Knowingly relying" means you have
|
||||
actual knowledge that, but for the patent license, your conveying the
|
||||
covered work in a country, or your recipient's use of the covered work
|
||||
in a country, would infringe one or more identifiable patents in that
|
||||
country that you have reason to believe are valid.
|
||||
|
||||
If, pursuant to or in connection with a single transaction or
|
||||
arrangement, you convey, or propagate by procuring conveyance of, a
|
||||
covered work, and grant a patent license to some of the parties
|
||||
receiving the covered work authorizing them to use, propagate, modify
|
||||
or convey a specific copy of the covered work, then the patent license
|
||||
you grant is automatically extended to all recipients of the covered
|
||||
work and works based on it.
|
||||
|
||||
A patent license is "discriminatory" if it does not include within
|
||||
the scope of its coverage, prohibits the exercise of, or is
|
||||
conditioned on the non-exercise of one or more of the rights that are
|
||||
specifically granted under this License. You may not convey a covered
|
||||
work if you are a party to an arrangement with a third party that is
|
||||
in the business of distributing software, under which you make payment
|
||||
to the third party based on the extent of your activity of conveying
|
||||
the work, and under which the third party grants, to any of the
|
||||
parties who would receive the covered work from you, a discriminatory
|
||||
patent license (a) in connection with copies of the covered work
|
||||
conveyed by you (or copies made from those copies), or (b) primarily
|
||||
for and in connection with specific products or compilations that
|
||||
contain the covered work, unless you entered into that arrangement,
|
||||
or that patent license was granted, prior to 28 March 2007.
|
||||
|
||||
Nothing in this License shall be construed as excluding or limiting
|
||||
any implied license or other defenses to infringement that may
|
||||
otherwise be available to you under applicable patent law.
|
||||
|
||||
12. No Surrender of Others' Freedom.
|
||||
|
||||
If conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot convey a
|
||||
covered work so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you may
|
||||
not convey it at all. For example, if you agree to terms that obligate you
|
||||
to collect a royalty for further conveying from those to whom you convey
|
||||
the Program, the only way you could satisfy both those terms and this
|
||||
License would be to refrain entirely from conveying the Program.
|
||||
|
||||
13. Remote Network Interaction; Use with the GNU General Public License.
|
||||
|
||||
Notwithstanding any other provision of this License, if you modify the
|
||||
Program, your modified version must prominently offer all users
|
||||
interacting with it remotely through a computer network (if your version
|
||||
supports such interaction) an opportunity to receive the Corresponding
|
||||
Source of your version by providing access to the Corresponding Source
|
||||
from a network server at no charge, through some standard or customary
|
||||
means of facilitating copying of software. This Corresponding Source
|
||||
shall include the Corresponding Source for any work covered by version 3
|
||||
of the GNU General Public License that is incorporated pursuant to the
|
||||
following paragraph.
|
||||
|
||||
Notwithstanding any other provision of this License, you have
|
||||
permission to link or combine any covered work with a work licensed
|
||||
under version 3 of the GNU General Public License into a single
|
||||
combined work, and to convey the resulting work. The terms of this
|
||||
License will continue to apply to the part which is the covered work,
|
||||
but the work with which it is combined will remain governed by version
|
||||
3 of the GNU General Public License.
|
||||
|
||||
14. Revised Versions of this License.
|
||||
|
||||
The Free Software Foundation may publish revised and/or new versions of
|
||||
the GNU Affero General Public License from time to time. Such new versions
|
||||
will be similar in spirit to the present version, but may differ in detail to
|
||||
address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the
|
||||
Program specifies that a certain numbered version of the GNU Affero General
|
||||
Public License "or any later version" applies to it, you have the
|
||||
option of following the terms and conditions either of that numbered
|
||||
version or of any later version published by the Free Software
|
||||
Foundation. If the Program does not specify a version number of the
|
||||
GNU Affero General Public License, you may choose any version ever published
|
||||
by the Free Software Foundation.
|
||||
|
||||
If the Program specifies that a proxy can decide which future
|
||||
versions of the GNU Affero General Public License can be used, that proxy's
|
||||
public statement of acceptance of a version permanently authorizes you
|
||||
to choose that version for the Program.
|
||||
|
||||
Later license versions may give you additional or different
|
||||
permissions. However, no additional obligations are imposed on any
|
||||
author or copyright holder as a result of your choosing to follow a
|
||||
later version.
|
||||
|
||||
15. Disclaimer of Warranty.
|
||||
|
||||
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
||||
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
||||
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
||||
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
||||
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
||||
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
|
||||
16. Limitation of Liability.
|
||||
|
||||
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
||||
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
||||
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
||||
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
||||
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
||||
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
||||
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
||||
SUCH DAMAGES.
|
||||
|
||||
17. Interpretation of Sections 15 and 16.
|
||||
|
||||
If the disclaimer of warranty and limitation of liability provided
|
||||
above cannot be given local legal effect according to their terms,
|
||||
reviewing courts shall apply local law that most closely approximates
|
||||
an absolute waiver of all civil liability in connection with the
|
||||
Program, unless a warranty or assumption of liability accompanies a
|
||||
copy of the Program in return for a fee.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest
|
||||
possible use to the public, the best way to achieve this is to make it
|
||||
free software which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest
|
||||
to attach them to the start of each source file to most effectively
|
||||
state the exclusion of warranty; and each file should have at least
|
||||
the "copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the program's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as published
|
||||
by the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If your software can interact with users remotely through a computer
|
||||
network, you should also make sure that it provides a way for users to
|
||||
get its source. For example, if your program is a web application, its
|
||||
interface could display a "Source" link that leads users to an archive
|
||||
of the code. There are many ways you could offer source, and different
|
||||
solutions will be better for different programs; see section 13 for the
|
||||
specific requirements.
|
||||
|
||||
You should also get your employer (if you work as a programmer) or school,
|
||||
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
||||
For more information on this, and how to apply and follow the GNU AGPL, see
|
||||
<https://www.gnu.org/licenses/>.
|
||||
|
21
README.md
21
README.md
@@ -6,35 +6,34 @@
|
||||
|
||||
请从 [Releases](https://github.com/jie65535/GrasscutterCommandGenerator/releases) 中获取最新版本
|
||||
|
||||
## 远程执行
|
||||
|
||||
服务端需要 [gc-opencommand-plugin](https://github.com/jie65535/gc-opencommand-plugin) 插件支持
|
||||
|
||||

|
||||
|
||||
---
|
||||
|
||||
## TODO List
|
||||
- [ ] 多语言支持(进度:UI已经支持英语,但还有许多ID映射文件缺失,欢迎补充)
|
||||
- [ ] Animal.txt
|
||||
- [x] Animal.txt
|
||||
- [ ] Artifact.txt
|
||||
- [ ] ArtifactCat.txt
|
||||
- [ ] ArtifactMainAttribution.txt
|
||||
- [ ] ArtifactSubAttribution.txt
|
||||
- [x] Avatar.txt
|
||||
- [ ] CustomCommands.txt
|
||||
- [x] CustomCommands.txt
|
||||
- [x] Item.txt
|
||||
- [x] Monster.txt
|
||||
- [ ] NPC.txt
|
||||
- [ ] Ornament.txt
|
||||
- [x] Scene.txt
|
||||
- [ ] Weapon.txt
|
||||
- [ ] 远程执行命令(进度:新建文件夹)
|
||||
- [x] 远程执行命令
|
||||
- [ ] 割草机启动器(无进度)
|
||||
- [ ] 邮件编辑器(无进度)
|
||||
- [ ] 商店编辑器(无进度)
|
||||
|
||||
## v0.10.0 未发布
|
||||
- 新增`文本资源浏览器`,可使用**正则**搜索文本映射文件
|
||||

|
||||
- `主页` 页面新增 `语言` 下拉框,可选择简体中文和英语。
|
||||
- `生成` 页面新增 `摆件` ID分类。
|
||||
|
||||
|
||||
## 软件截图
|
||||
|
||||

|
||||
@@ -61,4 +60,4 @@
|
||||
|
||||

|
||||
|
||||

|
||||

|
||||
|
@@ -6,32 +6,34 @@
|
||||
|
||||
Please download the latest version from [Releases](https://github.com/jie65535/GrasscutterCommandGenerator/releases)
|
||||
|
||||
## Remote command
|
||||
|
||||
The server require [gc-opencommand-plugin](https://github.com/jie65535/gc-opencommand-plugin) support
|
||||
|
||||

|
||||
|
||||
---
|
||||
|
||||
## TODO List
|
||||
- [ ] Multi-language support (progress: UI already supports English, but there are still many ID mapping files missing, welcome to add)
|
||||
- [ ] Animal.txt
|
||||
- [x] Animal.txt
|
||||
- [ ] Artifact.txt
|
||||
- [ ] ArtifactCat.txt
|
||||
- [ ] ArtifactMainAttribution.txt
|
||||
- [ ] ArtifactSubAttribution.txt
|
||||
- [x] Avatar.txt
|
||||
- [ ] CustomCommands.txt
|
||||
- [x] CustomCommands.txt
|
||||
- [x] Item.txt
|
||||
- [x] Monster.txt
|
||||
- [ ] NPC.txt
|
||||
- [ ] Ornament.txt
|
||||
- [x] Scene.txt
|
||||
- [ ] Weapon.txt
|
||||
- [ ] Execute command remotely (progress: new folder)
|
||||
- [x] Execute command remotely
|
||||
- [ ] Grasscutter Launcher (no progress)
|
||||
- [ ] Mail Editor (no progress)
|
||||
- [ ] Shop Editor (no progress)
|
||||
|
||||
## v0.10.0 Unpublished
|
||||
Added `Text Map Browser`, you can use **regular** search text mapping files
|
||||

|
||||
|
||||
## Screenshots
|
||||
|
||||

|
||||
@@ -58,4 +60,4 @@ Added `Text Map Browser`, you can use **regular** search text mapping files
|
||||
|
||||

|
||||
|
||||

|
||||

|
||||
|
@@ -1,30 +1,36 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<configSections>
|
||||
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<section name="GrasscutterTools.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false"/>
|
||||
</sectionGroup>
|
||||
</configSections>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/>
|
||||
</startup>
|
||||
<userSettings>
|
||||
<GrasscutterTools.Properties.Settings>
|
||||
<setting name="AutoCopy" serializeAs="String">
|
||||
<value>False</value>
|
||||
</setting>
|
||||
<setting name="Uid" serializeAs="String">
|
||||
<value>10001</value>
|
||||
</setting>
|
||||
<setting name="DefaultLanguage" serializeAs="String">
|
||||
<value>zh-CN</value>
|
||||
</setting>
|
||||
<setting name="ResourcesDirPath" serializeAs="String">
|
||||
<value />
|
||||
</setting>
|
||||
<setting name="TextMapFileName" serializeAs="String">
|
||||
<value>TextMapCHS</value>
|
||||
</setting>
|
||||
</GrasscutterTools.Properties.Settings>
|
||||
</userSettings>
|
||||
</configuration>
|
||||
<configSections>
|
||||
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<section name="GrasscutterTools.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
|
||||
</sectionGroup>
|
||||
</configSections>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" />
|
||||
</startup>
|
||||
<userSettings>
|
||||
<GrasscutterTools.Properties.Settings>
|
||||
<setting name="AutoCopy" serializeAs="String">
|
||||
<value>False</value>
|
||||
</setting>
|
||||
<setting name="Uid" serializeAs="String">
|
||||
<value>10001</value>
|
||||
</setting>
|
||||
<setting name="DefaultLanguage" serializeAs="String">
|
||||
<value>zh-CN</value>
|
||||
</setting>
|
||||
<setting name="ResourcesDirPath" serializeAs="String">
|
||||
<value />
|
||||
</setting>
|
||||
<setting name="TextMapFileName" serializeAs="String">
|
||||
<value>TextMapCHS</value>
|
||||
</setting>
|
||||
<setting name="RemoteUid" serializeAs="String">
|
||||
<value>10001</value>
|
||||
</setting>
|
||||
<setting name="Host" serializeAs="String">
|
||||
<value>https://127.0.0.1</value>
|
||||
</setting>
|
||||
</GrasscutterTools.Properties.Settings>
|
||||
</userSettings>
|
||||
</configuration>
|
34
Source/GrasscutterTools/DispatchServer/DispatchServerAPI.cs
Normal file
34
Source/GrasscutterTools/DispatchServer/DispatchServerAPI.cs
Normal file
@@ -0,0 +1,34 @@
|
||||
/**
|
||||
* Grasscutter Tools
|
||||
* Copyright (C) 2022 jie65535
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as published
|
||||
* by the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
**/
|
||||
using System.Threading.Tasks;
|
||||
|
||||
using GrasscutterTools.DispatchServer.Model;
|
||||
using GrasscutterTools.Utils;
|
||||
|
||||
namespace GrasscutterTools.DispatchServer
|
||||
{
|
||||
public static class DispatchServerAPI
|
||||
{
|
||||
public static async Task<ServerStatus> QueryServerStatus(string host)
|
||||
{
|
||||
var response = await HttpHelper.GetAsync<ServerStatusResponse>(host + "/status/server");
|
||||
return response?.Status;
|
||||
}
|
||||
}
|
||||
}
|
40
Source/GrasscutterTools/DispatchServer/Model/ServerStatus.cs
Normal file
40
Source/GrasscutterTools/DispatchServer/Model/ServerStatus.cs
Normal file
@@ -0,0 +1,40 @@
|
||||
/**
|
||||
* Grasscutter Tools
|
||||
* Copyright (C) 2022 jie65535
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as published
|
||||
* by the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
**/
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace GrasscutterTools.DispatchServer.Model
|
||||
{
|
||||
public class ServerStatus
|
||||
{
|
||||
[JsonProperty("playerCount")]
|
||||
public int PlayerCount { get; set; }
|
||||
|
||||
[JsonProperty("version")]
|
||||
public string Version { get; set; }
|
||||
}
|
||||
|
||||
public class ServerStatusResponse
|
||||
{
|
||||
[JsonProperty("retcode")]
|
||||
public int RetCode { get; set; }
|
||||
|
||||
[JsonProperty("status")]
|
||||
public ServerStatus Status { get; set; }
|
||||
}
|
||||
}
|
@@ -31,6 +31,7 @@ namespace GrasscutterTools
|
||||
{
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormGachaBannerEditor));
|
||||
this.GrpBannerValues = new System.Windows.Forms.GroupBox();
|
||||
this.CmbPrefab = new System.Windows.Forms.ComboBox();
|
||||
this.LblEventChanceTip = new System.Windows.Forms.Label();
|
||||
this.NUDEventChance = new System.Windows.Forms.NumericUpDown();
|
||||
this.LblGachaType = new System.Windows.Forms.Label();
|
||||
@@ -60,19 +61,14 @@ namespace GrasscutterTools
|
||||
this.LblSoftPityTip = new System.Windows.Forms.Label();
|
||||
this.LblBasePurpleWeight = new System.Windows.Forms.Label();
|
||||
this.CmbBannerType = new System.Windows.Forms.ComboBox();
|
||||
this.TxtTitlePath = new System.Windows.Forms.TextBox();
|
||||
this.LblSortIdTip = new System.Windows.Forms.Label();
|
||||
this.NUDBasePurpleWeight = new System.Windows.Forms.NumericUpDown();
|
||||
this.LblBannerType = new System.Windows.Forms.Label();
|
||||
this.LblTitlePath = new System.Windows.Forms.Label();
|
||||
this.LblBasePurpleWeightTip = new System.Windows.Forms.Label();
|
||||
this.RbCostItem224 = new System.Windows.Forms.RadioButton();
|
||||
this.TxtPrefabPath = new System.Windows.Forms.TextBox();
|
||||
this.TxtPreviewPrefabPath = new System.Windows.Forms.TextBox();
|
||||
this.LblBaseYellowWeightTip = new System.Windows.Forms.Label();
|
||||
this.LblCostItem = new System.Windows.Forms.Label();
|
||||
this.LblPrefabPath = new System.Windows.Forms.Label();
|
||||
this.LblPreviewPrefabPath = new System.Windows.Forms.Label();
|
||||
this.RbCostItem223 = new System.Windows.Forms.RadioButton();
|
||||
this.GrpPurplePool = new System.Windows.Forms.GroupBox();
|
||||
this.ListPurplePool = new System.Windows.Forms.CheckedListBox();
|
||||
@@ -101,6 +97,7 @@ namespace GrasscutterTools
|
||||
// GrpBannerValues
|
||||
//
|
||||
resources.ApplyResources(this.GrpBannerValues, "GrpBannerValues");
|
||||
this.GrpBannerValues.Controls.Add(this.CmbPrefab);
|
||||
this.GrpBannerValues.Controls.Add(this.LblEventChanceTip);
|
||||
this.GrpBannerValues.Controls.Add(this.NUDEventChance);
|
||||
this.GrpBannerValues.Controls.Add(this.LblGachaType);
|
||||
@@ -130,23 +127,25 @@ namespace GrasscutterTools
|
||||
this.GrpBannerValues.Controls.Add(this.LblSoftPityTip);
|
||||
this.GrpBannerValues.Controls.Add(this.LblBasePurpleWeight);
|
||||
this.GrpBannerValues.Controls.Add(this.CmbBannerType);
|
||||
this.GrpBannerValues.Controls.Add(this.TxtTitlePath);
|
||||
this.GrpBannerValues.Controls.Add(this.LblSortIdTip);
|
||||
this.GrpBannerValues.Controls.Add(this.NUDBasePurpleWeight);
|
||||
this.GrpBannerValues.Controls.Add(this.LblBannerType);
|
||||
this.GrpBannerValues.Controls.Add(this.LblTitlePath);
|
||||
this.GrpBannerValues.Controls.Add(this.LblBasePurpleWeightTip);
|
||||
this.GrpBannerValues.Controls.Add(this.RbCostItem224);
|
||||
this.GrpBannerValues.Controls.Add(this.TxtPrefabPath);
|
||||
this.GrpBannerValues.Controls.Add(this.TxtPreviewPrefabPath);
|
||||
this.GrpBannerValues.Controls.Add(this.LblBaseYellowWeightTip);
|
||||
this.GrpBannerValues.Controls.Add(this.LblCostItem);
|
||||
this.GrpBannerValues.Controls.Add(this.LblPrefabPath);
|
||||
this.GrpBannerValues.Controls.Add(this.LblPreviewPrefabPath);
|
||||
this.GrpBannerValues.Controls.Add(this.RbCostItem223);
|
||||
this.GrpBannerValues.Name = "GrpBannerValues";
|
||||
this.GrpBannerValues.TabStop = false;
|
||||
//
|
||||
// CmbPrefab
|
||||
//
|
||||
resources.ApplyResources(this.CmbPrefab, "CmbPrefab");
|
||||
this.CmbPrefab.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.CmbPrefab.FormattingEnabled = true;
|
||||
this.CmbPrefab.Name = "CmbPrefab";
|
||||
//
|
||||
// LblEventChanceTip
|
||||
//
|
||||
resources.ApplyResources(this.LblEventChanceTip, "LblEventChanceTip");
|
||||
@@ -383,11 +382,6 @@ namespace GrasscutterTools
|
||||
resources.GetString("CmbBannerType.Items2")});
|
||||
this.CmbBannerType.Name = "CmbBannerType";
|
||||
//
|
||||
// TxtTitlePath
|
||||
//
|
||||
resources.ApplyResources(this.TxtTitlePath, "TxtTitlePath");
|
||||
this.TxtTitlePath.Name = "TxtTitlePath";
|
||||
//
|
||||
// LblSortIdTip
|
||||
//
|
||||
resources.ApplyResources(this.LblSortIdTip, "LblSortIdTip");
|
||||
@@ -409,11 +403,6 @@ namespace GrasscutterTools
|
||||
resources.ApplyResources(this.LblBannerType, "LblBannerType");
|
||||
this.LblBannerType.Name = "LblBannerType";
|
||||
//
|
||||
// LblTitlePath
|
||||
//
|
||||
resources.ApplyResources(this.LblTitlePath, "LblTitlePath");
|
||||
this.LblTitlePath.Name = "LblTitlePath";
|
||||
//
|
||||
// LblBasePurpleWeightTip
|
||||
//
|
||||
resources.ApplyResources(this.LblBasePurpleWeightTip, "LblBasePurpleWeightTip");
|
||||
@@ -427,16 +416,6 @@ namespace GrasscutterTools
|
||||
this.RbCostItem224.TabStop = true;
|
||||
this.RbCostItem224.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// TxtPrefabPath
|
||||
//
|
||||
resources.ApplyResources(this.TxtPrefabPath, "TxtPrefabPath");
|
||||
this.TxtPrefabPath.Name = "TxtPrefabPath";
|
||||
//
|
||||
// TxtPreviewPrefabPath
|
||||
//
|
||||
resources.ApplyResources(this.TxtPreviewPrefabPath, "TxtPreviewPrefabPath");
|
||||
this.TxtPreviewPrefabPath.Name = "TxtPreviewPrefabPath";
|
||||
//
|
||||
// LblBaseYellowWeightTip
|
||||
//
|
||||
resources.ApplyResources(this.LblBaseYellowWeightTip, "LblBaseYellowWeightTip");
|
||||
@@ -452,11 +431,6 @@ namespace GrasscutterTools
|
||||
resources.ApplyResources(this.LblPrefabPath, "LblPrefabPath");
|
||||
this.LblPrefabPath.Name = "LblPrefabPath";
|
||||
//
|
||||
// LblPreviewPrefabPath
|
||||
//
|
||||
resources.ApplyResources(this.LblPreviewPrefabPath, "LblPreviewPrefabPath");
|
||||
this.LblPreviewPrefabPath.Name = "LblPreviewPrefabPath";
|
||||
//
|
||||
// RbCostItem223
|
||||
//
|
||||
resources.ApplyResources(this.RbCostItem223, "RbCostItem223");
|
||||
@@ -583,19 +557,14 @@ namespace GrasscutterTools
|
||||
private System.Windows.Forms.Label LblSoftPityTip;
|
||||
private System.Windows.Forms.Label LblBasePurpleWeight;
|
||||
private System.Windows.Forms.ComboBox CmbBannerType;
|
||||
private System.Windows.Forms.TextBox TxtTitlePath;
|
||||
private System.Windows.Forms.Label LblSortIdTip;
|
||||
private System.Windows.Forms.NumericUpDown NUDBasePurpleWeight;
|
||||
private System.Windows.Forms.Label LblBannerType;
|
||||
private System.Windows.Forms.Label LblTitlePath;
|
||||
private System.Windows.Forms.Label LblBasePurpleWeightTip;
|
||||
private System.Windows.Forms.RadioButton RbCostItem224;
|
||||
private System.Windows.Forms.TextBox TxtPrefabPath;
|
||||
private System.Windows.Forms.TextBox TxtPreviewPrefabPath;
|
||||
private System.Windows.Forms.Label LblBaseYellowWeightTip;
|
||||
private System.Windows.Forms.Label LblCostItem;
|
||||
private System.Windows.Forms.Label LblPrefabPath;
|
||||
private System.Windows.Forms.Label LblPreviewPrefabPath;
|
||||
private System.Windows.Forms.RadioButton RbCostItem223;
|
||||
private System.Windows.Forms.GroupBox GrpPurplePool;
|
||||
private System.Windows.Forms.CheckedListBox ListPurplePool;
|
||||
@@ -605,5 +574,6 @@ namespace GrasscutterTools
|
||||
private System.Windows.Forms.TextBox TxtJson;
|
||||
private System.Windows.Forms.Button BtnGen;
|
||||
private System.Windows.Forms.Button BtnParse;
|
||||
private System.Windows.Forms.ComboBox CmbPrefab;
|
||||
}
|
||||
}
|
@@ -1,4 +1,22 @@
|
||||
using System;
|
||||
/**
|
||||
* Grasscutter Tools
|
||||
* Copyright (C) 2022 jie65535
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as published
|
||||
* by the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
**/
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
@@ -26,9 +44,16 @@ namespace GrasscutterTools
|
||||
|
||||
Icon = Resources.IconGrasscutter;
|
||||
CmbBannerType.SelectedIndex = 0;
|
||||
InitBannerPrefab();
|
||||
InitCheckedListBoxs();
|
||||
}
|
||||
|
||||
private void InitBannerPrefab()
|
||||
{
|
||||
CmbPrefab.Items.Clear();
|
||||
CmbPrefab.Items.AddRange(GameData.GachaBannerPrefabs.Names);
|
||||
}
|
||||
|
||||
private void InitCheckedListBoxs()
|
||||
{
|
||||
InitCheckedListBox(ListYellowPool, "yellow");
|
||||
@@ -78,9 +103,10 @@ namespace GrasscutterTools
|
||||
NUDGachaType.Value = banner.GachaType;
|
||||
NUDScheduleId.Value = banner.ScheduleId;
|
||||
CmbBannerType.SelectedIndex = (int)banner.BannerType;
|
||||
TxtPrefabPath.Text = banner.PrefabPath;
|
||||
TxtPreviewPrefabPath.Text = banner.PreviewPrefabPath;
|
||||
TxtTitlePath.Text = banner.TitlePath;
|
||||
if (string.IsNullOrEmpty(banner.TitlePath) || !int.TryParse(banner.TitlePath.Substring("UI_GACHA_SHOW_PANEL_A".Length, 3), out int prefabId))
|
||||
CmbPrefab.SelectedIndex = -1;
|
||||
else
|
||||
CmbPrefab.SelectedIndex = Array.IndexOf(GameData.GachaBannerPrefabs.Ids, prefabId);
|
||||
RbCostItem224.Checked = banner.CostItem == 224;
|
||||
RbCostItem223.Checked = banner.CostItem == 223;
|
||||
NUDBeginTime.Value = banner.BeginTime;
|
||||
@@ -97,7 +123,7 @@ namespace GrasscutterTools
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
MessageBox.Show("UI更新失败:" + ex.Message, "错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
MessageBox.Show("UI更新失败:" + ex.Message, Resources.Error, MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -105,9 +131,16 @@ namespace GrasscutterTools
|
||||
{
|
||||
if (CmbBannerType.SelectedIndex < 0)
|
||||
{
|
||||
MessageBox.Show("请选择奖池类型", "输入错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
MessageBox.Show("请选择奖池类型", Resources.Error, MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
return null;
|
||||
}
|
||||
|
||||
if (CmbPrefab.SelectedIndex < 0)
|
||||
{
|
||||
MessageBox.Show("请选择奖池预制", Resources.Error, MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
return null;
|
||||
}
|
||||
|
||||
int[] yellowIds;
|
||||
if (string.IsNullOrEmpty(TxtRateUpItems1.Text))
|
||||
yellowIds = new int[0];
|
||||
@@ -120,14 +153,15 @@ namespace GrasscutterTools
|
||||
else
|
||||
purpleIds = TxtRateUpItems2.Text.Split(',').Select(s => int.Parse(s.Trim())).ToArray();
|
||||
|
||||
var prefabId = GameData.GachaBannerPrefabs.Ids[CmbPrefab.SelectedIndex];
|
||||
GachaBanner banner = new GachaBanner
|
||||
{
|
||||
GachaType = (int)NUDGachaType.Value,
|
||||
ScheduleId = (int)NUDScheduleId.Value,
|
||||
BannerType = (BannerType)CmbBannerType.SelectedIndex,
|
||||
PrefabPath = TxtPrefabPath.Text,
|
||||
PreviewPrefabPath = TxtPreviewPrefabPath.Text,
|
||||
TitlePath = TxtTitlePath.Text,
|
||||
PrefabPath = $"GachaShowPanel_A{prefabId:000}",
|
||||
PreviewPrefabPath = $"UI_Tab_GachaShowPanel_A{prefabId:000}",
|
||||
TitlePath = $"UI_GACHA_SHOW_PANEL_A{prefabId:000}_TITLE",
|
||||
CostItem = RbCostItem224.Checked ? 224 : 223,
|
||||
BeginTime = (int)NUDBeginTime.Value,
|
||||
EndTime = (int)NUDEndTime.Value,
|
||||
@@ -186,7 +220,7 @@ namespace GrasscutterTools
|
||||
foreach (string item in list.CheckedItems)
|
||||
builder.Append(item.Substring(0, item.IndexOf(':')))
|
||||
.Append(", ");
|
||||
txt.Text = builder.ToString(0, builder.Length-2);
|
||||
txt.Text = builder.ToString(0, builder.Length - 2);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -207,7 +241,7 @@ namespace GrasscutterTools
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
MessageBox.Show("Json解析失败,错误消息:" + ex.Message, "错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
MessageBox.Show("Json解析失败,错误消息:" + ex.Message, Resources.Error, MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -119,10 +119,10 @@
|
||||
</resheader>
|
||||
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<data name="LblEventChanceTip.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>401, 318</value>
|
||||
<value>401, 262</value>
|
||||
</data>
|
||||
<data name="NUDEventChance.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>332, 316</value>
|
||||
<value>332, 260</value>
|
||||
</data>
|
||||
<data name="LblEventChance.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>83, 17</value>
|
||||
@@ -130,11 +130,14 @@
|
||||
<data name="LblEventChance.Text" xml:space="preserve">
|
||||
<value>Event chance</value>
|
||||
</data>
|
||||
<data name="LblSortId.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>72, 204</value>
|
||||
</data>
|
||||
<data name="LblSortId.Text" xml:space="preserve">
|
||||
<value>Sort</value>
|
||||
</data>
|
||||
<data name="LblBaseYellowWeight.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>23, 318</value>
|
||||
<value>22, 262</value>
|
||||
</data>
|
||||
<data name="LblBaseYellowWeight.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>83, 17</value>
|
||||
@@ -143,7 +146,7 @@
|
||||
<value>5 star weight</value>
|
||||
</data>
|
||||
<data name="LblRateUpItems2.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>45, 406</value>
|
||||
<value>44, 350</value>
|
||||
</data>
|
||||
<data name="LblRateUpItems2.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>61, 17</value>
|
||||
@@ -152,7 +155,7 @@
|
||||
<value>4 star UP</value>
|
||||
</data>
|
||||
<data name="LblSoftPity.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>50, 347</value>
|
||||
<value>49, 291</value>
|
||||
</data>
|
||||
<data name="LblSoftPity.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>56, 17</value>
|
||||
@@ -173,7 +176,7 @@
|
||||
<value>End Time</value>
|
||||
</data>
|
||||
<data name="LblRateUpItems1.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>45, 290</value>
|
||||
<value>44, 234</value>
|
||||
</data>
|
||||
<data name="LblRateUpItems1.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>61, 17</value>
|
||||
@@ -182,7 +185,7 @@
|
||||
<value>5 star UP</value>
|
||||
</data>
|
||||
<data name="LblBeginTime.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>33, 231</value>
|
||||
<value>32, 175</value>
|
||||
</data>
|
||||
<data name="LblBeginTime.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>73, 17</value>
|
||||
@@ -191,7 +194,7 @@
|
||||
<value>Begin Time</value>
|
||||
</data>
|
||||
<data name="LblHardPity.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>43, 376</value>
|
||||
<value>42, 320</value>
|
||||
</data>
|
||||
<data name="LblHardPity.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>62, 17</value>
|
||||
@@ -200,7 +203,7 @@
|
||||
<value>Hard pity</value>
|
||||
</data>
|
||||
<data name="NUDEndTime.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>287, 230</value>
|
||||
<value>287, 174</value>
|
||||
</data>
|
||||
<data name="LblHardPityTip.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>17, 17</value>
|
||||
@@ -221,7 +224,7 @@
|
||||
<value>...</value>
|
||||
</data>
|
||||
<data name="LblBasePurpleWeight.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>23, 434</value>
|
||||
<value>22, 378</value>
|
||||
</data>
|
||||
<data name="LblBasePurpleWeight.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>83, 17</value>
|
||||
@@ -253,15 +256,6 @@
|
||||
<data name="LblBannerType.Text" xml:space="preserve">
|
||||
<value>Banner Type</value>
|
||||
</data>
|
||||
<data name="LblTitlePath.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>45, 176</value>
|
||||
</data>
|
||||
<data name="LblTitlePath.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>61, 17</value>
|
||||
</data>
|
||||
<data name="LblTitlePath.Text" xml:space="preserve">
|
||||
<value>Title Path</value>
|
||||
</data>
|
||||
<data name="RbCostItem224.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>104, 21</value>
|
||||
</data>
|
||||
@@ -269,7 +263,7 @@
|
||||
<value>Acquaint Fate</value>
|
||||
</data>
|
||||
<data name="LblCostItem.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>42, 204</value>
|
||||
<value>41, 148</value>
|
||||
</data>
|
||||
<data name="LblCostItem.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>64, 17</value>
|
||||
@@ -278,25 +272,16 @@
|
||||
<value>Cost Item</value>
|
||||
</data>
|
||||
<data name="LblPrefabPath.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>31, 118</value>
|
||||
<value>59, 118</value>
|
||||
</data>
|
||||
<data name="LblPrefabPath.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>75, 17</value>
|
||||
<value>46, 17</value>
|
||||
</data>
|
||||
<data name="LblPrefabPath.Text" xml:space="preserve">
|
||||
<value>Prefab Path</value>
|
||||
</data>
|
||||
<data name="LblPreviewPrefabPath.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>8, 147</value>
|
||||
</data>
|
||||
<data name="LblPreviewPrefabPath.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>98, 17</value>
|
||||
</data>
|
||||
<data name="LblPreviewPrefabPath.Text" xml:space="preserve">
|
||||
<value>Pre Prefab Path</value>
|
||||
<value>Prefab</value>
|
||||
</data>
|
||||
<data name="RbCostItem223.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>222, 202</value>
|
||||
<value>222, 146</value>
|
||||
</data>
|
||||
<data name="RbCostItem223.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>119, 21</value>
|
||||
|
File diff suppressed because it is too large
Load Diff
491
Source/GrasscutterTools/FormMain.Designer.cs
generated
491
Source/GrasscutterTools/FormMain.Designer.cs
generated
File diff suppressed because it is too large
Load Diff
@@ -1,12 +1,33 @@
|
||||
using System;
|
||||
/**
|
||||
* Grasscutter Tools
|
||||
* Copyright (C) 2022 jie65535
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as published
|
||||
* by the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
**/
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Drawing;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
using GrasscutterTools.DispatchServer;
|
||||
using GrasscutterTools.Game;
|
||||
using GrasscutterTools.OpenCommand;
|
||||
using GrasscutterTools.Properties;
|
||||
|
||||
namespace GrasscutterTools
|
||||
@@ -26,10 +47,15 @@ namespace GrasscutterTools
|
||||
{
|
||||
MultiLanguage.LoadLanguage(this, typeof(FormMain));
|
||||
Version version = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version;
|
||||
#if DEBUG
|
||||
Text += " - by jie65535 - v" + version.ToString(3) + "-debug";
|
||||
#else
|
||||
Text += " - by jie65535 - v" + version.ToString(3);
|
||||
#endif
|
||||
|
||||
GameData.LoadResources();
|
||||
|
||||
LoadCustomCommands();
|
||||
InitArtifactList();
|
||||
InitGameItemList();
|
||||
InitWeapons();
|
||||
@@ -45,8 +71,6 @@ namespace GrasscutterTools
|
||||
SaveSettings();
|
||||
}
|
||||
|
||||
private readonly string CustomCommandsFilePath = Path.Combine(Application.LocalUserAppDataPath, "CustomCommands.txt");
|
||||
|
||||
private readonly string[] LanguageNames = new string[] { "简体中文", "English" };
|
||||
private readonly string[] Languages = new string[] { "zh-CN", "en-US" };
|
||||
|
||||
@@ -54,22 +78,21 @@ namespace GrasscutterTools
|
||||
{
|
||||
try
|
||||
{
|
||||
ChkAutoCopy.Checked = Settings.Default.AutoCopy;
|
||||
NUDUid.Value = Settings.Default.Uid;
|
||||
ChkAutoCopy.Checked = Settings.Default.AutoCopy;
|
||||
NUDUid.Value = Settings.Default.Uid;
|
||||
|
||||
CmbLanguage.Items.AddRange(LanguageNames);
|
||||
CmbLanguage.SelectedIndex = Array.IndexOf(Languages, Settings.Default.DefaultLanguage);
|
||||
|
||||
if (File.Exists(CustomCommandsFilePath))
|
||||
LoadCustomCommands(File.ReadAllText(CustomCommandsFilePath));
|
||||
else
|
||||
LoadCustomCommands(Resources.CustomCommands);
|
||||
NUDRemotePlayerId.Value = Settings.Default.RemoteUid;
|
||||
TxtHost.Text = Settings.Default.Host;
|
||||
|
||||
InitGiveItemRecord();
|
||||
InitSpawnRecord();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
MessageBox.Show("加载设置时异常:" + ex.Message, "错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
MessageBox.Show(Resources.SettingLoadError + ex.Message, Resources.Error, MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -77,16 +100,18 @@ namespace GrasscutterTools
|
||||
{
|
||||
try
|
||||
{
|
||||
Settings.Default.AutoCopy = ChkAutoCopy.Checked;
|
||||
Settings.Default.Uid = NUDUid.Value;
|
||||
Settings.Default.Save();
|
||||
File.WriteAllText(CustomCommandsFilePath, SaveCustomCommands());
|
||||
Settings.Default.AutoCopy = ChkAutoCopy.Checked;
|
||||
Settings.Default.Uid = NUDUid.Value;
|
||||
Settings.Default.RemoteUid = NUDRemotePlayerId.Value;
|
||||
Settings.Default.Host = TxtHost.Text;
|
||||
SaveCustomCommands();
|
||||
SaveGiveItemRecord();
|
||||
SaveSpawnRecord();
|
||||
Settings.Default.Save();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
MessageBox.Show("保存设置时异常:" + ex.Message, "错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
MessageBox.Show(Resources.SettingSaveError + ex.Message, Resources.Error, MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -94,8 +119,8 @@ namespace GrasscutterTools
|
||||
|
||||
#region - 主页 -
|
||||
|
||||
private FormGachaBannerEditor FormGachaBannerEditor;
|
||||
|
||||
FormGachaBannerEditor FormGachaBannerEditor;
|
||||
private void BtnOpenGachaBannerEditor_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (FormGachaBannerEditor == null || FormGachaBannerEditor.IsDisposed)
|
||||
@@ -110,7 +135,8 @@ namespace GrasscutterTools
|
||||
}
|
||||
}
|
||||
|
||||
FormTextMapBrowser FormTextMapBrowser;
|
||||
private FormTextMapBrowser FormTextMapBrowser;
|
||||
|
||||
private void BtnOpenTextMap_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (FormTextMapBrowser == null || FormTextMapBrowser.IsDisposed)
|
||||
@@ -135,15 +161,33 @@ namespace GrasscutterTools
|
||||
|
||||
#region - 自定义 -
|
||||
|
||||
private void LoadCustomCommands(string commands)
|
||||
private readonly string CustomCommandsFilePath = Path.Combine(Application.LocalUserAppDataPath, "CustomCommands.txt");
|
||||
|
||||
private bool CustomCommandsChanged;
|
||||
|
||||
private void LoadCustomCommands()
|
||||
{
|
||||
if (File.Exists(CustomCommandsFilePath))
|
||||
LoadCustomCommandControls(File.ReadAllText(CustomCommandsFilePath));
|
||||
else
|
||||
LoadCustomCommandControls(Resources.CustomCommands);
|
||||
}
|
||||
|
||||
private void LoadCustomCommandControls(string commands)
|
||||
{
|
||||
FLPCustomCommands.Controls.Clear();
|
||||
var lines = commands.Split('\n');
|
||||
for (int i = 0; i < lines.Length-1; i += 2)
|
||||
AddCustomCommand(lines[i].Trim(), lines[i+1].Trim());
|
||||
for (int i = 0; i < lines.Length - 1; i += 2)
|
||||
AddCustomCommand(lines[i].Trim(), lines[i + 1].Trim());
|
||||
}
|
||||
|
||||
private string SaveCustomCommands()
|
||||
private void SaveCustomCommands()
|
||||
{
|
||||
if (CustomCommandsChanged)
|
||||
File.WriteAllText(CustomCommandsFilePath, SaveCustomCommandControls());
|
||||
}
|
||||
|
||||
private string SaveCustomCommandControls()
|
||||
{
|
||||
StringBuilder builder = new StringBuilder();
|
||||
foreach (LinkLabel lnk in FLPCustomCommands.Controls)
|
||||
@@ -167,12 +211,12 @@ namespace GrasscutterTools
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(TxtCustomName.Text))
|
||||
{
|
||||
MessageBox.Show("命令标签不能为空", "错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
MessageBox.Show(Resources.CommandTagCannotBeEmpty, Resources.Error, MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
return;
|
||||
}
|
||||
if (string.IsNullOrWhiteSpace(TxtCommand.Text))
|
||||
{
|
||||
MessageBox.Show("命令内容不能为空", "错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
MessageBox.Show(Resources.CommandContentCannotBeEmpty, Resources.Error, MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
return;
|
||||
}
|
||||
var name = TxtCustomName.Text.Trim();
|
||||
@@ -183,11 +227,13 @@ namespace GrasscutterTools
|
||||
if (lnk.Text == name)
|
||||
{
|
||||
lnk.Tag = command;
|
||||
CustomCommandsChanged = true;
|
||||
await ButtonComplete(BtnSaveCustomCommand);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
CustomCommandsChanged = true;
|
||||
AddCustomCommand(name, command);
|
||||
await ButtonComplete(BtnSaveCustomCommand);
|
||||
}
|
||||
@@ -208,16 +254,17 @@ namespace GrasscutterTools
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(TxtCustomName.Text))
|
||||
{
|
||||
MessageBox.Show("命令标签不能为空", "错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
MessageBox.Show(Resources.CommandTagCannotBeEmpty, Resources.Error, MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
return;
|
||||
}
|
||||
var name = TxtCustomName.Text.Trim();
|
||||
|
||||
foreach (LinkLabel lnk in FLPCustomCommands.Controls)
|
||||
{
|
||||
if (lnk.Text == name && MessageBox.Show("确认删除?", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
|
||||
if (lnk.Text == name && MessageBox.Show(Resources.AskConfirmDeletion, Resources.Tips, MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
|
||||
{
|
||||
FLPCustomCommands.Controls.Remove(lnk);
|
||||
CustomCommandsChanged = true;
|
||||
//TxtCustomName.Text = "";
|
||||
//TxtCommand.Text = "";
|
||||
await ButtonComplete(BtnRemoveCustomCommand);
|
||||
@@ -225,7 +272,7 @@ namespace GrasscutterTools
|
||||
}
|
||||
}
|
||||
|
||||
MessageBox.Show("未找到该命令", "错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
MessageBox.Show(Resources.CommandNotFound, Resources.Error, MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
}
|
||||
|
||||
private void BtnImport_Click(object sender, EventArgs e)
|
||||
@@ -239,7 +286,8 @@ namespace GrasscutterTools
|
||||
using (var stream = dialog.OpenFile())
|
||||
using (var reader = new StreamReader(stream))
|
||||
{
|
||||
LoadCustomCommands(reader.ReadToEnd());
|
||||
LoadCustomCommandControls(reader.ReadToEnd());
|
||||
CustomCommandsChanged = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -256,7 +304,7 @@ namespace GrasscutterTools
|
||||
using (var stream = dialog.OpenFile())
|
||||
using (var writer = new StreamWriter(stream))
|
||||
{
|
||||
writer.Write(SaveCustomCommands());
|
||||
writer.Write(SaveCustomCommandControls());
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -323,10 +371,9 @@ namespace GrasscutterTools
|
||||
|
||||
// 限制星级输入范围
|
||||
NUDArtifactStars.Minimum = GameData.Artifacts.Ids[beginIndex] / 100 % 10;
|
||||
NUDArtifactStars.Maximum = GameData.Artifacts.Ids[endIndex] / 100 % 10;
|
||||
NUDArtifactStars.Maximum = GameData.Artifacts.Ids[endIndex] / 100 % 10;
|
||||
|
||||
|
||||
var parts = GameData.Artifacts.Names.Skip(beginIndex).Take(endIndex-beginIndex+1).Distinct().ToArray();
|
||||
var parts = GameData.Artifacts.Names.Skip(beginIndex).Take(endIndex - beginIndex + 1).Distinct().ToArray();
|
||||
var i = CmbArtifactPart.SelectedIndex;
|
||||
CmbArtifactPart.Items.Clear();
|
||||
CmbArtifactPart.Items.AddRange(parts);
|
||||
@@ -336,7 +383,8 @@ namespace GrasscutterTools
|
||||
ArtifactInputChanged(sender, e);
|
||||
}
|
||||
|
||||
readonly string[] ArtifactPartLabels = new string[] { "空之杯", "死之羽", "理之冠", "生之花", "时之沙"};
|
||||
private readonly string[] ArtifactPartLabels = new string[] { "空之杯", "死之羽", "理之冠", "生之花", "时之沙" };
|
||||
|
||||
private void CmbArtifactPart_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (CmbArtifactPart.SelectedIndex < 0)
|
||||
@@ -360,7 +408,7 @@ namespace GrasscutterTools
|
||||
//var setId = GameData.ArtifactCats.Ids[CmbArtifactSet.SelectedIndex];
|
||||
//var part = CmbArtifactPart.SelectedIndex+1;
|
||||
//var index = Array.FindLastIndex(
|
||||
// GameData.Artifacts.Ids,
|
||||
// GameData.Artifacts.Ids,
|
||||
// it => it / 1000 == setId // 套装ID
|
||||
// //&& it / 100 % 10 == NUDArtifactStars.Value // 星级
|
||||
// && it / 10 % 10 == part // 部位
|
||||
@@ -381,7 +429,7 @@ namespace GrasscutterTools
|
||||
foreach (string item in ListSubAttributionChecked.Items)
|
||||
{
|
||||
var subId = item.Substring(0, item.IndexOf(':')).Trim();
|
||||
var times = int.Parse(item.Substring(item.LastIndexOf('x')+1));
|
||||
var times = int.Parse(item.Substring(item.LastIndexOf('x') + 1));
|
||||
if (subAttrDir.ContainsKey(subId))
|
||||
subAttrDir[subId] += times;
|
||||
else
|
||||
@@ -483,8 +531,16 @@ namespace GrasscutterTools
|
||||
{
|
||||
var id = name.Substring(0, name.IndexOf(':')).Trim();
|
||||
|
||||
SetCommand(ChkDrop.Checked ? "/drop" : "/give",
|
||||
$"{id} {NUDGameItemAmout.Value} {NUDGameItemLevel.Value}");
|
||||
if (ChkDrop.Checked)
|
||||
{
|
||||
NUDGameItemLevel.Enabled = false;
|
||||
SetCommand("/drop", $"{id} {NUDGameItemAmout.Value}");
|
||||
}
|
||||
else
|
||||
{
|
||||
NUDGameItemLevel.Enabled = true;
|
||||
SetCommand("/give", $"{id} {NUDGameItemAmout.Value} {NUDGameItemLevel.Value}");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
@@ -497,8 +553,9 @@ namespace GrasscutterTools
|
||||
|
||||
#region -- 物品记录 --
|
||||
|
||||
readonly string GiveItemCommandsRecordPath = Path.Combine(Application.LocalUserAppDataPath, "GiveItemCommands.txt");
|
||||
List<GameCommand> GiveItemCommands;
|
||||
private readonly string GiveItemCommandsRecordPath = Path.Combine(Application.LocalUserAppDataPath, "GiveItemCommands.txt");
|
||||
private List<GameCommand> GiveItemCommands;
|
||||
|
||||
private void InitGiveItemRecord()
|
||||
{
|
||||
if (File.Exists(GiveItemCommandsRecordPath))
|
||||
@@ -548,7 +605,8 @@ namespace GrasscutterTools
|
||||
ListGiveItemLogs.Items.RemoveAt(ListGiveItemLogs.SelectedIndex);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#endregion -- 物品记录 --
|
||||
|
||||
#endregion - 物品 -
|
||||
|
||||
@@ -646,8 +704,9 @@ namespace GrasscutterTools
|
||||
|
||||
#region -- 生成记录 --
|
||||
|
||||
readonly string SpawnCommandsRecordPath = Path.Combine(Application.LocalUserAppDataPath, "SpawnCommands.txt");
|
||||
List<GameCommand> SpawnCommands;
|
||||
private readonly string SpawnCommandsRecordPath = Path.Combine(Application.LocalUserAppDataPath, "SpawnCommands.txt");
|
||||
private List<GameCommand> SpawnCommands;
|
||||
|
||||
private void InitSpawnRecord()
|
||||
{
|
||||
if (File.Exists(SpawnCommandsRecordPath))
|
||||
@@ -660,6 +719,7 @@ namespace GrasscutterTools
|
||||
SpawnCommands = new List<GameCommand>();
|
||||
}
|
||||
}
|
||||
|
||||
private void SaveSpawnRecord()
|
||||
{
|
||||
File.WriteAllText(SpawnCommandsRecordPath, GetCommandsText(SpawnCommands));
|
||||
@@ -697,7 +757,7 @@ namespace GrasscutterTools
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
#endregion -- 生成记录 --
|
||||
|
||||
#endregion - 生成 -
|
||||
|
||||
@@ -714,11 +774,14 @@ namespace GrasscutterTools
|
||||
|
||||
private void ListScenes_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (ListScenes.SelectedIndex >= 0)
|
||||
if (ListScenes.SelectedIndex < 0)
|
||||
{
|
||||
var id = GameData.Scenes.Ids[ListScenes.SelectedIndex];
|
||||
SetCommand("/changescene", id.ToString());
|
||||
ChkIncludeSceneId.Enabled = false;
|
||||
return;
|
||||
}
|
||||
ChkIncludeSceneId.Enabled = true;
|
||||
var id = GameData.Scenes.Ids[ListScenes.SelectedIndex];
|
||||
SetCommand("/changescene", id.ToString());
|
||||
}
|
||||
|
||||
private void CmbClimateType_SelectedIndexChanged(object sender, EventArgs e)
|
||||
@@ -728,6 +791,14 @@ namespace GrasscutterTools
|
||||
SetCommand("/weather", $"0 {CmbClimateType.SelectedIndex}");
|
||||
}
|
||||
|
||||
private void BtnTeleport_Click(object sender, EventArgs e)
|
||||
{
|
||||
string args = $"{NUDTpX.Value} {NUDTpY.Value} {NUDTpZ.Value}";
|
||||
if (ChkIncludeSceneId.Checked && ListScenes.SelectedIndex != -1)
|
||||
args += $" {GameData.Scenes.Ids[ListScenes.SelectedIndex]}";
|
||||
SetCommand("/tp", args);
|
||||
}
|
||||
|
||||
#endregion - 场景 -
|
||||
|
||||
#region - 状态 -
|
||||
@@ -749,7 +820,7 @@ namespace GrasscutterTools
|
||||
LblStatPercent.Visible = stat.Percent;
|
||||
LblStatTip.Text = stat.Tip;
|
||||
|
||||
SetCommand("/setstats", $"{stat.ArgName} {NUDStat.Value}{(stat.Percent?"%":"")}");
|
||||
SetCommand("/setstats", $"{stat.ArgName} {NUDStat.Value}{(stat.Percent ? "%" : "")}");
|
||||
}
|
||||
|
||||
private void LnkSetTalentClicked(object sender, LinkLabelLinkClickedEventArgs e)
|
||||
@@ -773,7 +844,7 @@ namespace GrasscutterTools
|
||||
var perm = CmbPerm.Text.Trim();
|
||||
if (string.IsNullOrEmpty(perm))
|
||||
{
|
||||
MessageBox.Show("权限不能为空!", "错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
MessageBox.Show(Resources.PermissionCannotBeEmpty, Resources.Error, MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
return;
|
||||
}
|
||||
SetCommand($"/permission {(sender as Button).Tag} @{uid} {perm}");
|
||||
@@ -784,7 +855,7 @@ namespace GrasscutterTools
|
||||
var username = TxtAccountUserName.Text.Trim();
|
||||
if (string.IsNullOrEmpty(username))
|
||||
{
|
||||
MessageBox.Show("用户名不能为空!", "错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
MessageBox.Show(Resources.UsernameCannotBeEmpty, Resources.Error, MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
return;
|
||||
}
|
||||
SetCommand($"/account {(sender as Button).Tag} {username} {(ChkAccountSetUid.Checked ? NUDAccountUid.Value.ToString() : "")}");
|
||||
@@ -802,13 +873,13 @@ namespace GrasscutterTools
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
MessageBox.Show("浏览器打开失败,你可以通过以下链接手动访问:\n"
|
||||
+ "https://github.com/jie65535/GrasscutterCommandGenerator",
|
||||
"错误", MessageBoxButtons.OK, MessageBoxIcon.Warning);
|
||||
MessageBox.Show(Resources.BrowserOpenFailedTip
|
||||
+ "\n https://github.com/jie65535/GrasscutterCommandGenerator",
|
||||
Resources.Error, MessageBoxButtons.OK, MessageBoxIcon.Warning);
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
#endregion - 关于 -
|
||||
|
||||
#region - 命令 -
|
||||
|
||||
@@ -817,6 +888,8 @@ namespace GrasscutterTools
|
||||
TxtCommand.Text = command;
|
||||
if (ChkAutoCopy.Checked)
|
||||
CopyCommand();
|
||||
if (ModifierKeys == Keys.Control)
|
||||
OnOpenCommandInvoke();
|
||||
}
|
||||
|
||||
private void SetCommand(string command, string args)
|
||||
@@ -852,20 +925,33 @@ namespace GrasscutterTools
|
||||
btn.Enabled = true;
|
||||
}
|
||||
|
||||
private void FormMain_KeyDown(object sender, KeyEventArgs e)
|
||||
{
|
||||
if (e.KeyCode == Keys.F5)
|
||||
{
|
||||
OnOpenCommandInvoke();
|
||||
}
|
||||
}
|
||||
|
||||
private void ShowTip(string message, Control control)
|
||||
{
|
||||
TTip.Show(message, control, 0, control.Size.Height, 3000);
|
||||
}
|
||||
|
||||
#endregion - 通用 -
|
||||
|
||||
#region - 命令记录 -
|
||||
|
||||
List<GameCommand> GetCommands(string commandsText)
|
||||
private List<GameCommand> GetCommands(string commandsText)
|
||||
{
|
||||
var lines = commandsText.Split('\n');
|
||||
List<GameCommand> commands = new List<GameCommand>(lines.Length/2);
|
||||
for (int i = 0; i < lines.Length-1; i += 2)
|
||||
commands.Add(new GameCommand(lines[i].Trim(), lines[i+1].Trim()));
|
||||
List<GameCommand> commands = new List<GameCommand>(lines.Length / 2);
|
||||
for (int i = 0; i < lines.Length - 1; i += 2)
|
||||
commands.Add(new GameCommand(lines[i].Trim(), lines[i + 1].Trim()));
|
||||
return commands;
|
||||
}
|
||||
|
||||
string GetCommandsText(List<GameCommand> commands)
|
||||
private string GetCommandsText(List<GameCommand> commands)
|
||||
{
|
||||
StringBuilder builder = new StringBuilder();
|
||||
foreach (var cmd in commands)
|
||||
@@ -876,20 +962,165 @@ namespace GrasscutterTools
|
||||
return builder.ToString();
|
||||
}
|
||||
|
||||
#endregion
|
||||
#endregion - 命令记录 -
|
||||
|
||||
#region - 远程 -
|
||||
|
||||
private OpenCommandAPI OC;
|
||||
|
||||
private async void BtnQueryServerStatus_Click(object sender, EventArgs e)
|
||||
{
|
||||
var btn = sender as Button;
|
||||
btn.Enabled = false;
|
||||
btn.Cursor = Cursors.WaitCursor;
|
||||
try
|
||||
{
|
||||
try
|
||||
{
|
||||
var status = await DispatchServerAPI.QueryServerStatus(TxtHost.Text);
|
||||
LblServerVersion.Text = status.Version;
|
||||
LblPlayerCount.Text = status.PlayerCount.ToString();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
MessageBox.Show("查询服务端状态失败:" + ex.Message, Resources.Error, MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
}
|
||||
|
||||
OC = new OpenCommandAPI(TxtHost.Text);
|
||||
if (await OC.Ping())
|
||||
{
|
||||
LblOpenCommandSupport.Text = "√";
|
||||
LblOpenCommandSupport.ForeColor = Color.Green;
|
||||
GrpRemoteCommand.Enabled = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
LblOpenCommandSupport.Text = "×";
|
||||
LblOpenCommandSupport.ForeColor = Color.Red;
|
||||
GrpRemoteCommand.Enabled = false;
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
MessageBox.Show(ex.Message, Resources.Error, MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
}
|
||||
finally
|
||||
{
|
||||
btn.Cursor = Cursors.Default;
|
||||
btn.Enabled = true;
|
||||
}
|
||||
}
|
||||
|
||||
private async void BtnSendVerificationCode_Click(object sender, EventArgs e)
|
||||
{
|
||||
var btn = sender as Button;
|
||||
var t = btn.Text;
|
||||
btn.Enabled = false;
|
||||
NUDRemotePlayerId.Enabled = false;
|
||||
try
|
||||
{
|
||||
btn.Text = Resources.CodeSending;
|
||||
await OC.SendCode((int)NUDRemotePlayerId.Value);
|
||||
BtnConnectOpenCommand.Enabled = true;
|
||||
NUDVerificationCode.Enabled = true;
|
||||
NUDVerificationCode.Focus();
|
||||
for (int i = 60; i > 0 && !OC.CanInvoke; i--)
|
||||
{
|
||||
btn.Text = string.Format(Resources.CodeResendTip, i);
|
||||
await Task.Delay(1000);
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
MessageBox.Show(ex.Message, Resources.Error, MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
}
|
||||
finally
|
||||
{
|
||||
btn.Text = t;
|
||||
btn.Enabled = true;
|
||||
NUDRemotePlayerId.Enabled = true;
|
||||
}
|
||||
}
|
||||
|
||||
private async void BtnConnectOpenCommand_Click(object sender, EventArgs e)
|
||||
{
|
||||
var btn = sender as Button;
|
||||
btn.Enabled = false;
|
||||
try
|
||||
{
|
||||
await OC.Verify((int)NUDVerificationCode.Value);
|
||||
GrpRemoteCommand.Enabled = false;
|
||||
BtnInvokeOpenCommand.Focus();
|
||||
ShowTip(Resources.ConnectedTip, BtnInvokeOpenCommand);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
MessageBox.Show(ex.Message, Resources.Error, MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
}
|
||||
finally
|
||||
{
|
||||
btn.Cursor = Cursors.Default;
|
||||
btn.Enabled = true;
|
||||
}
|
||||
}
|
||||
|
||||
private void OnOpenCommandInvoke()
|
||||
{
|
||||
BtnInvokeOpenCommand_Click(BtnInvokeOpenCommand, EventArgs.Empty);
|
||||
}
|
||||
|
||||
private async void BtnInvokeOpenCommand_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (OC == null || !OC.CanInvoke)
|
||||
{
|
||||
ShowTip(Resources.RequireOpenCommandTip, BtnInvokeOpenCommand);
|
||||
TCMain.SelectedTab = TPRemoteCall;
|
||||
return;
|
||||
}
|
||||
if (TxtCommand.Text.Length < 2)
|
||||
{
|
||||
ShowTip(Resources.CommandContentCannotBeEmpty, TxtCommand);
|
||||
return;
|
||||
}
|
||||
var cmd = TxtCommand.Text.Substring(1);
|
||||
var btn = sender as Button;
|
||||
btn.Enabled = false;
|
||||
try
|
||||
{
|
||||
var msg = await OC.Invoke(cmd);
|
||||
ShowTip(msg, btn);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
MessageBox.Show(ex.Message, Resources.Error, MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
}
|
||||
finally
|
||||
{
|
||||
btn.Cursor = Cursors.Default;
|
||||
btn.Enabled = true;
|
||||
}
|
||||
}
|
||||
|
||||
private void LnkOpenCommandLabel_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
System.Diagnostics.Process.Start("https://github.com/jie65535/gc-opencommand-plugin");
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
MessageBox.Show(Resources.BrowserOpenFailedTip
|
||||
+ "\n https://github.com/jie65535/gc-opencommand-plugin",
|
||||
Resources.Error, MessageBoxButtons.OK, MessageBoxIcon.Warning);
|
||||
}
|
||||
}
|
||||
|
||||
private void LnkRCHelp_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
|
||||
{
|
||||
MessageBox.Show("TODO:正在开发中", "TODO");
|
||||
MessageBox.Show(Resources.OpenCommandHelp, Resources.Help, MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
}
|
||||
|
||||
private void BtnPingHost_Click(object sender, EventArgs e)
|
||||
{
|
||||
MessageBox.Show("TODO:正在开发中", "TODO");
|
||||
}
|
||||
#endregion - 远程 -
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -1,7 +1,24 @@
|
||||
using System;
|
||||
/**
|
||||
* Grasscutter Tools
|
||||
* Copyright (C) 2022 jie65535
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as published
|
||||
* by the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
**/
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text.RegularExpressions;
|
||||
using System.Windows.Forms;
|
||||
@@ -55,7 +72,7 @@ namespace GrasscutterTools
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
MessageBox.Show(ex.Message, "错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
MessageBox.Show(ex.Message, Resources.Error, MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
}
|
||||
finally
|
||||
{
|
||||
@@ -92,7 +109,7 @@ namespace GrasscutterTools
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
MessageBox.Show(ex.Message, "错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
MessageBox.Show(ex.Message, Resources.Error, MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
}
|
||||
finally
|
||||
{
|
||||
@@ -137,7 +154,7 @@ namespace GrasscutterTools
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
MessageBox.Show(ex.Message, "错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
MessageBox.Show(ex.Message, Resources.Error, MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -150,7 +167,8 @@ namespace GrasscutterTools
|
||||
.Select(kv => new { Hash = kv.Key, Id = kv.Value, Text = data.TextMap[kv.Key] })
|
||||
.Concat(
|
||||
data.TextMap.Where(kv => r.Match(kv.Key).Success || r.Match(kv.Value).Success)
|
||||
.Select(kv => new {
|
||||
.Select(kv => new
|
||||
{
|
||||
Hash = kv.Key,
|
||||
Id = data.ManualTextMap.TryGetValue(kv.Key, out string id) ? id : "",
|
||||
Text = kv.Value
|
||||
@@ -179,6 +197,5 @@ namespace GrasscutterTools
|
||||
if (e.KeyCode == Keys.Enter)
|
||||
BtnSearch_Click(sender, e);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
@@ -1,13 +1,25 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
/**
|
||||
* Grasscutter Tools
|
||||
* Copyright (C) 2022 jie65535
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as published
|
||||
* by the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
**/
|
||||
namespace GrasscutterTools.Game.Gacha
|
||||
{
|
||||
public enum BannerType
|
||||
{
|
||||
STANDARD, EVENT, WEAPON
|
||||
}
|
||||
}
|
||||
}
|
@@ -1,4 +1,22 @@
|
||||
using System.ComponentModel;
|
||||
/**
|
||||
* Grasscutter Tools
|
||||
* Copyright (C) 2022 jie65535
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as published
|
||||
* by the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
**/
|
||||
using System.ComponentModel;
|
||||
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Converters;
|
||||
@@ -117,6 +135,5 @@ namespace GrasscutterTools.Game.Gacha
|
||||
/// </summary>
|
||||
[JsonProperty("hardPity", DefaultValueHandling = DefaultValueHandling.Ignore), DefaultValue(90)]
|
||||
public int HardPity { get; set; } = 90;
|
||||
|
||||
}
|
||||
}
|
@@ -1,15 +1,33 @@
|
||||
namespace GrasscutterTools.Game
|
||||
/**
|
||||
* Grasscutter Tools
|
||||
* Copyright (C) 2022 jie65535
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as published
|
||||
* by the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
**/
|
||||
namespace GrasscutterTools.Game
|
||||
{
|
||||
public class GameCommand
|
||||
{
|
||||
public GameCommand(string name, string command)
|
||||
{
|
||||
Name=name;
|
||||
Command=command;
|
||||
Name = name;
|
||||
Command = command;
|
||||
}
|
||||
|
||||
public string Name { get; set; }
|
||||
|
||||
public string Command { get; set; }
|
||||
}
|
||||
}
|
||||
}
|
@@ -1,4 +1,22 @@
|
||||
using GrasscutterTools.Properties;
|
||||
/**
|
||||
* Grasscutter Tools
|
||||
* Copyright (C) 2022 jie65535
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as published
|
||||
* by the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
**/
|
||||
using GrasscutterTools.Properties;
|
||||
|
||||
namespace GrasscutterTools.Game
|
||||
{
|
||||
@@ -20,6 +38,7 @@ namespace GrasscutterTools.Game
|
||||
Weapons = new ItemMap(Resources.Weapon);
|
||||
WeaponColors = new ItemMap(Resources.WeaponColor);
|
||||
Ornaments = new ItemMap(Resources.Ornament);
|
||||
GachaBannerPrefabs = new ItemMap(Resources.GachaBennerPrefab);
|
||||
}
|
||||
|
||||
public static ItemMap Animals { get; private set; }
|
||||
@@ -50,5 +69,6 @@ namespace GrasscutterTools.Game
|
||||
|
||||
public static ItemMap Ornaments { get; private set; }
|
||||
|
||||
public static ItemMap GachaBannerPrefabs { get; private set; }
|
||||
}
|
||||
}
|
@@ -1,4 +1,22 @@
|
||||
using System.Collections.Generic;
|
||||
/**
|
||||
* Grasscutter Tools
|
||||
* Copyright (C) 2022 jie65535
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as published
|
||||
* by the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
**/
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace GrasscutterTools.Game
|
||||
{
|
||||
@@ -19,7 +37,7 @@ namespace GrasscutterTools.Game
|
||||
var si = line.IndexOf(':');
|
||||
if (si > 0 && int.TryParse(line.Substring(0, si).Trim(), out int id))
|
||||
{
|
||||
var name = line.Substring(si+1).Trim();
|
||||
var name = line.Substring(si + 1).Trim();
|
||||
if (!string.IsNullOrEmpty(name))
|
||||
{
|
||||
//IdMap[id] = name;
|
||||
@@ -41,17 +59,16 @@ namespace GrasscutterTools.Game
|
||||
//List<int> IdList;
|
||||
//List<string> NameList;
|
||||
|
||||
|
||||
public int Count => Ids.Length;
|
||||
|
||||
//public string this[int id] => IdMap[id];
|
||||
|
||||
|
||||
//public int this[string name] => NameMap[name];
|
||||
|
||||
|
||||
public int[] Ids { get; }
|
||||
|
||||
public string[] Names { get; }
|
||||
|
||||
public string[] Lines { get; }
|
||||
}
|
||||
}
|
||||
}
|
@@ -1,4 +1,21 @@
|
||||
using System.Collections.Generic;
|
||||
/**
|
||||
* Grasscutter Tools
|
||||
* Copyright (C) 2022 jie65535
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as published
|
||||
* by the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
**/
|
||||
using System.Text;
|
||||
|
||||
using GrasscutterTools.Properties;
|
||||
@@ -13,9 +30,9 @@ namespace GrasscutterTools.Game
|
||||
{
|
||||
public Stat(string name, string argName, bool percent, string tip = "")
|
||||
{
|
||||
Name=name;
|
||||
ArgName=argName;
|
||||
Percent=percent;
|
||||
Name = name;
|
||||
ArgName = argName;
|
||||
Percent = percent;
|
||||
Tip = tip;
|
||||
}
|
||||
|
||||
|
@@ -1,9 +1,24 @@
|
||||
using System;
|
||||
/**
|
||||
* Grasscutter Tools
|
||||
* Copyright (C) 2022 jie65535
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as published
|
||||
* by the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
**/
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
using Newtonsoft.Json;
|
||||
|
||||
@@ -22,7 +37,7 @@ namespace GrasscutterTools.Game
|
||||
public string[] TextMapFilePaths;
|
||||
public string[] TextMapFiles;
|
||||
|
||||
void LoadManualTextMap(string manualTextMapPath)
|
||||
private void LoadManualTextMap(string manualTextMapPath)
|
||||
{
|
||||
using (var fs = File.OpenRead(manualTextMapPath))
|
||||
using (var sr = new StreamReader(fs))
|
||||
@@ -41,7 +56,7 @@ namespace GrasscutterTools.Game
|
||||
}
|
||||
}
|
||||
|
||||
void LoadTextMaps(string textMapDirPath)
|
||||
private void LoadTextMaps(string textMapDirPath)
|
||||
{
|
||||
TextMapFilePaths = Directory.GetFiles(textMapDirPath, "TextMap*.json");
|
||||
if (TextMapFilePaths.Length == 0)
|
||||
@@ -65,6 +80,5 @@ namespace GrasscutterTools.Game
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
@@ -40,6 +40,9 @@
|
||||
<PropertyGroup>
|
||||
<ApplicationIcon>Resources\IconGrasscutter.ico</ApplicationIcon>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<ApplicationManifest>Properties\app.manifest</ApplicationManifest>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="Costura, Version=5.7.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Costura.Fody.5.7.0\lib\netstandard1.0\Costura.dll</HintPath>
|
||||
@@ -192,6 +195,8 @@
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="DispatchServer\DispatchServerAPI.cs" />
|
||||
<Compile Include="DispatchServer\Model\ServerStatus.cs" />
|
||||
<Compile Include="FormGachaBannerEditor.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
@@ -217,10 +222,11 @@
|
||||
<Compile Include="Game\ItemMap.cs" />
|
||||
<Compile Include="Game\SetStatsCommand.cs" />
|
||||
<Compile Include="Game\TextMapData.cs" />
|
||||
<Compile Include="MojoConsole\MojoConsole.cs" />
|
||||
<Compile Include="OpenCommand\OpenCommandAPI.cs" />
|
||||
<Compile Include="MultiLanguage.cs" />
|
||||
<Compile Include="Program.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="Utils\HttpHelper.cs" />
|
||||
<EmbeddedResource Include="FormGachaBannerEditor.en-us.resx">
|
||||
<DependentUpon>FormGachaBannerEditor.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
@@ -229,9 +235,11 @@
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="FormMain.en-us.resx">
|
||||
<DependentUpon>FormMain.cs</DependentUpon>
|
||||
<SubType>Designer</SubType>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="FormMain.resx">
|
||||
<DependentUpon>FormMain.cs</DependentUpon>
|
||||
<SubType>Designer</SubType>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="FormTextMapBrowser.en-US.resx">
|
||||
<DependentUpon>FormTextMapBrowser.cs</DependentUpon>
|
||||
@@ -260,6 +268,7 @@
|
||||
<DesignTime>True</DesignTime>
|
||||
</Compile>
|
||||
<None Include="packages.config" />
|
||||
<None Include="Properties\app.manifest" />
|
||||
<None Include="Properties\Settings.settings">
|
||||
<Generator>SettingsSingleFileGenerator</Generator>
|
||||
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
|
||||
@@ -284,6 +293,7 @@
|
||||
<Content Include="Resources\en-us\ArtifactSubAttribution.txt" />
|
||||
<Content Include="Resources\en-us\Avatar.txt" />
|
||||
<Content Include="Resources\en-us\CustomCommands.txt" />
|
||||
<Content Include="Resources\en-us\GachaBennerPrefab.txt" />
|
||||
<Content Include="Resources\en-us\Item.txt" />
|
||||
<Content Include="Resources\en-us\Monster.txt" />
|
||||
<Content Include="Resources\en-us\NPC.txt" />
|
||||
@@ -304,6 +314,7 @@
|
||||
<Content Include="Resources\zh-cn\Avatar.txt" />
|
||||
<Content Include="Resources\zh-cn\CustomCommands.txt" />
|
||||
<Content Include="Resources\AvatarColor.txt" />
|
||||
<Content Include="Resources\zh-cn\GachaBennerPrefab.txt" />
|
||||
<Content Include="Resources\zh-cn\Item.txt" />
|
||||
<Content Include="Resources\zh-cn\Monster.txt" />
|
||||
<Content Include="Resources\zh-cn\NPC.txt" />
|
||||
@@ -311,7 +322,18 @@
|
||||
<Content Include="Resources\zh-cn\Scene.txt" />
|
||||
<Content Include="Resources\zh-cn\Weapon.txt" />
|
||||
</ItemGroup>
|
||||
<ItemGroup />
|
||||
<ItemGroup>
|
||||
<BootstrapperPackage Include=".NETFramework,Version=v4.8">
|
||||
<Visible>False</Visible>
|
||||
<ProductName>Microsoft .NET Framework 4.8 %28x86 和 x64%29</ProductName>
|
||||
<Install>true</Install>
|
||||
</BootstrapperPackage>
|
||||
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
|
||||
<Visible>False</Visible>
|
||||
<ProductName>.NET Framework 3.5 SP1</ProductName>
|
||||
<Install>false</Install>
|
||||
</BootstrapperPackage>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
|
||||
<PropertyGroup>
|
||||
@@ -321,7 +343,9 @@
|
||||
<Error Condition="!Exists('..\packages\Costura.Fody.5.7.0\build\Costura.Fody.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Costura.Fody.5.7.0\build\Costura.Fody.targets'))" />
|
||||
<Error Condition="!Exists('..\packages\Fody.6.6.1\build\Fody.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Fody.6.6.1\build\Fody.targets'))" />
|
||||
<Error Condition="!Exists('..\packages\Resource.Embedder.2.2.0\build\Resource.Embedder.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Resource.Embedder.2.2.0\build\Resource.Embedder.props'))" />
|
||||
<Error Condition="!Exists('..\packages\NETStandard.Library.2.0.3\build\netstandard2.0\NETStandard.Library.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\NETStandard.Library.2.0.3\build\netstandard2.0\NETStandard.Library.targets'))" />
|
||||
</Target>
|
||||
<Import Project="..\packages\Costura.Fody.5.7.0\build\Costura.Fody.targets" Condition="Exists('..\packages\Costura.Fody.5.7.0\build\Costura.Fody.targets')" />
|
||||
<Import Project="..\packages\Fody.6.6.1\build\Fody.targets" Condition="Exists('..\packages\Fody.6.6.1\build\Fody.targets')" />
|
||||
<Import Project="..\packages\NETStandard.Library.2.0.3\build\netstandard2.0\NETStandard.Library.targets" Condition="Exists('..\packages\NETStandard.Library.2.0.3\build\netstandard2.0\NETStandard.Library.targets')" />
|
||||
</Project>
|
@@ -1,89 +0,0 @@
|
||||
using System;
|
||||
using System.Net.Http;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace GrasscutterTools.MojoConsole
|
||||
{
|
||||
internal class MojoConsole
|
||||
{
|
||||
static readonly HttpClient httpClient = new HttpClient();
|
||||
|
||||
public string Host { get; set; }
|
||||
|
||||
private string API => Host + "/mojoplus/api";
|
||||
|
||||
public string Key { get; set; }
|
||||
|
||||
public async Task<string> Invoke(string payload)
|
||||
{
|
||||
var response = await DoRequest(new Request(Key, "invoke", payload));
|
||||
if (response.Code == 500)
|
||||
throw new InvokeException(response.Payload);
|
||||
return response.Payload;
|
||||
}
|
||||
|
||||
public async Task<bool> Ping()
|
||||
{
|
||||
try
|
||||
{
|
||||
var response = await DoRequest(new Request(Key, "ping"));
|
||||
return response?.Code == 200;
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
private async Task<Response> DoRequest(Request request)
|
||||
{
|
||||
var content = new StringContent(JsonConvert.SerializeObject(request), Encoding.UTF8, "application/json");
|
||||
var response = await httpClient.PostAsync(API, content);
|
||||
var responseString = await response.Content.ReadAsStringAsync();
|
||||
return JsonConvert.DeserializeObject<Response>(responseString);
|
||||
}
|
||||
|
||||
public class Request
|
||||
{
|
||||
public Request(string k, string method, string payload = "")
|
||||
{
|
||||
K = k;
|
||||
Method = method;
|
||||
Payload = payload;
|
||||
}
|
||||
|
||||
[JsonProperty("k")]
|
||||
public string K { get; set; }
|
||||
|
||||
[JsonProperty("request")]
|
||||
public string Method { get; set; }
|
||||
|
||||
[JsonProperty("payload")]
|
||||
public string Payload { get; set; }
|
||||
}
|
||||
|
||||
public class Response
|
||||
{
|
||||
[JsonProperty("message")]
|
||||
public string Message { get; set; }
|
||||
|
||||
[JsonProperty("code")]
|
||||
public int Code { get; set; }
|
||||
|
||||
|
||||
[JsonProperty("payload")]
|
||||
public string Payload { get; set; }
|
||||
}
|
||||
|
||||
|
||||
internal class InvokeException : Exception
|
||||
{
|
||||
public InvokeException(string message) : base(message)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@@ -1,11 +1,28 @@
|
||||
using System;
|
||||
/**
|
||||
* Grasscutter Tools
|
||||
* Copyright (C) 2022 jie65535
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as published
|
||||
* by the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
**/
|
||||
using System;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace GrasscutterTools
|
||||
{
|
||||
static class MultiLanguage
|
||||
internal static class MultiLanguage
|
||||
{
|
||||
|
||||
public static string DefaultLanguage = "zh-CN";
|
||||
|
||||
public static void SetDefaultLanguage(string lang)
|
||||
@@ -16,7 +33,6 @@ namespace GrasscutterTools
|
||||
Properties.Settings.Default.Save();
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 加载语言
|
||||
/// </summary>
|
||||
@@ -80,4 +96,4 @@ namespace GrasscutterTools
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
123
Source/GrasscutterTools/OpenCommand/OpenCommandAPI.cs
Normal file
123
Source/GrasscutterTools/OpenCommand/OpenCommandAPI.cs
Normal file
@@ -0,0 +1,123 @@
|
||||
/**
|
||||
* Grasscutter Tools
|
||||
* Copyright (C) 2022 jie65535
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as published
|
||||
* by the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
**/
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
using GrasscutterTools.Utils;
|
||||
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace GrasscutterTools.OpenCommand
|
||||
{
|
||||
public class OpenCommandAPI
|
||||
{
|
||||
public OpenCommandAPI(string host)
|
||||
{
|
||||
Host = host;
|
||||
API = host + "/opencommand/api";
|
||||
}
|
||||
|
||||
public string Host { get; }
|
||||
|
||||
private readonly string API;
|
||||
|
||||
public string Token { get; set; }
|
||||
|
||||
public bool CanInvoke { get; private set; }
|
||||
|
||||
public async Task<bool> Ping()
|
||||
{
|
||||
try
|
||||
{
|
||||
var response = await DoRequest("ping");
|
||||
return response.RetCode == 200;
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public async Task SendCode(int playerId)
|
||||
{
|
||||
var response = await DoRequest("sendCode", playerId);
|
||||
Token = response.Data as string;
|
||||
}
|
||||
|
||||
public async Task Verify(int code)
|
||||
{
|
||||
await DoRequest("verify", code);
|
||||
CanInvoke = true;
|
||||
}
|
||||
|
||||
public async Task<string> Invoke(string command)
|
||||
{
|
||||
var response = await DoRequest("command", command);
|
||||
return response.Data as string;
|
||||
}
|
||||
|
||||
private async Task<Response> DoRequest(string action, object data = null)
|
||||
{
|
||||
var response = await HttpHelper.PostAsync<Response>(API, new Request(Token, action, data));
|
||||
if (response.RetCode == 401)
|
||||
Token = "";
|
||||
if (response.RetCode != 200)
|
||||
throw new InvokeException(response.Message);
|
||||
return response;
|
||||
}
|
||||
|
||||
public class Request
|
||||
{
|
||||
public Request(string token, string action, object data)
|
||||
{
|
||||
Token = token;
|
||||
Action = action;
|
||||
Data = data;
|
||||
}
|
||||
|
||||
[JsonProperty("token")]
|
||||
public string Token { get; set; }
|
||||
|
||||
[JsonProperty("action")]
|
||||
public string Action { get; set; }
|
||||
|
||||
[JsonProperty("data")]
|
||||
public object Data { get; set; }
|
||||
}
|
||||
|
||||
public class Response
|
||||
{
|
||||
[JsonProperty("retcode")]
|
||||
public int RetCode { get; set; }
|
||||
|
||||
[JsonProperty("message")]
|
||||
public string Message { get; set; }
|
||||
|
||||
[JsonProperty("data")]
|
||||
public object Data { get; set; }
|
||||
}
|
||||
|
||||
internal class InvokeException : Exception
|
||||
{
|
||||
public InvokeException(string message) : base(message)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@@ -1,22 +1,92 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
/**
|
||||
* Grasscutter Tools
|
||||
* Copyright (C) 2022 jie65535
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as published
|
||||
* by the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
**/
|
||||
using System;
|
||||
using System.Text;
|
||||
using System.Threading;
|
||||
using System.Windows.Forms;
|
||||
|
||||
using GrasscutterTools.Properties;
|
||||
|
||||
namespace GrasscutterTools
|
||||
{
|
||||
static class Program
|
||||
internal static class Program
|
||||
{
|
||||
/// <summary>
|
||||
/// 应用程序的主入口点。
|
||||
/// </summary>
|
||||
[STAThread]
|
||||
static void Main()
|
||||
private static void Main()
|
||||
{
|
||||
Application.EnableVisualStyles();
|
||||
Application.SetCompatibleTextRenderingDefault(false);
|
||||
|
||||
//设置应用程序处理异常方式:ThreadException处理
|
||||
Application.SetUnhandledExceptionMode(UnhandledExceptionMode.CatchException);
|
||||
//处理线程异常
|
||||
Application.ThreadException += Application_ThreadException;
|
||||
//处理非UI线程异常
|
||||
AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException;
|
||||
|
||||
Application.Run(new FormMain());
|
||||
}
|
||||
|
||||
#region - 全局异常处理 -
|
||||
|
||||
private static void Application_ThreadException(object sender, ThreadExceptionEventArgs e)
|
||||
{
|
||||
string str = GetExceptionMsg(e.Exception, e.ToString());
|
||||
MessageBox.Show(str, Resources.Error, MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
}
|
||||
|
||||
private static void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e)
|
||||
{
|
||||
string str = GetExceptionMsg(e.ExceptionObject as Exception, e.ToString());
|
||||
MessageBox.Show(str, Resources.Error, MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 生成自定义异常消息
|
||||
/// </summary>
|
||||
/// <param name="ex">异常对象</param>
|
||||
/// <param name="backStr">备用异常消息:当ex为null时有效</param>
|
||||
/// <returns>异常字符串文本</returns>
|
||||
private static string GetExceptionMsg(Exception ex, string backStr)
|
||||
{
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.AppendLine("****************************异常文本****************************");
|
||||
sb.AppendLine("【出现时间】:" + DateTime.Now.ToString());
|
||||
if (ex != null)
|
||||
{
|
||||
sb.AppendLine("【异常类型】:" + ex.GetType().Name);
|
||||
sb.AppendLine("【异常信息】:" + ex.Message);
|
||||
#if DEBUG
|
||||
sb.AppendLine("【堆栈调用】:" + ex.StackTrace);
|
||||
#endif
|
||||
}
|
||||
else
|
||||
{
|
||||
sb.AppendLine("【未处理异常】:" + backStr);
|
||||
}
|
||||
sb.AppendLine("***************************************************************");
|
||||
return sb.ToString();
|
||||
}
|
||||
|
||||
#endregion - 全局异常处理 -
|
||||
}
|
||||
}
|
||||
}
|
@@ -21,7 +21,7 @@ using System.Runtime.InteropServices;
|
||||
// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
|
||||
[assembly: Guid("b26333ff-5560-4cba-af3c-4b80db6f8025")]
|
||||
|
||||
// 程序集的版本信息由下列四个值组成:
|
||||
// 程序集的版本信息由下列四个值组成:
|
||||
//
|
||||
// 主版本
|
||||
// 次版本
|
||||
@@ -31,5 +31,5 @@ using System.Runtime.InteropServices;
|
||||
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
|
||||
//通过使用 "*",如下所示:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("0.10.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0")]
|
||||
[assembly: AssemblyVersion("1.1.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0")]
|
196
Source/GrasscutterTools/Properties/Resources.Designer.cs
generated
196
Source/GrasscutterTools/Properties/Resources.Designer.cs
generated
@@ -283,6 +283,15 @@ namespace GrasscutterTools.Properties {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找类似 确认删除? 的本地化字符串。
|
||||
/// </summary>
|
||||
internal static string AskConfirmDeletion {
|
||||
get {
|
||||
return ResourceManager.GetString("AskConfirmDeletion", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找类似 10000001: 凯特
|
||||
///10000002: 神里绫华
|
||||
@@ -385,6 +394,15 @@ namespace GrasscutterTools.Properties {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找类似 浏览器打开失败,你可以通过以下链接手动访问: 的本地化字符串。
|
||||
/// </summary>
|
||||
internal static string BrowserOpenFailedTip {
|
||||
get {
|
||||
return ResourceManager.GetString("BrowserOpenFailedTip", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找类似 无,晴天,多云,雨天,雷暴,雪天,雾天 的本地化字符串。
|
||||
/// </summary>
|
||||
@@ -394,6 +412,60 @@ namespace GrasscutterTools.Properties {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找类似 {0} 秒后可重发 的本地化字符串。
|
||||
/// </summary>
|
||||
internal static string CodeResendTip {
|
||||
get {
|
||||
return ResourceManager.GetString("CodeResendTip", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找类似 发送中... 的本地化字符串。
|
||||
/// </summary>
|
||||
internal static string CodeSending {
|
||||
get {
|
||||
return ResourceManager.GetString("CodeSending", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找类似 命令内容不能为空 的本地化字符串。
|
||||
/// </summary>
|
||||
internal static string CommandContentCannotBeEmpty {
|
||||
get {
|
||||
return ResourceManager.GetString("CommandContentCannotBeEmpty", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找类似 未找到该命令 的本地化字符串。
|
||||
/// </summary>
|
||||
internal static string CommandNotFound {
|
||||
get {
|
||||
return ResourceManager.GetString("CommandNotFound", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找类似 命令标签不能为空 的本地化字符串。
|
||||
/// </summary>
|
||||
internal static string CommandTagCannotBeEmpty {
|
||||
get {
|
||||
return ResourceManager.GetString("CommandTagCannotBeEmpty", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找类似 现在你可以远程执行命令了哦! 的本地化字符串。
|
||||
/// </summary>
|
||||
internal static string ConnectedTip {
|
||||
get {
|
||||
return ResourceManager.GetString("ConnectedTip", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找类似 无敌
|
||||
////godmode
|
||||
@@ -450,6 +522,67 @@ namespace GrasscutterTools.Properties {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找类似 错误 的本地化字符串。
|
||||
/// </summary>
|
||||
internal static string Error {
|
||||
get {
|
||||
return ResourceManager.GetString("Error", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找类似 007: 初行者推荐祈愿
|
||||
///008: 奔行世间
|
||||
///009: 杯装之诗
|
||||
///010: 黎明巡礼
|
||||
///011: 南风之眷
|
||||
///012: 靖妖傩舞
|
||||
///013: 神铸赋形
|
||||
///015: 闪焰的驻足
|
||||
///016: 初行者推荐祈愿
|
||||
///017: 奔行世间
|
||||
///018: 闪焰的驻足
|
||||
///019: 杯装之诗
|
||||
///020: 神铸赋形
|
||||
///021: 神铸赋形
|
||||
///022: 奔行世间
|
||||
///023: 暂别冬都
|
||||
///024: 陵薮市朝
|
||||
///027: 深秘之息
|
||||
///028: 浮生孰来
|
||||
///031: 烟火之邀
|
||||
///032: 鱼龙灯昼
|
||||
///033: 赤团开时
|
||||
///036: 杯装之诗
|
||||
///037: 暂别冬都
|
||||
///040: 陵薮市朝
|
||||
///041: 浪涌之瞬
|
||||
///045: 叶落风随
|
||||
///048: 白鹭之庭
|
||||
///049: 焰色天河
|
||||
///052: 影寂天下人
|
||||
///053: 浮岳虹珠
|
||||
///061: 鬼门斗宴
|
||||
///065: 出尘入世
|
||||
///071: 华紫樱绯
|
||||
///076: 苍流踏花 的本地化字符串。
|
||||
/// </summary>
|
||||
internal static string GachaBennerPrefab {
|
||||
get {
|
||||
return ResourceManager.GetString("GachaBennerPrefab", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找类似 帮助 的本地化字符串。
|
||||
/// </summary>
|
||||
internal static string Help {
|
||||
get {
|
||||
return ResourceManager.GetString("Help", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找类似于 (图标) 的 System.Drawing.Icon 类型的本地化资源。
|
||||
/// </summary>
|
||||
@@ -611,6 +744,15 @@ namespace GrasscutterTools.Properties {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找类似 1. 填写正确的UID\n2. 向玩家发送验证码\n3. 输入正确的验证码\n4. 连接\n5. 享受 的本地化字符串。
|
||||
/// </summary>
|
||||
internal static string OpenCommandHelp {
|
||||
get {
|
||||
return ResourceManager.GetString("OpenCommandHelp", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找类似 369101: 翠目猫
|
||||
///369102: 北地犬
|
||||
@@ -661,6 +803,15 @@ namespace GrasscutterTools.Properties {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找类似 要设置的权限不能为空! 的本地化字符串。
|
||||
/// </summary>
|
||||
internal static string PermissionCannotBeEmpty {
|
||||
get {
|
||||
return ResourceManager.GetString("PermissionCannotBeEmpty", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找类似 *
|
||||
///player.*
|
||||
@@ -701,6 +852,15 @@ namespace GrasscutterTools.Properties {
|
||||
return ResourceManager.GetString("Permissions", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找类似 请先连接到支持[OpenCommand]的服务器 的本地化字符串。
|
||||
/// </summary>
|
||||
internal static string RequireOpenCommandTip {
|
||||
get {
|
||||
return ResourceManager.GetString("RequireOpenCommandTip", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找类似 1 : BigWorld_LevelStreaming
|
||||
@@ -732,6 +892,42 @@ namespace GrasscutterTools.Properties {
|
||||
return ResourceManager.GetString("Scene", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找类似 加载设置时异常: 的本地化字符串。
|
||||
/// </summary>
|
||||
internal static string SettingLoadError {
|
||||
get {
|
||||
return ResourceManager.GetString("SettingLoadError", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找类似 保存设置时异常: 的本地化字符串。
|
||||
/// </summary>
|
||||
internal static string SettingSaveError {
|
||||
get {
|
||||
return ResourceManager.GetString("SettingSaveError", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找类似 提示 的本地化字符串。
|
||||
/// </summary>
|
||||
internal static string Tips {
|
||||
get {
|
||||
return ResourceManager.GetString("Tips", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找类似 用户名不能为空! 的本地化字符串。
|
||||
/// </summary>
|
||||
internal static string UsernameCannotBeEmpty {
|
||||
get {
|
||||
return ResourceManager.GetString("UsernameCannotBeEmpty", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找类似 11101: 无锋剑
|
||||
|
@@ -133,6 +133,9 @@
|
||||
<data name="ArtifactSubAttribution" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\en-us\ArtifactSubAttribution.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>
|
||||
</data>
|
||||
<data name="AskConfirmDeletion" xml:space="preserve">
|
||||
<value>Are you sure you want to delete this command?</value>
|
||||
</data>
|
||||
<data name="Avatar" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\en-us\Avatar.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>
|
||||
</data>
|
||||
@@ -142,12 +145,42 @@
|
||||
<data name="AvatarStats" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\en-us\AvatarStats.json;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name="BrowserOpenFailedTip" xml:space="preserve">
|
||||
<value>The browser failed to open. You can manually access the following address:</value>
|
||||
</data>
|
||||
<data name="ClimateType" xml:space="preserve">
|
||||
<value>None,Sunny,Partly cloudy,Rain,Thunderstorm,Snow,Fog</value>
|
||||
</data>
|
||||
<data name="CodeResendTip" xml:space="preserve">
|
||||
<value>Resend in {0} seconds</value>
|
||||
</data>
|
||||
<data name="CodeSending" xml:space="preserve">
|
||||
<value>sending...</value>
|
||||
</data>
|
||||
<data name="CommandContentCannotBeEmpty" xml:space="preserve">
|
||||
<value>Command cannot be empty</value>
|
||||
</data>
|
||||
<data name="CommandNotFound" xml:space="preserve">
|
||||
<value>Command not found</value>
|
||||
</data>
|
||||
<data name="CommandTagCannotBeEmpty" xml:space="preserve">
|
||||
<value>Command tag cannot be empty</value>
|
||||
</data>
|
||||
<data name="ConnectedTip" xml:space="preserve">
|
||||
<value>Now you can execute commands remotely!</value>
|
||||
</data>
|
||||
<data name="CustomCommands" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\en-us\CustomCommands.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>
|
||||
</data>
|
||||
<data name="Error" xml:space="preserve">
|
||||
<value>Error</value>
|
||||
</data>
|
||||
<data name="GachaBennerPrefab" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\en-us\GachaBennerPrefab.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>
|
||||
</data>
|
||||
<data name="Help" xml:space="preserve">
|
||||
<value>Help</value>
|
||||
</data>
|
||||
<data name="IconGrasscutter" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\IconGrasscutter.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
@@ -166,15 +199,36 @@
|
||||
<data name="NPC" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\en-us\NPC.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>
|
||||
</data>
|
||||
<data name="OpenCommandHelp" xml:space="preserve">
|
||||
<value>1. Fill in the correct uid\n2. Send verification code to player\n3. Enter the correct verification code\n4. Connection\n5. Enjoy</value>
|
||||
</data>
|
||||
<data name="Ornament" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\en-us\Ornament.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>
|
||||
</data>
|
||||
<data name="PermissionCannotBeEmpty" xml:space="preserve">
|
||||
<value>Permission cannot be empty!</value>
|
||||
</data>
|
||||
<data name="Permissions" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\Permissions.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>
|
||||
</data>
|
||||
<data name="RequireOpenCommandTip" xml:space="preserve">
|
||||
<value>Please connect to a server that supports [opencommand] first</value>
|
||||
</data>
|
||||
<data name="Scene" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\en-us\Scene.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>
|
||||
</data>
|
||||
<data name="SettingLoadError" xml:space="preserve">
|
||||
<value>Settings load failed:</value>
|
||||
</data>
|
||||
<data name="SettingSaveError" xml:space="preserve">
|
||||
<value>Settings save failed:</value>
|
||||
</data>
|
||||
<data name="Tips" xml:space="preserve">
|
||||
<value>Tips</value>
|
||||
</data>
|
||||
<data name="UsernameCannotBeEmpty" xml:space="preserve">
|
||||
<value>Username cannot be empty!</value>
|
||||
</data>
|
||||
<data name="Weapon" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\en-us\Weapon.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>
|
||||
</data>
|
||||
|
@@ -133,6 +133,9 @@
|
||||
<data name="ArtifactSubAttribution" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\zh-cn\ArtifactSubAttribution.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>
|
||||
</data>
|
||||
<data name="AskConfirmDeletion" xml:space="preserve">
|
||||
<value>确认删除?</value>
|
||||
</data>
|
||||
<data name="Avatar" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\zh-cn\Avatar.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>
|
||||
</data>
|
||||
@@ -142,12 +145,42 @@
|
||||
<data name="AvatarStats" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\zh-cn\AvatarStats.json;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name="BrowserOpenFailedTip" xml:space="preserve">
|
||||
<value>浏览器打开失败,你可以通过以下链接手动访问:</value>
|
||||
</data>
|
||||
<data name="ClimateType" xml:space="preserve">
|
||||
<value>无,晴天,多云,雨天,雷暴,雪天,雾天</value>
|
||||
</data>
|
||||
<data name="CodeResendTip" xml:space="preserve">
|
||||
<value>{0} 秒后可重发</value>
|
||||
</data>
|
||||
<data name="CodeSending" xml:space="preserve">
|
||||
<value>发送中...</value>
|
||||
</data>
|
||||
<data name="CommandContentCannotBeEmpty" xml:space="preserve">
|
||||
<value>命令内容不能为空</value>
|
||||
</data>
|
||||
<data name="CommandNotFound" xml:space="preserve">
|
||||
<value>未找到该命令</value>
|
||||
</data>
|
||||
<data name="CommandTagCannotBeEmpty" xml:space="preserve">
|
||||
<value>命令标签不能为空</value>
|
||||
</data>
|
||||
<data name="ConnectedTip" xml:space="preserve">
|
||||
<value>现在你可以远程执行命令了哦!</value>
|
||||
</data>
|
||||
<data name="CustomCommands" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\zh-cn\CustomCommands.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>
|
||||
</data>
|
||||
<data name="Error" xml:space="preserve">
|
||||
<value>错误</value>
|
||||
</data>
|
||||
<data name="GachaBennerPrefab" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\zh-cn\GachaBennerPrefab.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>
|
||||
</data>
|
||||
<data name="Help" xml:space="preserve">
|
||||
<value>帮助</value>
|
||||
</data>
|
||||
<data name="IconGrasscutter" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\IconGrasscutter.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
@@ -169,15 +202,36 @@
|
||||
<data name="NPC" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\zh-cn\NPC.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>
|
||||
</data>
|
||||
<data name="OpenCommandHelp" xml:space="preserve">
|
||||
<value>1. 填写正确的UID\n2. 向玩家发送验证码\n3. 输入正确的验证码\n4. 连接\n5. 享受</value>
|
||||
</data>
|
||||
<data name="Ornament" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\zh-cn\Ornament.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>
|
||||
</data>
|
||||
<data name="PermissionCannotBeEmpty" xml:space="preserve">
|
||||
<value>要设置的权限不能为空!</value>
|
||||
</data>
|
||||
<data name="Permissions" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\Permissions.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>
|
||||
</data>
|
||||
<data name="RequireOpenCommandTip" xml:space="preserve">
|
||||
<value>请先连接到支持[OpenCommand]的服务器</value>
|
||||
</data>
|
||||
<data name="Scene" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\zh-cn\Scene.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>
|
||||
</data>
|
||||
<data name="SettingLoadError" xml:space="preserve">
|
||||
<value>加载设置时异常:</value>
|
||||
</data>
|
||||
<data name="SettingSaveError" xml:space="preserve">
|
||||
<value>保存设置时异常:</value>
|
||||
</data>
|
||||
<data name="Tips" xml:space="preserve">
|
||||
<value>提示</value>
|
||||
</data>
|
||||
<data name="UsernameCannotBeEmpty" xml:space="preserve">
|
||||
<value>用户名不能为空!</value>
|
||||
</data>
|
||||
<data name="Weapon" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\zh-cn\Weapon.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>
|
||||
</data>
|
||||
|
@@ -82,5 +82,29 @@ namespace GrasscutterTools.Properties {
|
||||
this["TextMapFileName"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Configuration.UserScopedSettingAttribute()]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Configuration.DefaultSettingValueAttribute("10001")]
|
||||
public decimal RemoteUid {
|
||||
get {
|
||||
return ((decimal)(this["RemoteUid"]));
|
||||
}
|
||||
set {
|
||||
this["RemoteUid"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Configuration.UserScopedSettingAttribute()]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Configuration.DefaultSettingValueAttribute("https://127.0.0.1")]
|
||||
public string Host {
|
||||
get {
|
||||
return ((string)(this["Host"]));
|
||||
}
|
||||
set {
|
||||
this["Host"] = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -17,5 +17,11 @@
|
||||
<Setting Name="TextMapFileName" Type="System.String" Scope="User">
|
||||
<Value Profile="(Default)">TextMapCHS</Value>
|
||||
</Setting>
|
||||
<Setting Name="RemoteUid" Type="System.Decimal" Scope="User">
|
||||
<Value Profile="(Default)">10001</Value>
|
||||
</Setting>
|
||||
<Setting Name="Host" Type="System.String" Scope="User">
|
||||
<Value Profile="(Default)">https://127.0.0.1</Value>
|
||||
</Setting>
|
||||
</Settings>
|
||||
</SettingsFile>
|
73
Source/GrasscutterTools/Properties/app.manifest
Normal file
73
Source/GrasscutterTools/Properties/app.manifest
Normal file
@@ -0,0 +1,73 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||
<assemblyIdentity version="1.0.0.0" name="MyApplication.app" />
|
||||
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
|
||||
<security>
|
||||
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
|
||||
<!-- UAC 清单选项
|
||||
如果想要更改 Windows 用户帐户控制级别,请使用
|
||||
以下节点之一替换 requestedExecutionLevel 节点。
|
||||
|
||||
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
|
||||
<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
|
||||
<requestedExecutionLevel level="highestAvailable" uiAccess="false" />
|
||||
|
||||
指定 requestedExecutionLevel 元素将禁用文件和注册表虚拟化。
|
||||
如果你的应用程序需要此虚拟化来实现向后兼容性,则移除此
|
||||
元素。
|
||||
-->
|
||||
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
|
||||
</requestedPrivileges>
|
||||
<applicationRequestMinimum>
|
||||
<defaultAssemblyRequest permissionSetReference="Custom" />
|
||||
<PermissionSet class="System.Security.PermissionSet" version="1" Unrestricted="true" ID="Custom" SameSite="site" />
|
||||
</applicationRequestMinimum>
|
||||
</security>
|
||||
</trustInfo>
|
||||
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
|
||||
<application>
|
||||
<!-- 设计此应用程序与其一起工作且已针对此应用程序进行测试的
|
||||
Windows 版本的列表。取消评论适当的元素,
|
||||
Windows 将自动选择最兼容的环境。 -->
|
||||
<!-- Windows Vista -->
|
||||
<!--<supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}" />-->
|
||||
<!-- Windows 7 -->
|
||||
<!--<supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}" />-->
|
||||
<!-- Windows 8 -->
|
||||
<!--<supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}" />-->
|
||||
<!-- Windows 8.1 -->
|
||||
<!--<supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}" />-->
|
||||
<!-- Windows 10 -->
|
||||
<supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}" />
|
||||
</application>
|
||||
</compatibility>
|
||||
<!-- 指示该应用程序可感知 DPI 且 Windows 在 DPI 较高时将不会对其进行
|
||||
自动缩放。Windows Presentation Foundation (WPF)应用程序自动感知 DPI,无需
|
||||
选择加入。选择加入此设置的 Windows 窗体应用程序(面向 .NET Framework 4.6)还应
|
||||
在其 app.config 中将 "EnableWindowsFormsHighDpiAutoResizing" 设置设置为 "true"。
|
||||
|
||||
将应用程序设为感知长路径。请参阅 https://docs.microsoft.com/windows/win32/fileio/maximum-file-path-limitation -->
|
||||
<!--
|
||||
<application xmlns="urn:schemas-microsoft-com:asm.v3">
|
||||
<windowsSettings>
|
||||
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true</dpiAware>
|
||||
<longPathAware xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">true</longPathAware>
|
||||
</windowsSettings>
|
||||
</application>
|
||||
-->
|
||||
<!-- 启用 Windows 公共控件和对话框的主题(Windows XP 和更高版本) -->
|
||||
<!--
|
||||
<dependency>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity
|
||||
type="win32"
|
||||
name="Microsoft.Windows.Common-Controls"
|
||||
version="6.0.0.0"
|
||||
processorArchitecture="*"
|
||||
publicKeyToken="6595b64144ccf1df"
|
||||
language="*"
|
||||
/>
|
||||
</dependentAssembly>
|
||||
</dependency>
|
||||
-->
|
||||
</assembly>
|
@@ -1,224 +1,224 @@
|
||||
28010101: 黄金蟹
|
||||
28010102: 太阳蟹
|
||||
28010103: 海蓝蟹
|
||||
28010104: 将军蟹
|
||||
28010105: 薄红蟹
|
||||
28010106: 螃蟹
|
||||
28020101: 雪狐
|
||||
28020102: 红狐
|
||||
28020103: 送礼雪狐
|
||||
28020104: 送大礼雪狐
|
||||
28020105: 雪狐
|
||||
28020106: 红狐
|
||||
28020201: 松鼠
|
||||
28030101: 蓝翎鹭
|
||||
28030102: 菫鹮
|
||||
28030201: 茶羽鹰
|
||||
28030202: 棕翎鹰
|
||||
28030203: 石鸢
|
||||
28030204: 白练鹰
|
||||
28050101: 风晶蝶
|
||||
28050102: 岩晶蝶
|
||||
28050103: 冰晶蝶
|
||||
28050104: 雷晶蝶
|
||||
28050105: 珊瑚蝶
|
||||
28050301: 吉光虫
|
||||
28010201: 蓝角蜥
|
||||
28010202: 红角蜥
|
||||
28010203: 绿角蜥
|
||||
28010204: 落日鳅鳅
|
||||
28010205: 金鳅鳅
|
||||
28010206: 晴天鳅鳅
|
||||
28010207: 嗜髓蜥
|
||||
28010301: 青蛙
|
||||
28010302: 泥蛙
|
||||
28010303: 蓝蛙
|
||||
28010401: 藤纹陆鳗鳗
|
||||
28010402: 深海鳗鳗
|
||||
28010403: 赤鳍陆鳗鳗
|
||||
28020301: 野林猪
|
||||
28020302: 小野林猪
|
||||
28020303: 雪猪
|
||||
28020304: 「大雪猪王」
|
||||
28020305: 冰冻雪猪
|
||||
28020306: 雪猪
|
||||
28020307: 野林猪
|
||||
28020308: 冰冻雪猪
|
||||
28020309: 「大雪猪王」
|
||||
28030301: 白鸽
|
||||
28030302: 璃冠鸽
|
||||
28030303: 灰羽鸽
|
||||
28030304: 赤胁鸽
|
||||
28030305: 黑王鸽
|
||||
28030306: 鸦
|
||||
28030307: 白鸽
|
||||
28030308: 璃冠鸽
|
||||
28030309: 灰羽鸽
|
||||
28030310: 赤胁鸽
|
||||
28030311: 黑王鸽
|
||||
28030401: 赤团雀
|
||||
28030402: 金团雀
|
||||
28030403: 雪团雀
|
||||
28030404: 碧团雀
|
||||
28030405: 金团雀
|
||||
28030406: 赤团雀
|
||||
28030407: 金团雀
|
||||
28030408: 雪团雀
|
||||
28030409: 碧团雀
|
||||
28030501: 赤喙鸭
|
||||
28030502: 翠冠鸭
|
||||
28030503: 沉金鸭
|
||||
28030504: 赤喙鸭
|
||||
28040101: 黑背鲈鱼
|
||||
28040102: 蓝鳍鲈鱼
|
||||
28040103: 黄金鲈鱼
|
||||
28040104: 黑背鲈鱼
|
||||
28040105: 黑背鲈鱼
|
||||
28040106: 蓝鳍鲈鱼
|
||||
28040107: 黄金鲈鱼
|
||||
28040108: 黑背鲈鱼
|
||||
28040201: 花鳉
|
||||
28040202: 琉璃花鳉
|
||||
28040203: 甜甜花鳉
|
||||
28040204: 蓝染花鳉
|
||||
28040205: 擒霞客
|
||||
28040206: 水晶宴
|
||||
28040301: 肺棘鱼
|
||||
28040302: 斗棘鱼
|
||||
28040303: 鸩棘鱼
|
||||
28040304: 赤魔王
|
||||
28040305: 雪中君
|
||||
28040401: 金赤假龙
|
||||
28040402: 锖假龙
|
||||
28040501: 流纹褐蝶鱼
|
||||
28040502: 流纹京紫蝶鱼
|
||||
28040503: 流纹茶蝶鱼
|
||||
28040504: 长生仙
|
||||
28040505: 雷鸣仙
|
||||
28040506: 月光鳍
|
||||
28040601: 炮鲀
|
||||
28040602: 苦炮鲀
|
||||
28040701: 迪芙妲鳐
|
||||
28040702: 佛玛洛鳐
|
||||
28040703: 幽浮鳐
|
||||
28020401: 北地犬
|
||||
28020402: 巡林犬
|
||||
28020403: 柴犬
|
||||
28020404: 黑背猎犬
|
||||
28020405: 柴犬
|
||||
28020406: 北地犬
|
||||
28020407: 北地犬
|
||||
28020408: 巡林犬
|
||||
28020409: 柴犬
|
||||
28020410: 黑背猎犬
|
||||
28020501: 蓝宝石
|
||||
28020502: 翠目猫
|
||||
28020503: 灰雪猫
|
||||
28020504: 北地猫
|
||||
28020505: 虎纹猫
|
||||
28020506: 警长猫
|
||||
28020507: 黑猫
|
||||
28020508: 蓝宝石
|
||||
28020509: 灰雪猫
|
||||
28020510: 翠目猫
|
||||
28020511: 灰雪猫
|
||||
28020512: 北地猫
|
||||
28020513: 虎纹猫
|
||||
28020601: 雪隐鼬
|
||||
28020602: 红尾鼬
|
||||
28020603: 靴子鼬
|
||||
28020604: 面具鼬
|
||||
28020605: 青雷鼬
|
||||
28050201: 新手盗宝鼬
|
||||
28050202: 藏金盗宝鼬
|
||||
28050203: 大黄金盗宝鼬
|
||||
28050211: 新手盗宝鼬
|
||||
28050212: 藏金盗宝鼬
|
||||
28050213: 大黄金盗宝鼬
|
||||
28020701: 狐
|
||||
28020702: 狐
|
||||
28020801: 妖狸
|
||||
28020802: 吉法师(test)
|
||||
28020803: 妖狸
|
||||
28020901: 武士狗分身(test)
|
||||
28020902: 武士狗boss(test)
|
||||
28220301: 野林猪
|
||||
28220303: 雪猪
|
||||
28210101: 黄金蟹
|
||||
28210102: 太阳蟹
|
||||
28210103: 海蓝蟹
|
||||
28210104: 将军蟹
|
||||
28210105: 薄红蟹
|
||||
28220101: 雪狐
|
||||
28220102: 红狐
|
||||
28220201: 松鼠
|
||||
28220401: 北地犬
|
||||
28220402: 巡林犬
|
||||
28220403: 柴犬
|
||||
28220404: 黑背猎犬
|
||||
28220501: 蓝宝石
|
||||
28220502: 翠目猫
|
||||
28220503: 灰雪猫
|
||||
28220504: 北地猫
|
||||
28220505: 虎纹猫
|
||||
28220506: 警长猫
|
||||
28220601: 雪隐鼬
|
||||
28220602: 红尾鼬
|
||||
28220603: 靴子鼬
|
||||
28220605: 青雷鼬
|
||||
28220701: 狐
|
||||
28220901: 武士狗(test)
|
||||
28230101: 蓝翎鹭
|
||||
28230102: 菫鹮
|
||||
28250101: 风晶蝶
|
||||
28250102: 岩晶蝶
|
||||
28250103: 冰晶蝶
|
||||
28250104: 雷晶蝶
|
||||
28250105: 珊瑚蝶
|
||||
28250301: 吉光虫
|
||||
28210201: 蓝角蜥
|
||||
28210202: 红角蜥
|
||||
28210203: 绿角蜥
|
||||
28210204: 落日鳅鳅
|
||||
28210205: 金鳅鳅
|
||||
28210206: 晴天鳅鳅
|
||||
28210207: 嗜髓蜥
|
||||
28210301: 青蛙
|
||||
28210302: 泥蛙
|
||||
28210303: 蓝蛙
|
||||
28210401: 藤纹陆鳗鳗
|
||||
28210402: 深海鳗鳗
|
||||
28210403: 赤鳍陆鳗鳗
|
||||
28230301: 白鸽
|
||||
28230302: 璃冠鸽
|
||||
28230303: 灰羽鸽
|
||||
28230304: 赤胁鸽
|
||||
28230305: 黑王鸽
|
||||
28230306: 鸦
|
||||
28230401: 赤团雀
|
||||
28230402: 金团雀
|
||||
28230403: 雪团雀
|
||||
28230404: 碧团雀
|
||||
28240201: 花鳉
|
||||
28240202: 琉璃花鳉
|
||||
28240203: 甜甜花鳉
|
||||
28240204: 蓝染花鳉
|
||||
28240205: 擒霞客
|
||||
28240206: 水晶宴
|
||||
28240301: 肺棘鱼
|
||||
28240302: 斗棘鱼
|
||||
28240303: 鸩棘鱼
|
||||
28240304: 赤魔王
|
||||
28240305: 雪中君
|
||||
28240401: 金赤假龙
|
||||
28240402: 锖假龙
|
||||
28240501: 流纹褐蝶鱼
|
||||
28240502: 流纹京紫蝶鱼
|
||||
28240503: 流纹茶蝶鱼
|
||||
28240504: 长生仙
|
||||
28240505: 雷鸣仙
|
||||
28240506: 月光鳍
|
||||
28240601: 炮鲀
|
||||
28240602: 苦炮鲀
|
||||
28240701: 迪芙妲鳐
|
||||
28240702: 佛玛洛鳐
|
||||
28010101: Golden Crab
|
||||
28010102: Sun Crab
|
||||
28010103: Ocean Crab
|
||||
28010104: General Crab
|
||||
28010105: Pale Red Crab
|
||||
28010106: Crab
|
||||
28010201: Blue Horned Lizard
|
||||
28010202: Red Horned Lizard
|
||||
28010203: Green Horned Lizard
|
||||
28010204: Sunset Loach
|
||||
28010205: Golden Loach
|
||||
28010206: Sunny Loach
|
||||
28010207: Pith Lizard
|
||||
28010301: Frog
|
||||
28010302: Mud Frog
|
||||
28010303: Blue Frog
|
||||
28010401: Adorned Unagi
|
||||
28010402: Deep Sea Unagi
|
||||
28010403: Red-Finned Unagi
|
||||
28020101: Snow Fox
|
||||
28020102: Crimson Fox
|
||||
28020103: Gifting Snow Fox
|
||||
28020104: Super-Gifting Snow Fox
|
||||
28020105: Snow Fox
|
||||
28020106: Crimson Fox
|
||||
28020201: Squirrel
|
||||
28020301: Forest Boar
|
||||
28020302: Forest Piglet
|
||||
28020303: Snowboar
|
||||
28020304: Great Snowboar King
|
||||
28020305: Frozen Snowboar
|
||||
28020306: Snowboar
|
||||
28020307: Forest Boar
|
||||
28020308: Frozen Snowboar
|
||||
28020309: Great Snowboar King
|
||||
28020401: Northland Hound
|
||||
28020402: Forest-Patrol Hound
|
||||
28020403: Shiba
|
||||
28020404: Black-Back Hound
|
||||
28020405: Shiba
|
||||
28020406: Northland Hound
|
||||
28020407: Northland Hound
|
||||
28020408: Forest-Patrol Hound
|
||||
28020409: Shiba
|
||||
28020410: Black-Back Hound
|
||||
28020501: Sapphire
|
||||
28020502: Jade-Eyed Cat
|
||||
28020503: Gray Snow Cat
|
||||
28020504: Northland Cat
|
||||
28020505: Tiger-Striped Cat
|
||||
28020506: Sheriff Cat
|
||||
28020507: Black Cat
|
||||
28020508: Sapphire
|
||||
28020509: Gray Snow Cat
|
||||
28020510: Jade-Eyed Cat
|
||||
28020511: Gray Snow Cat
|
||||
28020512: Northland Cat
|
||||
28020513: Tiger-Striped Cat
|
||||
28020601: Snow Weasel
|
||||
28020602: Red-Tailed Weasel
|
||||
28020603: Boot Weasel
|
||||
28020604: Masked Weasel
|
||||
28020605: Bluethunder Weasel
|
||||
28020701: Kitsune
|
||||
28020702: Kitsune
|
||||
28020801: Bake-Danuki
|
||||
28020802: Master Yoshimoto (test)
|
||||
28020803: Bake-Danuki
|
||||
28020901: Samurai Dog Diversion (test)
|
||||
28020902: Samurai dog boss (test)
|
||||
28030101: Azure Crane
|
||||
28030102: Violet Ibis
|
||||
28030201: Brownwing Falcon
|
||||
28030202: Umbertail Falcon
|
||||
28030203: Lapis Glede
|
||||
28030204: Silkwhite Falcon
|
||||
28030301: White Pigeon
|
||||
28030302: Brightcrown Pigeon
|
||||
28030303: Graywing Pigeon
|
||||
28030304: Crimsonflank Pigeon
|
||||
28030305: Black King Pigeon
|
||||
28030306: Crow
|
||||
28030307: White Pigeon
|
||||
28030308: Brightcrown Pigeon
|
||||
28030309: Graywing Pigeon
|
||||
28030310: Crimsonflank Pigeon
|
||||
28030311: Black King Pigeon
|
||||
28030401: Crimson Finch
|
||||
28030402: Golden Finch
|
||||
28030403: Snow Finch
|
||||
28030404: Emerald Finch
|
||||
28030405: Golden Finch
|
||||
28030406: Crimson Finch
|
||||
28030407: Golden Finch
|
||||
28030408: Snow Finch
|
||||
28030409: Emerald Finch
|
||||
28030501: Scarletbeak Duck
|
||||
28030502: Emerald Duck
|
||||
28030503: Golden Duck
|
||||
28030504: Scarletbeak Duck
|
||||
28040101: Black-Back Bass
|
||||
28040102: Blue-Fin Bass
|
||||
28040103: Golden Bass
|
||||
28040104: Black-Back Bass
|
||||
28040105: Black-Back Bass
|
||||
28040106: Blue-Fin Bass
|
||||
28040107: Golden Bass
|
||||
28040108: Black-Back Bass
|
||||
28040201: Medaka
|
||||
28040202: Glaze Medaka
|
||||
28040203: Sweet-Flower Medaka
|
||||
28040204: Aizen Medaka
|
||||
28040205: Dawncatcher
|
||||
28040206: Crystalfish
|
||||
28040301: Lunged Stickleback
|
||||
28040302: Betta
|
||||
28040303: Venomspine Fish
|
||||
28040304: Akai Maou
|
||||
28040305: Snowstrider
|
||||
28040401: Golden Koi
|
||||
28040402: Rusty Koi
|
||||
28040501: Brown Shirakodai
|
||||
28040502: Purple Shirakodai
|
||||
28040503: Tea-Colored Shirakodai
|
||||
28040504: Abiding Angelfish
|
||||
28040505: Raimei Angelfish
|
||||
28040506: Moonfin
|
||||
28040601: Pufferfish
|
||||
28040602: Bitter Pufferfish
|
||||
28040701: Divda Ray
|
||||
28040702: Formalo Ray
|
||||
28040703: Floating Ray
|
||||
28050101: Anemo Crystalfly
|
||||
28050102: Geo Crystalfly
|
||||
28050103: Cryo Crystalfly
|
||||
28050104: Electro Crystalfly
|
||||
28050105: Coral Butterfly
|
||||
28050201: Amateur Weasel Thief
|
||||
28050202: Hoarder Weasel Thief
|
||||
28050203: Golden Weasel Thief
|
||||
28050211: Amateur Weasel Thief
|
||||
28050212: Hoarder Weasel Thief
|
||||
28050213: Golden Weasel Thief
|
||||
28050301: Lucklight Fly
|
||||
28210101: Golden Crab
|
||||
28210102: Sun Crab
|
||||
28210103: Ocean Crab
|
||||
28210104: General Crab
|
||||
28210105: Pale Red Crab
|
||||
28210201: Blue Horned Lizard
|
||||
28210202: Red Horned Lizard
|
||||
28210203: Green Horned Lizard
|
||||
28210204: Sunset Loach
|
||||
28210205: Golden Loach
|
||||
28210206: Sunny Loach
|
||||
28210207: Marrow Lizard
|
||||
28210301: Frog
|
||||
28210302: Mud Frog
|
||||
28210303: Blue Frog
|
||||
28210401: Adorned Unagi
|
||||
28210402: Deep Sea Unagi
|
||||
28210403: Red-Finned Unagi
|
||||
28220101: Snow Fox
|
||||
28220102: Crimson Fox
|
||||
28220201: Squirrel
|
||||
28220301: Forest Boar
|
||||
28220303: Snowboar
|
||||
28220401: Northland Hound
|
||||
28220402: Forest-Patrol Hound
|
||||
28220403: Shiba
|
||||
28220404: Black-Back Hound
|
||||
28220501: Sapphire
|
||||
28220502: Jade-Eyed Cat
|
||||
28220503: Gray Snow Cat
|
||||
28220504: Northland Cat
|
||||
28220505: Tiger-Striped Cat
|
||||
28220506: Sheriff Cat
|
||||
28220601: Snow Weasel
|
||||
28220602: Red-Tailed Weasel
|
||||
28220603: Boot Weasel
|
||||
28220605: Bluethunder Weasel
|
||||
28220701: Kitsune
|
||||
28220901: Samurai dog (test)
|
||||
28230101: Azure Crane
|
||||
28230102: Violet Ibis
|
||||
28230301: White Pigeon
|
||||
28230302: Brightcrown Pigeon
|
||||
28230303: Graywing Pigeon
|
||||
28230304: Crimsonflank Pigeon
|
||||
28230305: Black King Pigeon
|
||||
28230306: Crow
|
||||
28230401: Crimson Finch
|
||||
28230402: Golden Finch
|
||||
28230403: Snow Finch
|
||||
28230404: Emerald Finch
|
||||
28240201: Medaka
|
||||
28240202: Glaze Medaka
|
||||
28240203: Sweet-Flower Medaka
|
||||
28240204: Aizen Medaka
|
||||
28240205: Dawncatcher
|
||||
28240206: Crystalfish
|
||||
28240301: Lunged Stickleback
|
||||
28240302: Betta
|
||||
28240303: Venomspine Fish
|
||||
28240304: Akai Maou
|
||||
28240305: Snowstrider
|
||||
28240401: Golden Koi
|
||||
28240402: Rusty Koi
|
||||
28240501: Brown Shirakodai
|
||||
28240502: Purple Shirakodai
|
||||
28240503: Tea-Colored Shirakodai
|
||||
28240504: Abiding Angelfish
|
||||
28240505: Raimei Angelfish
|
||||
28240506: Moonfin
|
||||
28240601: Pufferfish
|
||||
28240602: Bitter Pufferfish
|
||||
28240701: Divda Ray
|
||||
28240702: Formalo Ray
|
||||
28250101: Anemo Crystalfly
|
||||
28250102: Geo Crystalfly
|
||||
28250103: Cryo Crystalfly
|
||||
28250104: Electro Crystalfly
|
||||
28250105: Coral Butterfly
|
||||
28250301: Lucklight Fly
|
@@ -1,52 +1,54 @@
|
||||
无敌
|
||||
God Mode
|
||||
/godmode
|
||||
升到60级
|
||||
Level up to 60
|
||||
/give 102 1880200
|
||||
奶
|
||||
Heal
|
||||
/heal
|
||||
我全都要!
|
||||
Give me ALL!
|
||||
/giveall
|
||||
我在哪?
|
||||
Where am I?
|
||||
/position
|
||||
设置世界等级
|
||||
Set World Level
|
||||
/setworldlevel 8
|
||||
设置羁绊等级
|
||||
Set Fetter Level
|
||||
/setfetterlevel 1
|
||||
清空背包
|
||||
Clear Backpack(ALL)
|
||||
/clear all
|
||||
清空武器
|
||||
Clear Weapons
|
||||
/clear wp
|
||||
清空圣物
|
||||
Clear Artifacts
|
||||
/clear art
|
||||
清空材料
|
||||
Clear Materials
|
||||
/clear mat
|
||||
发送广播
|
||||
/broadcast 大家好啊~
|
||||
清空当前角色命之座(需重登)
|
||||
Broadcast
|
||||
/broadcast Hello everyone~
|
||||
Reset Current Constellation(Need Re-login)
|
||||
/resetconst
|
||||
清空全部角色命之座(需重登)
|
||||
Reset ALL Constellation(Need Re-login)
|
||||
/resetconst all
|
||||
一万纠缠
|
||||
100k Intertwined Fates
|
||||
/give 223 10000
|
||||
一万相遇
|
||||
100k Acquaint Fate
|
||||
/give 224 10000
|
||||
十万原石
|
||||
100k Primogem
|
||||
/give 201 100000
|
||||
十万摩拉
|
||||
100k Mora
|
||||
/give 202 100000
|
||||
速速集合!
|
||||
TP Everyone
|
||||
/tpall
|
||||
拔线
|
||||
Restart Server
|
||||
/restart
|
||||
私信
|
||||
Send PM
|
||||
/say <player> <message>
|
||||
进来吧你
|
||||
/coop <playerId> <target playerId>
|
||||
自杀
|
||||
Pull in team
|
||||
/coop @targetId
|
||||
Suicide
|
||||
/killcharacter
|
||||
暗杀
|
||||
Kill Somebody
|
||||
/killcharacter <playerId>
|
||||
都有谁在?
|
||||
List ALL users
|
||||
/list uid
|
||||
重载服务配置
|
||||
/reload
|
||||
Reload service config
|
||||
/reload
|
||||
KillAll
|
||||
/killall
|
@@ -0,0 +1,35 @@
|
||||
007: Beginners' wish
|
||||
008: Wanderlust Invocation
|
||||
009: Ballad in Goblets
|
||||
010: Dawn Pilgrimage
|
||||
011: Grace of Southwind
|
||||
012: Bane of All Evil
|
||||
013: Epitome Invocation
|
||||
015: Sparkling Steps
|
||||
016: Beginners' wish
|
||||
017: Wanderlust Invocation
|
||||
018: Sparkling Steps
|
||||
019: Ballad in Goblets
|
||||
020: Epitome Invocation
|
||||
021: Epitome Invocation
|
||||
022: Wanderlust Invocation
|
||||
023: Farewell of Snezhnaya
|
||||
024: Gentry of Hermitage
|
||||
027: Secretum Secretorum
|
||||
028: Adrift in the Harbor
|
||||
031: Invitation to Mundane Life
|
||||
032: Dance of Lanterns
|
||||
033: Moment of Bloom
|
||||
036: Ballad in Goblets
|
||||
037: Farewell of Snezhnaya
|
||||
040: Gentry of Hermitage
|
||||
041: Born of Ocean Swell
|
||||
045: Leaves in the Wind
|
||||
048: The Heron's Court
|
||||
049: Tapestry of Golden Flames
|
||||
052: Reign of Serenity
|
||||
053: Drifting Luminescence
|
||||
061: Oni's Royale
|
||||
065: The Transcendent One Returns
|
||||
071: Everbloom Violet
|
||||
076: Azure Excursion
|
@@ -41,7 +41,7 @@
|
||||
私信
|
||||
/say <player> <message>
|
||||
进来吧你
|
||||
/coop <playerId> <target playerId>
|
||||
/coop @targetId
|
||||
自杀
|
||||
/killcharacter
|
||||
暗杀
|
||||
@@ -49,4 +49,6 @@
|
||||
都有谁在?
|
||||
/list uid
|
||||
重载服务配置
|
||||
/reload
|
||||
/reload
|
||||
清场
|
||||
/killall
|
@@ -0,0 +1,35 @@
|
||||
007: 初行者推荐祈愿
|
||||
008: 奔行世间
|
||||
009: 杯装之诗
|
||||
010: 黎明巡礼
|
||||
011: 南风之眷
|
||||
012: 靖妖傩舞
|
||||
013: 神铸赋形
|
||||
015: 闪焰的驻足
|
||||
016: 初行者推荐祈愿
|
||||
017: 奔行世间
|
||||
018: 闪焰的驻足
|
||||
019: 杯装之诗
|
||||
020: 神铸赋形
|
||||
021: 神铸赋形
|
||||
022: 奔行世间
|
||||
023: 暂别冬都
|
||||
024: 陵薮市朝
|
||||
027: 深秘之息
|
||||
028: 浮生孰来
|
||||
031: 烟火之邀
|
||||
032: 鱼龙灯昼
|
||||
033: 赤团开时
|
||||
036: 杯装之诗
|
||||
037: 暂别冬都
|
||||
040: 陵薮市朝
|
||||
041: 浪涌之瞬
|
||||
045: 叶落风随
|
||||
048: 白鹭之庭
|
||||
049: 焰色天河
|
||||
052: 影寂天下人
|
||||
053: 浮岳虹珠
|
||||
061: 鬼门斗宴
|
||||
065: 出尘入世
|
||||
071: 华紫樱绯
|
||||
076: 苍流踏花
|
85
Source/GrasscutterTools/Utils/HttpHelper.cs
Normal file
85
Source/GrasscutterTools/Utils/HttpHelper.cs
Normal file
@@ -0,0 +1,85 @@
|
||||
/**
|
||||
* Grasscutter Tools
|
||||
* Copyright (C) 2022 jie65535
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as published
|
||||
* by the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
**/
|
||||
using System;
|
||||
using System.Net;
|
||||
using System.Net.Http;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace GrasscutterTools.Utils
|
||||
{
|
||||
public static class HttpHelper
|
||||
{
|
||||
private static readonly HttpClient httpClient = new HttpClient();
|
||||
|
||||
static HttpHelper()
|
||||
{
|
||||
ServicePointManager.ServerCertificateValidationCallback = (_, _1, _2, _3) => true;
|
||||
}
|
||||
|
||||
public static async Task<T> GetAsync<T>(string url)
|
||||
{
|
||||
try
|
||||
{
|
||||
var responseMessage = await httpClient.GetAsync(url);
|
||||
if (responseMessage.IsSuccessStatusCode)
|
||||
{
|
||||
var responseString = await responseMessage.Content.ReadAsStringAsync();
|
||||
return JsonConvert.DeserializeObject<T>(responseString);
|
||||
}
|
||||
else
|
||||
{
|
||||
throw new HttpRequestException(responseMessage.ReasonPhrase);
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
if (ex.InnerException != null)
|
||||
throw ex.InnerException;
|
||||
throw;
|
||||
}
|
||||
}
|
||||
|
||||
public static async Task<T> PostAsync<T>(string url, object obj)
|
||||
{
|
||||
try
|
||||
{
|
||||
var content = new StringContent(JsonConvert.SerializeObject(obj), Encoding.UTF8, "application/json");
|
||||
var responseMessage = await httpClient.PostAsync(url, content);
|
||||
if (responseMessage.IsSuccessStatusCode)
|
||||
{
|
||||
var responseString = await responseMessage.Content.ReadAsStringAsync();
|
||||
return JsonConvert.DeserializeObject<T>(responseString);
|
||||
}
|
||||
else
|
||||
{
|
||||
throw new HttpRequestException(responseMessage.ReasonPhrase);
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
if (ex.InnerException != null)
|
||||
throw ex.InnerException;
|
||||
throw;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@@ -4,7 +4,7 @@
|
||||
<package id="Fody" version="6.6.1" targetFramework="net48" developmentDependency="true" />
|
||||
<package id="Microsoft.NETCore.Platforms" version="1.1.0" targetFramework="net48" />
|
||||
<package id="Microsoft.Win32.Primitives" version="4.3.0" targetFramework="net48" />
|
||||
<package id="NETStandard.Library" version="1.6.1" targetFramework="net48" />
|
||||
<package id="NETStandard.Library" version="2.0.3" targetFramework="net48" />
|
||||
<package id="Newtonsoft.Json" version="13.0.1" targetFramework="net452" />
|
||||
<package id="Resource.Embedder" version="2.2.0" targetFramework="net48" />
|
||||
<package id="System.AppContext" version="4.3.0" targetFramework="net48" />
|
||||
|
Reference in New Issue
Block a user