pull/1/head
PJ568 11 months ago
commit 6f60d43471

2
.gitattributes vendored

@ -0,0 +1,2 @@
# Normalize EOL for all files that Git considers text files.
* text=auto eol=lf

@ -0,0 +1,45 @@
# Whenever a tag push matching pattern "v*" then run the job
on:
push:
tags:
- "v*"
jobs:
export_game:
# Always use ubuntu-latest for this action
runs-on: ubuntu-latest
permissions: write-all
name: Export Software
steps:
# Always include the checkout step so that
# your project is available for Godot to export
- name: checkout
uses: actions/checkout@v3.3.0
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: Setup Android SDK
uses: android-actions/setup-android@v3
- name: export software
id: export
# Use latest version (see releases for all versions)
uses: firebelley/godot-export@v5.2.0
with:
# Defining all the required inputs
godot_executable_download_url: https://downloads.tuxfamily.org/godotengine/4.1.2/Godot_v4.1.2-stable_linux.x86_64.zip
godot_export_templates_download_url: https://downloads.tuxfamily.org/godotengine/4.1.2/Godot_v4.1.2-stable_export_templates.tpz
relative_project_path: ./
archive_output: true
- name: create release
uses: ncipollo/release-action@v1.12.0
with:
token: ${{ secrets.TOKEN }}
generateReleaseNotes: true
tag: ${{ github.ref_name }}
artifacts: Release/*

4
.gitignore vendored

@ -0,0 +1,4 @@
# Godot 4+ specific ignores
.godot/
Release/
android/

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.0 KiB

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://cyj6ke0if1atg"
path="res://.godot/imported/568_Calc.png-325263c2125d53052f30ebb709d3c0cd.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Assets/568_Calc.png"
dest_files=["res://.godot/imported/568_Calc.png-325263c2125d53052f30ebb709d3c0cd.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

@ -0,0 +1,291 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
width="256"
height="256"
viewBox="0 0 67.733334 67.733333"
version="1.1"
id="svg5"
inkscape:version="1.2.1 (9c6d41e410, 2022-07-14)"
sodipodi:docname="568_Calc.svg"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:dc="http://purl.org/dc/elements/1.1/">
<sodipodi:namedview
id="namedview7"
pagecolor="#ffffff"
bordercolor="#000000"
borderopacity="0.25"
inkscape:showpageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1"
inkscape:document-units="px"
showgrid="false"
inkscape:zoom="1.3340072"
inkscape:cx="31.109278"
inkscape:cy="100.07443"
inkscape:window-width="1440"
inkscape:window-height="878"
inkscape:window-x="-6"
inkscape:window-y="-6"
inkscape:window-maximized="1"
inkscape:current-layer="layer2" />
<defs
id="defs2">
<rect
x="22.5"
y="25.5"
width="163"
height="87"
id="rect1358" />
<rect
x="16.910268"
y="167.49218"
width="306.80057"
height="247.61464"
id="rect15590" />
<rect
x="8.0525085"
y="5.2341305"
width="240.77"
height="148.56878"
id="rect294" />
<filter
style="color-interpolation-filters:sRGB;"
inkscape:label="Drop Shadow"
id="filter15900"
x="-0.10629922"
y="-0.28346457"
width="1.2125984"
height="1.5669291">
<feFlood
flood-opacity="0.498039"
flood-color="rgb(0,0,0)"
result="flood"
id="feFlood15890" />
<feComposite
in="flood"
in2="SourceGraphic"
operator="in"
result="composite1"
id="feComposite15892" />
<feGaussianBlur
in="composite1"
stdDeviation="3"
result="blur"
id="feGaussianBlur15894" />
<feOffset
dx="0"
dy="0"
result="offset"
id="feOffset15896" />
<feComposite
in="SourceGraphic"
in2="offset"
operator="over"
result="composite2"
id="feComposite15898" />
</filter>
<filter
style="color-interpolation-filters:sRGB;"
inkscape:label="Drop Shadow"
id="filter15924"
x="-0.024810789"
y="-0.082203042"
width="1.0496216"
height="1.1644061">
<feFlood
flood-opacity="0.498039"
flood-color="rgb(0,0,0)"
result="flood"
id="feFlood15914" />
<feComposite
in="flood"
in2="SourceGraphic"
operator="in"
result="composite1"
id="feComposite15916" />
<feGaussianBlur
in="composite1"
stdDeviation="2"
result="blur"
id="feGaussianBlur15918" />
<feOffset
dx="0"
dy="0"
result="offset"
id="feOffset15920" />
<feComposite
in="SourceGraphic"
in2="offset"
operator="over"
result="composite2"
id="feComposite15922" />
</filter>
</defs>
<rect
style="fill:#212121;fill-opacity:1;stroke-width:0.160501"
id="rect344"
width="67.73333"
height="67.73333"
x="0"
y="0"
rx="0.1558632"
ry="0.12845317"
inkscape:label="背景"
sodipodi:insensitive="true" />
<metadata
id="metadata132">
<rdf:RDF>
<cc:License
rdf:about="http://creativecommons.org/licenses/by-sa/4.0/">
<cc:permits
rdf:resource="http://creativecommons.org/ns#Reproduction" />
<cc:permits
rdf:resource="http://creativecommons.org/ns#Distribution" />
<cc:requires
rdf:resource="http://creativecommons.org/ns#Notice" />
<cc:requires
rdf:resource="http://creativecommons.org/ns#Attribution" />
<cc:permits
rdf:resource="http://creativecommons.org/ns#DerivativeWorks" />
<cc:requires
rdf:resource="http://creativecommons.org/ns#ShareAlike" />
</cc:License>
<cc:Work
rdf:about="">
<cc:license
rdf:resource="http://creativecommons.org/licenses/by-sa/4.0/" />
<dc:creator>
<cc:Agent>
<dc:title>PJ568</dc:title>
</cc:Agent>
</dc:creator>
<dc:rights>
<cc:Agent>
<dc:title>PJ568</dc:title>
</cc:Agent>
</dc:rights>
<dc:contributor>
<cc:Agent>
<dc:title>PJ568</dc:title>
</cc:Agent>
</dc:contributor>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:groupmode="layer"
id="layer1"
inkscape:label="按钮"
sodipodi:insensitive="true">
<rect
style="fill:#8d6e63;fill-opacity:1;stroke-width:0.176929"
id="rect263-4"
width="27.516666"
height="27.516666"
x="35.983334"
y="35.983334"
inkscape:label="按钮_右下"
sodipodi:insensitive="true" />
<rect
style="fill:#616161;fill-opacity:1;stroke-width:0.176929"
id="rect263-0"
width="27.516666"
height="27.516666"
x="4.2333331"
y="35.983334"
inkscape:label="按钮_左下"
sodipodi:insensitive="true" />
<rect
style="fill:#616161;fill-opacity:1;stroke-width:0.176929"
id="rect263-6"
width="27.516666"
height="27.516666"
x="35.983334"
y="4.2333331"
inkscape:label="按钮_右上"
sodipodi:insensitive="true" />
<rect
style="fill:#616161;fill-opacity:1;stroke-width:0.17693"
id="rect263"
width="27.516666"
height="27.516666"
x="4.2333331"
y="4.2333331"
inkscape:label="按钮_左上"
sodipodi:insensitive="true" />
</g>
<g
inkscape:groupmode="layer"
id="layer2"
inkscape:label="内容"
sodipodi:insensitive="true">
<rect
style="fill:#795548;fill-opacity:1;stroke-width:0.16332"
id="rect263-8-4"
width="25.4"
height="25.4"
x="37.041668"
y="37.041668"
inkscape:label="内容_右下"
sodipodi:insensitive="true" />
<path
d="m 46.531742,47.331842 h 7.10565 l -0.2286,1.42875 h -7.10565 z m -0.4572,3.3909 h 7.10565 l -0.2286,1.42875 h -7.10565 z"
id="path1368"
inkscape:label="="
style="font-size:72px;font-family:'Smiley Sans';-inkscape-font-specification:'Smiley Sans';white-space:pre;shape-inside:url(#rect1358);display:inline;fill:#eeeeee;stroke-width:0.264583;fill-opacity:1"
sodipodi:insensitive="true" />
<rect
style="fill:#424242;fill-opacity:1;stroke-width:0.16332"
id="rect263-8-1"
width="25.4"
height="25.4"
x="5.2916665"
y="37.041668"
inkscape:label="内容_左下"
sodipodi:insensitive="true" />
<path
d="m 17.270756,57.533116 q -1.73355,0 -2.6289,-1.1811 -0.89535,-1.20015 -0.6477,-3.3909 0.17145,-1.50495 0.8763,-2.53365 0.70485,-1.047749 1.7145,-1.523999 -0.7239,-0.4572 -1.12395,-1.2954 -0.40005,-0.8382 -0.28575,-1.905 0.1905,-1.73355 1.1811,-2.7432 1.00965,-1.00965 2.57175,-1.00965 1.5621,0 2.4003,1.00965 0.85725,1.00965 0.6858,2.7432 -0.1143,1.1811 -0.74295,2.07645 -0.62865,0.8763 -1.524,1.2954 0.8382,0.51435 1.31445,1.543049 0.4953,1.00965 0.3429,2.34315 -0.24765,2.19075 -1.35255,3.3909 -1.08585,1.1811 -2.7813,1.1811 z m -0.1905,-11.734799 q -0.0762,0.97155 0.24765,1.6764 0.32385,0.6858 1.0668,0.6858 0.74295,0 1.1811,-0.6858 0.4572,-0.70485 0.5334,-1.6764 0.1143,-1.08585 -0.2667,-1.65735 -0.36195,-0.59055 -1.0287,-0.59055 -0.78105,0 -1.20015,0.59055 -0.4191,0.5715 -0.5334,1.65735 z m -1.1811,7.143749 q -0.17145,1.5621 0.2667,2.26695 0.43815,0.70485 1.23825,0.70485 0.78105,0 1.35255,-0.70485 0.5715,-0.70485 0.74295,-2.26695 0.1524,-1.31445 -0.24765,-2.1336 -0.381,-0.819149 -1.2192,-0.819149 -0.8763,0 -1.42875,0.800099 -0.55245,0.8001 -0.70485,2.15265 z"
id="path1366"
inkscape:label="8"
style="font-size:72px;font-family:'Smiley Sans';-inkscape-font-specification:'Smiley Sans';white-space:pre;shape-inside:url(#rect1358);display:inline;fill:#eeeeee;stroke-width:0.264583;fill-opacity:1"
sodipodi:insensitive="true" />
<rect
style="fill:#424242;fill-opacity:1;stroke-width:0.16332"
id="rect263-8-5"
width="25.4"
height="25.4"
x="37.041668"
y="5.2916665"
inkscape:label="内容_右上"
sodipodi:insensitive="true" />
<path
d="m 52.047775,13.572067 q -0.0381,-0.36195 -0.17145,-0.74295 -0.1143,-0.40005 -0.40005,-0.66675 -0.28575,-0.2667 -0.78105,-0.2667 -0.81915,0 -1.524,1.2192 -0.6858,1.20015 -1.12395,4.09575 0.40005,-0.5334 0.9906,-0.8382 0.6096,-0.32385 1.31445,-0.32385 0.85725,0 1.42875,0.43815 0.5715,0.43815 0.8763,1.1811 0.32385,0.7239 0.36195,1.65735 0.05715,0.93345 -0.13335,1.92405 -0.1524,0.8001 -0.47625,1.6002 -0.3048,0.8001 -0.81915,1.46685 -0.4953,0.66675 -1.20015,1.0668 -0.70485,0.40005 -1.6383,0.40005 -1.04775,0 -1.69545,-0.43815 -0.62865,-0.43815 -0.9525,-1.20015 -0.3048,-0.762 -0.381,-1.7526 -0.05715,-0.9906 0.0381,-2.11455 0.09525,-1.12395 0.2667,-2.286 0.36195,-2.4384 0.97155,-4.17195 0.6096,-1.7526 1.5621,-2.68605 0.97155,-0.93345 2.34315,-0.93345 1.0668,0 1.6764,0.4953 0.6096,0.4953 0.8763,1.20015 0.28575,0.70485 0.32385,1.35255 z m -0.9906,7.5438 q 0.1905,-0.9144 0.13335,-1.7145 -0.05715,-0.81915 -0.4191,-1.31445 -0.3429,-0.51435 -1.0668,-0.51435 -0.62865,0 -1.0668,0.40005 -0.43815,0.381 -0.70485,1.04775 -0.24765,0.6477 -0.381,1.4478 -0.1524,0.9906 -0.0762,1.80975 0.09525,0.81915 0.4191,1.31445 0.3429,0.47625 0.93345,0.47625 0.6858,0 1.12395,-0.43815 0.43815,-0.43815 0.70485,-1.1049 0.2667,-0.6858 0.40005,-1.4097 z"
id="path1364"
inkscape:label="6"
style="font-size:72px;font-family:'Smiley Sans';-inkscape-font-specification:'Smiley Sans';white-space:pre;shape-inside:url(#rect1358);display:inline;fill:#eeeeee;stroke-width:0.264583;fill-opacity:1"
sodipodi:insensitive="true" />
<rect
style="fill:#424242;fill-opacity:1;stroke-width:0.16332"
id="rect263-8"
width="25.4"
height="25.4"
x="5.2916665"
y="5.2916665"
inkscape:label="内容_左上"
sodipodi:insensitive="true" />
<path
d="m 15.136232,18.353617 1.4478,-8.05815 h 5.46735 l -0.36195,1.6764 h -3.7338 l -0.8001,4.2672 q 0.32385,-0.3048 0.74295,-0.4953 0.43815,-0.1905 0.93345,-0.1905 1.524,0 2.0955,1.35255 0.59055,1.35255 0.2667,3.6957 -0.3048,2.3622 -1.35255,3.7338 -1.04775,1.35255 -2.8956,1.35255 -1.61925,0 -2.34315,-1.0668 -0.7239,-1.0668 -0.66675,-2.76225 l 1.7145,-0.2286 q -0.01905,0.9525 0.32385,1.65735 0.3429,0.6858 1.12395,0.6858 0.93345,0 1.4478,-0.81915 0.51435,-0.8382 0.762,-2.4003 0.2286,-1.3716 0.1143,-2.1717 -0.1143,-0.8001 -0.43815,-1.143 -0.32385,-0.3429 -0.78105,-0.3429 -0.59055,0 -1.04775,0.4191 -0.43815,0.4191 -0.66675,1.12395 z"
id="path1362"
inkscape:label="5"
style="font-size:72px;font-family:'Smiley Sans';-inkscape-font-specification:'Smiley Sans';white-space:pre;shape-inside:url(#rect1358);fill:#eeeeee;stroke-width:0.264583;fill-opacity:1"
sodipodi:insensitive="true" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 11 KiB

@ -0,0 +1,37 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://q0eu58y7gua2"
path="res://.godot/imported/icon.svg-8193eb3d66a1b5143b8bb4c28c1dc139.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Assets/icon.svg"
dest_files=["res://.godot/imported/icon.svg-8193eb3d66a1b5143b8bb4c28c1dc139.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1
svg/scale=1.0
editor/scale_with_editor_scale=false
editor/convert_colors_with_editor_theme=false

@ -0,0 +1,9 @@
[gd_resource type="StyleBoxFlat" format=3 uid="uid://dyccpjybwwek3"]
[resource]
bg_color = Color(0.192157, 0.192157, 0.192157, 1)
border_width_left = 4
border_width_top = 4
border_width_right = 4
border_width_bottom = 4
border_color = Color(0.258824, 0.258824, 0.258824, 1)

@ -0,0 +1,9 @@
[gd_resource type="StyleBoxFlat" format=3 uid="uid://diyafdj4q00tg"]
[resource]
bg_color = Color(0.258824, 0.258824, 0.258824, 1)
border_width_left = 4
border_width_top = 4
border_width_right = 4
border_width_bottom = 4
border_color = Color(0.380392, 0.380392, 0.380392, 1)

@ -0,0 +1,9 @@
[gd_resource type="StyleBoxFlat" format=3 uid="uid://dgcskobwmhc74"]
[resource]
bg_color = Color(0.47451, 0.333333, 0.282353, 1)
border_width_left = 4
border_width_top = 4
border_width_right = 4
border_width_bottom = 4
border_color = Color(0.552941, 0.431373, 0.388235, 1)

Binary file not shown.

@ -0,0 +1,33 @@
[remap]
importer="font_data_dynamic"
type="FontFile"
uid="uid://c3lj58l2mmrld"
path="res://.godot/imported/SmileySans-Oblique.ttf-c310d5025f25fdbb5490efa988208d33.fontdata"
[deps]
source_file="res://Font/SmileySans-Oblique.ttf"
dest_files=["res://.godot/imported/SmileySans-Oblique.ttf-c310d5025f25fdbb5490efa988208d33.fontdata"]
[params]
Rendering=null
antialiasing=1
generate_mipmaps=false
multichannel_signed_distance_field=false
msdf_pixel_range=8
msdf_size=48
allow_system_fallback=true
force_autohinter=false
hinting=1
subpixel_positioning=1
oversampling=0.0
Fallbacks=null
fallbacks=[]
Compress=null
compress=true
preload=[]
language_support={}
script_support={}
opentype_features={}

@ -0,0 +1,21 @@
MIT License
Copyright (c) 2023 PJ568
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

@ -0,0 +1,59 @@
<p align="center">
<img width="256" src='Assets/icon.svg'/>
</p>
> 🌏简体中文 | [English](./README_EN.md)
> 🗃️[Github](https://github.com/PJ-568/568_Calc) | [Gitee](https://gitee.com/PJ-568/568_Calc)
# <img width="30" style="margin: -3px 5px;" src="Assets/icon.svg"/>568_Calc
* <img width="15" src="Assets/icon.svg"/> 568_Calc 是一个简单的多平台支持的计算器。
## 📖其他说明
* `本项目和其使用的开源项目允许修改,但请保留原作者信息。确需去除,请联系作者,以免失去技术支持。`
* 出现 BUG 请提出 `Issue` ,我会修复。
* 期待您的 `Commitment`
## 🏆贡献者们
> 感谢所有让这个项目变得更好的贡献者们!
[![Contributors Chart](https://contrib.rocks/image?repo=PJ-568/568_Calc)](https://github.com/PJ-568/568_Calc/graphs/contributors)
## 💻代码贡献
欢迎每一位对本项目感兴趣的朋友贡献代码。
### 参考
* Fork 源码,下载到本地并运行项目;
* 添加/修改代码;
* <b style="color:red">⚠️对相关改动进行全面的自我测试⚠️</b>
* 确认无误后提交修改到 Github
* 提交 Pull Request
### 请注意
* 单次 Pull Request 不应提交过多修改,请确保每次提交都针对特定的功能且务必说明本次改动的具体目的,例如:修复某 bug 、优化某方法 等,方便进行 Code Review
* 对于 bug 的修复,应该将本次 Pull Request 和相对应 bug 的 issue 关联起来,让别人知道该问题已经被修复;
* 对于较大的新功能,你需要先提交 Issues例如 “添加 XXX 功能”,确认该功能有被添加的必要后,再开始工作;
* 对于一些主观的样式、交互逻辑调整:如颜色、图标的使用,某些预设配置的增减修改等,一般不予通过。但可以在 Discussions 中进行讨论;
* 其他如简单的代码优化、文档修正等,只要修改合理都会被接受。
## ⭐Star 历史
![Star History Chart](https://api.star-history.com/svg?repos=PJ-568/568_Calc&type=Date)
## 📄许可证
本项目遵循 [MIT license](https://mit-license.org) 许可协议。如果想了解完整许可信息,请查阅 `LICENSE` 文件。
### 🗃️附加许可证
* Godot[MIT license](https://mit-license.org)
* [Github](https://github.com/godotengine/godot)
* smiley-sans[OFL-1.1 license](https://github.com/atelier-anchor/smiley-sans/blob/main/LICENSE)
* [Github](https://github.com/atelier-anchor/smiley-sans)。

@ -0,0 +1,171 @@
extends Control
@onready var = $"面板/背景色/屏键容器/结果显示容器/MarginContainer/VBoxContainer/上个工作区"
@onready var = $"面板/背景色/屏键容器/结果显示容器/MarginContainer/VBoxContainer/工作区"
@onready var = $"面板/背景色/屏键容器/MarginContainer2/上下键盘分隔"
var 使 := false ##工作区内是否有数字
var : float
var : float
var := ""
var := false ##工作区内是否为小数(防止两个小数点出现)
# 初始化
func _ready():
for Buttons in .get_children():
for btn in Buttons.get_children():
if btn.name.is_valid_int():
btn.pressed.connect(Callable(self, "_number_buttons").bind(btn))
func _unhandled_input(event) -> void:
if Input.is_action_pressed("ui_text_backspace") or Input.is_action_pressed("ui_cancel"):
退()
if Input.is_action_pressed("1"):
("1")
if Input.is_action_pressed("2"):
("2")
if Input.is_action_pressed("3"):
("3")
if Input.is_action_pressed("4"):
("4")
if Input.is_action_pressed("5"):
("5")
if Input.is_action_pressed("6"):
("6")
if Input.is_action_pressed("7"):
("7")
if Input.is_action_pressed("8"):
("8")
if Input.is_action_pressed("9"):
("9")
if Input.is_action_pressed("0"):
("0")
if Input.is_action_pressed(""):
()
if Input.is_action_pressed("归零") or Input.is_action_pressed("ui_menu") or Input.is_action_pressed("ui_home"):
_on_clear_pressed()
if Input.is_action_pressed(""):
()
if Input.is_action_pressed(""):
()
if Input.is_action_pressed(""):
()
if Input.is_action_pressed(""):
()
if Input.is_action_pressed("等于"):
()
if Input.is_action_pressed("取反"):
()
if Input.is_action_pressed("关于"):
_on__pressed()
func ():
if not 使:
.text =
使 = true
else:
.text +=
func _number_buttons(btn):
if not 使:
.text = btn.name
使 = true
else:
.text += btn.name
func _on_clear_pressed():
使 = false
.text = ""
.text = "0"
= false
func ():
var : float
= .text.to_float()
= -
if not 使:
.text = "-" + str()
else:
.text = str()
.text = str()
使 = true
func 退():
if 使:
if .text.length() >= 2:
.text = .text.left(-1)
else:
.text = "0"
使 = false
func ():
使 = false
= .text.to_float()
= "/"
.text = str() +
= false
func ():
使 = false
= .text.to_float()
= "*"
.text = str() +
= false
func ():
使 = false
= .text.to_float()
= "-"
.text = str() +
= false
func ():
使 = false
= .text.to_float()
= "+"
.text = str() +
= false
func ():
if == false:
if 使 == true:
.text += "."
= true
else:
.text = "0."
使 = true
= true
func ():
使 = false
var : float
= .text.to_float()
match :
"+":
= +
"-":
= -
"*":
= *
"/":
= /
.text = str() + + str()
.text = str(snappedf(, 0.0000000001))
func _on__pressed():
get_tree ().change_scene_to_file("res://关于.tscn")

@ -0,0 +1,10 @@
extends Control
func _unhandled_input(event) -> void:
if Input.is_action_pressed("归零") or Input.is_action_pressed("ui_menu") or Input.is_action_pressed("ui_home") or Input.is_action_pressed("ui_text_backspace") or Input.is_action_pressed("关于") or Input.is_action_pressed("ui_cancel"):
_on__pressed()
func _on__pressed():
get_tree ().change_scene_to_file("res://主界面.tscn")

@ -0,0 +1,341 @@
[preset.0]
name="Windows Desktop x86_64"
platform="Windows Desktop"
runnable=true
dedicated_server=false
custom_features=""
export_filter="all_resources"
include_filter=""
exclude_filter=""
export_path="Release/Windows/568_Calc.exe"
encryption_include_filters=""
encryption_exclude_filters=""
encrypt_pck=false
encrypt_directory=false
[preset.0.options]
custom_template/debug=""
custom_template/release=""
debug/export_console_wrapper=0
binary_format/embed_pck=true
texture_format/bptc=true
texture_format/s3tc=true
texture_format/etc=false
texture_format/etc2=false
binary_format/architecture="x86_64"
codesign/enable=false
codesign/timestamp=true
codesign/timestamp_server_url=""
codesign/digest_algorithm=1
codesign/description=""
codesign/custom_options=PackedStringArray()
application/modify_resources=true
application/icon=""
application/console_wrapper_icon=""
application/icon_interpolation=4
application/file_version="0.0.0.1"
application/product_version="0.0.0.1"
application/company_name="PJ568"
application/product_name="568_Calc"
application/file_description=""
application/copyright=""
application/trademarks=""
ssh_remote_deploy/enabled=false
ssh_remote_deploy/host="user@host_ip"
ssh_remote_deploy/port="22"
ssh_remote_deploy/extra_args_ssh=""
ssh_remote_deploy/extra_args_scp=""
ssh_remote_deploy/run_script="Expand-Archive -LiteralPath '{temp_dir}\\{archive_name}' -DestinationPath '{temp_dir}'
$action = New-ScheduledTaskAction -Execute '{temp_dir}\\{exe_name}' -Argument '{cmd_args}'
$trigger = New-ScheduledTaskTrigger -Once -At 00:00
$settings = New-ScheduledTaskSettingsSet
$task = New-ScheduledTask -Action $action -Trigger $trigger -Settings $settings
Register-ScheduledTask godot_remote_debug -InputObject $task -Force:$true
Start-ScheduledTask -TaskName godot_remote_debug
while (Get-ScheduledTask -TaskName godot_remote_debug | ? State -eq running) { Start-Sleep -Milliseconds 100 }
Unregister-ScheduledTask -TaskName godot_remote_debug -Confirm:$false -ErrorAction:SilentlyContinue"
ssh_remote_deploy/cleanup_script="Stop-ScheduledTask -TaskName godot_remote_debug -ErrorAction:SilentlyContinue
Unregister-ScheduledTask -TaskName godot_remote_debug -Confirm:$false -ErrorAction:SilentlyContinue
Remove-Item -Recurse -Force '{temp_dir}'"
[preset.1]
name="Linux/X11 x86_64"
platform="Linux/X11"
runnable=true
dedicated_server=false
custom_features=""
export_filter="all_resources"
include_filter=""
exclude_filter=""
export_path="Release/Linux/568_Calc.x86_64"
encryption_include_filters=""
encryption_exclude_filters=""
encrypt_pck=false
encrypt_directory=false
[preset.1.options]
custom_template/debug=""
custom_template/release=""
debug/export_console_wrapper=0
binary_format/embed_pck=false
texture_format/bptc=true
texture_format/s3tc=true
texture_format/etc=false
texture_format/etc2=false
binary_format/architecture="x86_64"
ssh_remote_deploy/enabled=false
ssh_remote_deploy/host="user@host_ip"
ssh_remote_deploy/port="22"
ssh_remote_deploy/extra_args_ssh=""
ssh_remote_deploy/extra_args_scp=""
ssh_remote_deploy/run_script="#!/usr/bin/env bash
export DISPLAY=:0
unzip -o -q \"{temp_dir}/{archive_name}\" -d \"{temp_dir}\"
\"{temp_dir}/{exe_name}\" {cmd_args}"
ssh_remote_deploy/cleanup_script="#!/usr/bin/env bash
kill $(pgrep -x -f \"{temp_dir}/{exe_name} {cmd_args}\")
rm -rf \"{temp_dir}\""
[preset.2]
name="Web"
platform="Web"
runnable=true
dedicated_server=false
custom_features=""
export_filter="all_resources"
include_filter=""
exclude_filter=""
export_path="Release/Web/index.html"
encryption_include_filters=""
encryption_exclude_filters=""
encrypt_pck=false
encrypt_directory=false
[preset.2.options]
custom_template/debug=""
custom_template/release=""
variant/extensions_support=false
vram_texture_compression/for_desktop=true
vram_texture_compression/for_mobile=true
html/export_icon=true
html/custom_html_shell=""
html/head_include=""
html/canvas_resize_policy=2
html/focus_canvas_on_start=true
html/experimental_virtual_keyboard=false
progressive_web_app/enabled=false
progressive_web_app/offline_page=""
progressive_web_app/display=1
progressive_web_app/orientation=0
progressive_web_app/icon_144x144=""
progressive_web_app/icon_180x180=""
progressive_web_app/icon_512x512=""
progressive_web_app/background_color=Color(0, 0, 0, 1)
[preset.3]
name="Android"
platform="Android"
runnable=true
dedicated_server=false
custom_features=""
export_filter="all_resources"
include_filter=""
exclude_filter=""
export_path="Release/Android/568_Calc.apk"
encryption_include_filters=""
encryption_exclude_filters=""
encrypt_pck=false
encrypt_directory=false
[preset.3.options]
custom_template/debug=""
custom_template/release=""
gradle_build/use_gradle_build=true
gradle_build/export_format=0
gradle_build/min_sdk=""
gradle_build/target_sdk="32"
architectures/armeabi-v7a=false
architectures/arm64-v8a=true
architectures/x86=false
architectures/x86_64=false
version/code=1
version/name="v0.0.0.1"
package/unique_name="PJ568.Calculator"
package/name=""
package/signed=true
package/app_category=6
package/retain_data_on_uninstall=false
package/exclude_from_recents=false
launcher_icons/main_192x192="res://Assets/Android/568_Calc_Icon.svg"
launcher_icons/adaptive_foreground_432x432="res://Assets/Android/568_Calc_Fore.svg"
launcher_icons/adaptive_background_432x432="res://Assets/Android/568_Calc_Back.svg"
graphics/opengl_debug=false
xr_features/xr_mode=0
xr_features/hand_tracking=0
xr_features/hand_tracking_frequency=0
xr_features/passthrough=0
screen/immersive_mode=false
screen/support_small=true
screen/support_normal=true
screen/support_large=true
screen/support_xlarge=true
user_data_backup/allow=true
command_line/extra_args=""
apk_expansion/enable=false
apk_expansion/SALT=""
apk_expansion/public_key=""
permissions/custom_permissions=PackedStringArray()
permissions/access_checkin_properties=false
permissions/access_coarse_location=false
permissions/access_fine_location=false
permissions/access_location_extra_commands=false
permissions/access_mock_location=false
permissions/access_network_state=false
permissions/access_surface_flinger=false
permissions/access_wifi_state=false
permissions/account_manager=false
permissions/add_voicemail=false
permissions/authenticate_accounts=false
permissions/battery_stats=false
permissions/bind_accessibility_service=false
permissions/bind_appwidget=false
permissions/bind_device_admin=false
permissions/bind_input_method=false
permissions/bind_nfc_service=false
permissions/bind_notification_listener_service=false
permissions/bind_print_service=false
permissions/bind_remoteviews=false
permissions/bind_text_service=false
permissions/bind_vpn_service=false
permissions/bind_wallpaper=false
permissions/bluetooth=false
permissions/bluetooth_admin=false
permissions/bluetooth_privileged=false
permissions/brick=false
permissions/broadcast_package_removed=false
permissions/broadcast_sms=false
permissions/broadcast_sticky=false
permissions/broadcast_wap_push=false
permissions/call_phone=false
permissions/call_privileged=false
permissions/camera=false
permissions/capture_audio_output=false
permissions/capture_secure_video_output=false
permissions/capture_video_output=false
permissions/change_component_enabled_state=false
permissions/change_configuration=false
permissions/change_network_state=false
permissions/change_wifi_multicast_state=false
permissions/change_wifi_state=false
permissions/clear_app_cache=false
permissions/clear_app_user_data=false
permissions/control_location_updates=false
permissions/delete_cache_files=false
permissions/delete_packages=false
permissions/device_power=false
permissions/diagnostic=false
permissions/disable_keyguard=false
permissions/dump=false
permissions/expand_status_bar=false
permissions/factory_test=false
permissions/flashlight=false
permissions/force_back=false
permissions/get_accounts=false
permissions/get_package_size=false
permissions/get_tasks=false
permissions/get_top_activity_info=false
permissions/global_search=false
permissions/hardware_test=false
permissions/inject_events=false
permissions/install_location_provider=false
permissions/install_packages=false
permissions/install_shortcut=false
permissions/internal_system_window=false
permissions/internet=false
permissions/kill_background_processes=false
permissions/location_hardware=false
permissions/manage_accounts=false
permissions/manage_app_tokens=false
permissions/manage_documents=false
permissions/manage_external_storage=false
permissions/master_clear=false
permissions/media_content_control=false
permissions/modify_audio_settings=false
permissions/modify_phone_state=false
permissions/mount_format_filesystems=false
permissions/mount_unmount_filesystems=false
permissions/nfc=false
permissions/persistent_activity=false
permissions/process_outgoing_calls=false
permissions/read_calendar=false
permissions/read_call_log=false
permissions/read_contacts=false
permissions/read_external_storage=false
permissions/read_frame_buffer=false
permissions/read_history_bookmarks=false
permissions/read_input_state=false
permissions/read_logs=false
permissions/read_phone_state=false
permissions/read_profile=false
permissions/read_sms=false
permissions/read_social_stream=false
permissions/read_sync_settings=false
permissions/read_sync_stats=false
permissions/read_user_dictionary=false
permissions/reboot=false
permissions/receive_boot_completed=false
permissions/receive_mms=false
permissions/receive_sms=false
permissions/receive_wap_push=false
permissions/record_audio=false
permissions/reorder_tasks=false
permissions/restart_packages=false
permissions/send_respond_via_message=false
permissions/send_sms=false
permissions/set_activity_watcher=false
permissions/set_alarm=false
permissions/set_always_finish=false
permissions/set_animation_scale=false
permissions/set_debug_app=false
permissions/set_orientation=false
permissions/set_pointer_speed=false
permissions/set_preferred_applications=false
permissions/set_process_limit=false
permissions/set_time=false
permissions/set_time_zone=false
permissions/set_wallpaper=false
permissions/set_wallpaper_hints=false
permissions/signal_persistent_processes=false
permissions/status_bar=false
permissions/subscribed_feeds_read=false
permissions/subscribed_feeds_write=false
permissions/system_alert_window=false
permissions/transmit_ir=false
permissions/uninstall_shortcut=false
permissions/update_device_stats=false
permissions/use_credentials=false
permissions/use_sip=false
permissions/vibrate=false
permissions/wake_lock=false
permissions/write_apn_settings=false
permissions/write_calendar=false
permissions/write_call_log=false
permissions/write_contacts=false
permissions/write_external_storage=false
permissions/write_gservices=false
permissions/write_history_bookmarks=false
permissions/write_profile=false
permissions/write_secure_settings=false
permissions/write_settings=false
permissions/write_sms=false
permissions/write_social_stream=false
permissions/write_sync_settings=false
permissions/write_user_dictionary=false

@ -0,0 +1,157 @@
; Engine configuration file.
; It's best edited using the editor UI and not directly,
; since the parameters that go here are not all obvious.
;
; Format:
; [section] ; section goes between []
; param=value ; assign values to parameters
config_version=5
[application]
config/name="568_Calc"
config/tags=PackedStringArray("个人项目")
run/main_scene="res://主界面.tscn"
config/features=PackedStringArray("4.1", "GL Compatibility")
boot_splash/bg_color=Color(0.141176, 0.141176, 0.141176, 0)
boot_splash/image="res://Assets/568_Calc.png"
boot_splash/fullsize=false
config/icon="res://Assets/icon.svg"
[display]
window/size/viewport_width=720
window/size/viewport_height=1221
window/stretch/mode="canvas_items"
window/stretch/aspect="expand"
window/handheld/orientation=6
[input]
1={
"deadzone": 0.5,
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":49,"key_label":0,"unicode":49,"echo":false,"script":null)
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":4194439,"key_label":0,"unicode":49,"echo":false,"script":null)
]
}
2={
"deadzone": 0.5,
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":50,"key_label":0,"unicode":50,"echo":false,"script":null)
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":4194440,"key_label":0,"unicode":50,"echo":false,"script":null)
]
}
3={
"deadzone": 0.5,
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":51,"key_label":0,"unicode":51,"echo":false,"script":null)
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":4194441,"key_label":0,"unicode":51,"echo":false,"script":null)
]
}
4={
"deadzone": 0.5,
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":52,"key_label":0,"unicode":52,"echo":false,"script":null)
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":4194442,"key_label":0,"unicode":52,"echo":false,"script":null)
]
}
5={
"deadzone": 0.5,
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":53,"key_label":0,"unicode":53,"echo":false,"script":null)
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":4194443,"key_label":0,"unicode":53,"echo":false,"script":null)
]
}
6={
"deadzone": 0.5,
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":54,"key_label":0,"unicode":54,"echo":false,"script":null)
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":4194444,"key_label":0,"unicode":54,"echo":false,"script":null)
]
}
7={
"deadzone": 0.5,
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":55,"key_label":0,"unicode":55,"echo":false,"script":null)
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":4194445,"key_label":0,"unicode":55,"echo":false,"script":null)
]
}
8={
"deadzone": 0.5,
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":56,"key_label":0,"unicode":56,"echo":false,"script":null)
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":4194446,"key_label":0,"unicode":56,"echo":false,"script":null)
]
}
9={
"deadzone": 0.5,
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":57,"key_label":0,"unicode":57,"echo":false,"script":null)
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":4194447,"key_label":0,"unicode":57,"echo":false,"script":null)
]
}
0={
"deadzone": 0.5,
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":48,"key_label":0,"unicode":48,"echo":false,"script":null)
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":4194438,"key_label":0,"unicode":48,"echo":false,"script":null)
]
}
"等于"={
"deadzone": 0.5,
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":61,"key_label":0,"unicode":61,"echo":false,"script":null)
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":4194310,"key_label":0,"unicode":0,"echo":false,"script":null)
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":32,"key_label":0,"unicode":32,"echo":false,"script":null)
, Object(InputEventMouseButton,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"button_mask":0,"position":Vector2(0, 0),"global_position":Vector2(0, 0),"factor":1.0,"button_index":3,"canceled":false,"pressed":false,"double_click":false,"script":null)
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":-1,"button_index":6,"pressure":0.0,"pressed":false,"script":null)
]
}
"取反"={
"deadzone": 0.5,
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":78,"key_label":0,"unicode":110,"echo":false,"script":null)
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":-1,"button_index":2,"pressure":0.0,"pressed":false,"script":null)
, Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":-1,"axis":4,"axis_value":-1.0,"script":null)
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":92,"key_label":0,"unicode":92,"echo":false,"script":null)
]
}
"归零"={
"deadzone": 0.5,
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":67,"key_label":0,"unicode":99,"echo":false,"script":null)
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":-1,"button_index":10,"pressure":0.0,"pressed":false,"script":null)
]
}
"加"={
"deadzone": 0.5,
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":4194437,"key_label":0,"unicode":43,"echo":false,"script":null)
]
}
"减"={
"deadzone": 0.5,
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":45,"key_label":0,"unicode":45,"echo":false,"script":null)
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":4194435,"key_label":0,"unicode":45,"echo":false,"script":null)
]
}
"乘"={
"deadzone": 0.5,
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":4194433,"key_label":0,"unicode":42,"echo":false,"script":null)
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":true,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":56,"key_label":0,"unicode":42,"echo":false,"script":null)
]
}
"除"={
"deadzone": 0.5,
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":47,"key_label":0,"unicode":47,"echo":false,"script":null)
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":4194434,"key_label":0,"unicode":47,"echo":false,"script":null)
]
}
"点"={
"deadzone": 0.5,
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":46,"key_label":0,"unicode":46,"echo":false,"script":null)
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":4194436,"key_label":0,"unicode":46,"echo":false,"script":null)
]
}
"关于"={
"deadzone": 0.5,
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":4194332,"key_label":0,"unicode":0,"echo":false,"script":null)
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":73,"key_label":0,"unicode":105,"echo":false,"script":null)
, Object(InputEventMouseButton,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"button_mask":0,"position":Vector2(0, 0),"global_position":Vector2(0, 0),"factor":1.0,"button_index":2,"canceled":false,"pressed":false,"double_click":false,"script":null)
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":-1,"button_index":15,"pressure":0.0,"pressed":false,"script":null)
]
}
[rendering]
renderer/rendering_method="gl_compatibility"
renderer/rendering_method.mobile="gl_compatibility"
textures/vram_compression/import_etc2_astc=true

@ -0,0 +1,354 @@
[gd_scene load_steps=9 format=3 uid="uid://g4du8c33vab5"]
[ext_resource type="FontFile" uid="uid://c3lj58l2mmrld" path="res://Font/SmileySans-Oblique.ttf" id="1_g8qlb"]
[ext_resource type="Script" path="res://Scripts/主界面.gd" id="1_y82yl"]
[ext_resource type="StyleBox" uid="uid://dyccpjybwwek3" path="res://Assets/样式/正常功能.tres" id="2_asaep"]
[ext_resource type="StyleBox" uid="uid://dgcskobwmhc74" path="res://Assets/样式/正常等于.tres" id="2_xhj82"]
[ext_resource type="StyleBox" uid="uid://diyafdj4q00tg" path="res://Assets/样式/正常数字.tres" id="3_7cxsl"]
[ext_resource type="Texture2D" uid="uid://q0eu58y7gua2" path="res://Assets/icon.svg" id="3_o66lt"]
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_yp77b"]
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_2bxdx"]
[node name="主界面" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
size_flags_horizontal = 4
size_flags_vertical = 4
script = ExtResource("1_y82yl")
[node name="面板" type="Panel" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="背景色" type="ColorRect" parent="面板"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
color = Color(0.129412, 0.129412, 0.129412, 1)
[node name="MarginContainer" type="MarginContainer" parent="面板/背景色"]
layout_mode = 2
offset_left = -1.5
offset_top = -5.0
offset_right = 721.5
offset_bottom = 91.0
size_flags_vertical = 0
theme_override_constants/margin_top = 32
theme_override_constants/margin_right = 32
[node name="顶按钮容器" type="HBoxContainer" parent="面板/背景色/MarginContainer"]
layout_mode = 2
alignment = 2
[node name="关于" type="Button" parent="面板/背景色/MarginContainer/顶按钮容器"]
custom_minimum_size = Vector2(64, 64)
layout_mode = 2
theme_override_fonts/font = ExtResource("1_g8qlb")
theme_override_font_sizes/font_size = 32
theme_override_styles/normal = ExtResource("2_asaep")
theme_override_styles/focus = SubResource("StyleBoxEmpty_yp77b")
text = "i"
[node name="设置" type="Button" parent="面板/背景色/MarginContainer/顶按钮容器"]
custom_minimum_size = Vector2(64, 64)
layout_mode = 2
theme_override_font_sizes/font_size = 32
theme_override_styles/normal = ExtResource("2_asaep")
theme_override_styles/focus = SubResource("StyleBoxEmpty_yp77b")
icon = ExtResource("3_o66lt")
icon_alignment = 1
expand_icon = true
[node name="屏键容器" type="VBoxContainer" parent="面板/背景色"]
layout_mode = 1
anchors_preset = 12
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_top = -1226.0
grow_horizontal = 2
grow_vertical = 0
[node name="结果显示容器" type="VBoxContainer" parent="面板/背景色/屏键容器"]
layout_mode = 2
size_flags_horizontal = 8
size_flags_vertical = 0
[node name="MarginContainer" type="MarginContainer" parent="面板/背景色/屏键容器/结果显示容器"]
layout_mode = 2
theme_override_constants/margin_top = 96
theme_override_constants/margin_right = 32
[node name="VBoxContainer" type="VBoxContainer" parent="面板/背景色/屏键容器/结果显示容器/MarginContainer"]
layout_mode = 2
[node name="上个工作区" type="Label" parent="面板/背景色/屏键容器/结果显示容器/MarginContainer/VBoxContainer"]
layout_mode = 2
theme_override_colors/font_color = Color(0.737255, 0.666667, 0.643137, 1)
theme_override_fonts/font = ExtResource("1_g8qlb")
theme_override_font_sizes/font_size = 48
horizontal_alignment = 2
[node name="工作区" type="Label" parent="面板/背景色/屏键容器/结果显示容器/MarginContainer/VBoxContainer"]
layout_mode = 2
theme_override_colors/font_color = Color(0.933333, 0.933333, 0.933333, 1)
theme_override_fonts/font = ExtResource("1_g8qlb")
theme_override_font_sizes/font_size = 128
text = "0"
horizontal_alignment = 2
[node name="MarginContainer2" type="MarginContainer" parent="面板/背景色/屏键容器"]
layout_mode = 2
size_flags_vertical = 4
theme_override_constants/margin_left = 5
theme_override_constants/margin_top = 5
theme_override_constants/margin_right = 5
theme_override_constants/margin_bottom = 5
[node name="上下键盘分隔" type="VBoxContainer" parent="面板/背景色/屏键容器/MarginContainer2"]
layout_mode = 2
size_flags_horizontal = 4
size_flags_vertical = 4
[node name="上键盘" type="GridContainer" parent="面板/背景色/屏键容器/MarginContainer2/上下键盘分隔"]
layout_mode = 2
size_flags_horizontal = 4
columns = 4
[node name="Clear" type="Button" parent="面板/背景色/屏键容器/MarginContainer2/上下键盘分隔/上键盘"]
custom_minimum_size = Vector2(175, 175)
layout_mode = 2
size_flags_horizontal = 6
size_flags_vertical = 6
theme_override_fonts/font = ExtResource("1_g8qlb")
theme_override_font_sizes/font_size = 64
theme_override_styles/normal = ExtResource("2_asaep")
theme_override_styles/focus = SubResource("StyleBoxEmpty_2bxdx")
text = "C"
[node name="Or" type="Button" parent="面板/背景色/屏键容器/MarginContainer2/上下键盘分隔/上键盘"]
custom_minimum_size = Vector2(175, 175)
layout_mode = 2
size_flags_horizontal = 6
size_flags_vertical = 6
theme_override_fonts/font = ExtResource("1_g8qlb")
theme_override_font_sizes/font_size = 64
theme_override_styles/normal = ExtResource("2_asaep")
theme_override_styles/focus = SubResource("StyleBoxEmpty_2bxdx")
text = "-\\+"
[node name="Back" type="Button" parent="面板/背景色/屏键容器/MarginContainer2/上下键盘分隔/上键盘"]
custom_minimum_size = Vector2(175, 175)
layout_mode = 2
size_flags_horizontal = 6
size_flags_vertical = 6
theme_override_fonts/font = ExtResource("1_g8qlb")
theme_override_font_sizes/font_size = 64
theme_override_styles/normal = ExtResource("2_asaep")
theme_override_styles/focus = SubResource("StyleBoxEmpty_2bxdx")
text = "←"
[node name="÷" type="Button" parent="面板/背景色/屏键容器/MarginContainer2/上下键盘分隔/上键盘"]
custom_minimum_size = Vector2(175, 175)
layout_mode = 2
size_flags_horizontal = 6
size_flags_vertical = 6
theme_override_fonts/font = ExtResource("1_g8qlb")
theme_override_font_sizes/font_size = 64
theme_override_styles/normal = ExtResource("2_asaep")
theme_override_styles/focus = SubResource("StyleBoxEmpty_2bxdx")
text = "/"
[node name="7" type="Button" parent="面板/背景色/屏键容器/MarginContainer2/上下键盘分隔/上键盘"]
custom_minimum_size = Vector2(175, 175)
layout_mode = 2
size_flags_horizontal = 6
size_flags_vertical = 6
theme_override_fonts/font = ExtResource("1_g8qlb")
theme_override_font_sizes/font_size = 64
theme_override_styles/normal = ExtResource("3_7cxsl")
theme_override_styles/focus = SubResource("StyleBoxEmpty_2bxdx")
text = "7"
[node name="8" type="Button" parent="面板/背景色/屏键容器/MarginContainer2/上下键盘分隔/上键盘"]
custom_minimum_size = Vector2(175, 175)
layout_mode = 2
size_flags_horizontal = 6
size_flags_vertical = 6
theme_override_fonts/font = ExtResource("1_g8qlb")
theme_override_font_sizes/font_size = 64
theme_override_styles/normal = ExtResource("3_7cxsl")
theme_override_styles/focus = SubResource("StyleBoxEmpty_2bxdx")
text = "8"
[node name="9" type="Button" parent="面板/背景色/屏键容器/MarginContainer2/上下键盘分隔/上键盘"]
custom_minimum_size = Vector2(175, 175)
layout_mode = 2
size_flags_horizontal = 6
size_flags_vertical = 6
theme_override_fonts/font = ExtResource("1_g8qlb")
theme_override_font_sizes/font_size = 64
theme_override_styles/normal = ExtResource("3_7cxsl")
theme_override_styles/focus = SubResource("StyleBoxEmpty_2bxdx")
text = "9"
[node name="*" type="Button" parent="面板/背景色/屏键容器/MarginContainer2/上下键盘分隔/上键盘"]
custom_minimum_size = Vector2(175, 175)
layout_mode = 2
size_flags_horizontal = 6
size_flags_vertical = 6
theme_override_fonts/font = ExtResource("1_g8qlb")
theme_override_font_sizes/font_size = 64
theme_override_styles/normal = ExtResource("2_asaep")
theme_override_styles/focus = SubResource("StyleBoxEmpty_2bxdx")
text = "*"
[node name="4" type="Button" parent="面板/背景色/屏键容器/MarginContainer2/上下键盘分隔/上键盘"]
custom_minimum_size = Vector2(175, 175)
layout_mode = 2
size_flags_horizontal = 6
size_flags_vertical = 6
theme_override_fonts/font = ExtResource("1_g8qlb")
theme_override_font_sizes/font_size = 64
theme_override_styles/normal = ExtResource("3_7cxsl")
theme_override_styles/focus = SubResource("StyleBoxEmpty_2bxdx")
text = "4"
[node name="5" type="Button" parent="面板/背景色/屏键容器/MarginContainer2/上下键盘分隔/上键盘"]
custom_minimum_size = Vector2(175, 175)
layout_mode = 2
size_flags_horizontal = 6
size_flags_vertical = 6
theme_override_fonts/font = ExtResource("1_g8qlb")
theme_override_font_sizes/font_size = 64
theme_override_styles/normal = ExtResource("3_7cxsl")
theme_override_styles/focus = SubResource("StyleBoxEmpty_2bxdx")
text = "5"
[node name="6" type="Button" parent="面板/背景色/屏键容器/MarginContainer2/上下键盘分隔/上键盘"]
custom_minimum_size = Vector2(175, 175)
layout_mode = 2
size_flags_horizontal = 6
size_flags_vertical = 6
theme_override_fonts/font = ExtResource("1_g8qlb")
theme_override_font_sizes/font_size = 64
theme_override_styles/normal = ExtResource("3_7cxsl")
theme_override_styles/focus = SubResource("StyleBoxEmpty_2bxdx")
text = "6"
[node name="-" type="Button" parent="面板/背景色/屏键容器/MarginContainer2/上下键盘分隔/上键盘"]
custom_minimum_size = Vector2(175, 175)
layout_mode = 2
size_flags_horizontal = 6
size_flags_vertical = 6
theme_override_fonts/font = ExtResource("1_g8qlb")
theme_override_font_sizes/font_size = 64
theme_override_styles/normal = ExtResource("2_asaep")
theme_override_styles/focus = SubResource("StyleBoxEmpty_2bxdx")
text = "-"
[node name="1" type="Button" parent="面板/背景色/屏键容器/MarginContainer2/上下键盘分隔/上键盘"]
custom_minimum_size = Vector2(175, 175)
layout_mode = 2
size_flags_horizontal = 6
size_flags_vertical = 6
theme_override_fonts/font = ExtResource("1_g8qlb")
theme_override_font_sizes/font_size = 64
theme_override_styles/normal = ExtResource("3_7cxsl")
theme_override_styles/focus = SubResource("StyleBoxEmpty_2bxdx")
text = "1"
[node name="2" type="Button" parent="面板/背景色/屏键容器/MarginContainer2/上下键盘分隔/上键盘"]
custom_minimum_size = Vector2(175, 175)
layout_mode = 2
size_flags_horizontal = 6
size_flags_vertical = 6
theme_override_fonts/font = ExtResource("1_g8qlb")
theme_override_font_sizes/font_size = 64
theme_override_styles/normal = ExtResource("3_7cxsl")
theme_override_styles/focus = SubResource("StyleBoxEmpty_2bxdx")
text = "2"
[node name="3" type="Button" parent="面板/背景色/屏键容器/MarginContainer2/上下键盘分隔/上键盘"]
custom_minimum_size = Vector2(175, 175)
layout_mode = 2
size_flags_horizontal = 6
size_flags_vertical = 6
theme_override_fonts/font = ExtResource("1_g8qlb")
theme_override_font_sizes/font_size = 64
theme_override_styles/normal = ExtResource("3_7cxsl")
theme_override_styles/focus = SubResource("StyleBoxEmpty_2bxdx")
text = "3"
[node name="+" type="Button" parent="面板/背景色/屏键容器/MarginContainer2/上下键盘分隔/上键盘"]
custom_minimum_size = Vector2(175, 175)
layout_mode = 2
size_flags_horizontal = 6
size_flags_vertical = 6
theme_override_fonts/font = ExtResource("1_g8qlb")
theme_override_font_sizes/font_size = 64
theme_override_styles/normal = ExtResource("2_asaep")
theme_override_styles/focus = SubResource("StyleBoxEmpty_2bxdx")
text = "+"
[node name="下键盘" type="HBoxContainer" parent="面板/背景色/屏键容器/MarginContainer2/上下键盘分隔"]
layout_mode = 2
size_flags_horizontal = 4
size_flags_vertical = 4
[node name="0" type="Button" parent="面板/背景色/屏键容器/MarginContainer2/上下键盘分隔/下键盘"]
custom_minimum_size = Vector2(355, 175)
layout_mode = 2
size_flags_horizontal = 6
size_flags_vertical = 5
theme_override_fonts/font = ExtResource("1_g8qlb")
theme_override_font_sizes/font_size = 64
theme_override_styles/normal = ExtResource("3_7cxsl")
theme_override_styles/focus = SubResource("StyleBoxEmpty_2bxdx")
text = "0"
[node name="_" type="Button" parent="面板/背景色/屏键容器/MarginContainer2/上下键盘分隔/下键盘"]
custom_minimum_size = Vector2(175, 175)
layout_mode = 2
size_flags_horizontal = 6
size_flags_vertical = 5
theme_override_fonts/font = ExtResource("1_g8qlb")
theme_override_font_sizes/font_size = 64
theme_override_styles/normal = ExtResource("3_7cxsl")
theme_override_styles/focus = SubResource("StyleBoxEmpty_2bxdx")
text = "."
[node name="=" type="Button" parent="面板/背景色/屏键容器/MarginContainer2/上下键盘分隔/下键盘"]
custom_minimum_size = Vector2(175, 175)
layout_mode = 2
size_flags_horizontal = 6
size_flags_vertical = 5
theme_override_fonts/font = ExtResource("1_g8qlb")
theme_override_font_sizes/font_size = 64
theme_override_styles/normal = ExtResource("2_xhj82")
theme_override_styles/focus = SubResource("StyleBoxEmpty_2bxdx")
text = "="
[connection signal="pressed" from="面板/背景色/MarginContainer/顶按钮容器/关于" to="." method="_on_关于_pressed"]
[connection signal="pressed" from="面板/背景色/屏键容器/MarginContainer2/上下键盘分隔/上键盘/Clear" to="." method="_on_clear_pressed"]
[connection signal="pressed" from="面板/背景色/屏键容器/MarginContainer2/上下键盘分隔/上键盘/Or" to="." method="按下正负"]
[connection signal="pressed" from="面板/背景色/屏键容器/MarginContainer2/上下键盘分隔/上键盘/Back" to="." method="按下退格"]
[connection signal="pressed" from="面板/背景色/屏键容器/MarginContainer2/上下键盘分隔/上键盘/÷" to="." method="按下除"]
[connection signal="pressed" from="面板/背景色/屏键容器/MarginContainer2/上下键盘分隔/上键盘/*" to="." method="按下乘"]
[connection signal="pressed" from="面板/背景色/屏键容器/MarginContainer2/上下键盘分隔/上键盘/-" to="." method="按下减"]
[connection signal="pressed" from="面板/背景色/屏键容器/MarginContainer2/上下键盘分隔/上键盘/+" to="." method="按下加"]
[connection signal="pressed" from="面板/背景色/屏键容器/MarginContainer2/上下键盘分隔/下键盘/_" to="." method="按下点"]
[connection signal="pressed" from="面板/背景色/屏键容器/MarginContainer2/上下键盘分隔/下键盘/=" to="." method="等于"]

@ -0,0 +1,294 @@
[gd_scene load_steps=7 format=3 uid="uid://g4du8c33vab5"]
[ext_resource type="FontFile" uid="uid://c3lj58l2mmrld" path="res://Font/SmileySans-Oblique.ttf" id="1_g8qlb"]
[ext_resource type="Script" path="res://Scripts/主界面.gd" id="1_y82yl"]
[ext_resource type="StyleBox" uid="uid://dyccpjybwwek3" path="res://Assets/样式/正常功能.tres" id="2_asaep"]
[ext_resource type="StyleBox" uid="uid://dgcskobwmhc74" path="res://Assets/样式/正常等于.tres" id="2_xhj82"]
[ext_resource type="StyleBox" uid="uid://diyafdj4q00tg" path="res://Assets/样式/正常数字.tres" id="3_7cxsl"]
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_2bxdx"]
[node name="主界面" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
size_flags_horizontal = 4
size_flags_vertical = 4
script = ExtResource("1_y82yl")
[node name="面板" type="Panel" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="背景色" type="ColorRect" parent="面板"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
color = Color(0.129412, 0.129412, 0.129412, 1)
[node name="屏键容器" type="VBoxContainer" parent="面板/背景色"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="结果显示容器" type="VBoxContainer" parent="面板/背景色/屏键容器"]
layout_mode = 2
[node name="MarginContainer" type="MarginContainer" parent="面板/背景色/屏键容器/结果显示容器"]
layout_mode = 2
theme_override_constants/margin_top = 96
theme_override_constants/margin_right = 32
[node name="VBoxContainer" type="VBoxContainer" parent="面板/背景色/屏键容器/结果显示容器/MarginContainer"]
layout_mode = 2
[node name="上个工作区" type="Label" parent="面板/背景色/屏键容器/结果显示容器/MarginContainer/VBoxContainer"]
layout_mode = 2
theme_override_colors/font_color = Color(0.737255, 0.666667, 0.643137, 1)
theme_override_fonts/font = ExtResource("1_g8qlb")
theme_override_font_sizes/font_size = 48
text = "6*8"
horizontal_alignment = 2
[node name="工作区" type="Label" parent="面板/背景色/屏键容器/结果显示容器/MarginContainer/VBoxContainer"]
layout_mode = 2
theme_override_colors/font_color = Color(0.933333, 0.933333, 0.933333, 1)
theme_override_fonts/font = ExtResource("1_g8qlb")
theme_override_font_sizes/font_size = 128
text = "48
"
horizontal_alignment = 2
[node name="上下键盘分隔" type="VBoxContainer" parent="面板/背景色/屏键容器"]
layout_mode = 2
[node name="上键盘" type="GridContainer" parent="面板/背景色/屏键容器/上下键盘分隔"]
layout_mode = 2
size_flags_horizontal = 4
columns = 4
[node name="Clear" type="Button" parent="面板/背景色/屏键容器/上下键盘分隔/上键盘"]
custom_minimum_size = Vector2(175, 175)
layout_mode = 2
size_flags_horizontal = 6
size_flags_vertical = 6
theme_override_fonts/font = ExtResource("1_g8qlb")
theme_override_font_sizes/font_size = 64
theme_override_styles/normal = ExtResource("2_asaep")
theme_override_styles/focus = SubResource("StyleBoxEmpty_2bxdx")
text = "C"
[node name="Or" type="Button" parent="面板/背景色/屏键容器/上下键盘分隔/上键盘"]
custom_minimum_size = Vector2(175, 175)
layout_mode = 2
size_flags_horizontal = 6
size_flags_vertical = 6
theme_override_fonts/font = ExtResource("1_g8qlb")
theme_override_font_sizes/font_size = 64
theme_override_styles/normal = ExtResource("2_asaep")
theme_override_styles/focus = SubResource("StyleBoxEmpty_2bxdx")
text = "-\\+"
[node name="Back" type="Button" parent="面板/背景色/屏键容器/上下键盘分隔/上键盘"]
custom_minimum_size = Vector2(175, 175)
layout_mode = 2
size_flags_horizontal = 6
size_flags_vertical = 6
theme_override_fonts/font = ExtResource("1_g8qlb")
theme_override_font_sizes/font_size = 64
theme_override_styles/normal = ExtResource("2_asaep")
theme_override_styles/focus = SubResource("StyleBoxEmpty_2bxdx")
text = "←"
[node name="÷" type="Button" parent="面板/背景色/屏键容器/上下键盘分隔/上键盘"]
custom_minimum_size = Vector2(175, 175)
layout_mode = 2
size_flags_horizontal = 6
size_flags_vertical = 6
theme_override_fonts/font = ExtResource("1_g8qlb")
theme_override_font_sizes/font_size = 64
theme_override_styles/normal = ExtResource("2_asaep")
theme_override_styles/focus = SubResource("StyleBoxEmpty_2bxdx")
text = "/"
[node name="7" type="Button" parent="面板/背景色/屏键容器/上下键盘分隔/上键盘"]
custom_minimum_size = Vector2(175, 175)
layout_mode = 2
size_flags_horizontal = 6
size_flags_vertical = 6
theme_override_fonts/font = ExtResource("1_g8qlb")
theme_override_font_sizes/font_size = 64
theme_override_styles/normal = ExtResource("3_7cxsl")
theme_override_styles/focus = SubResource("StyleBoxEmpty_2bxdx")
text = "7"
[node name="8" type="Button" parent="面板/背景色/屏键容器/上下键盘分隔/上键盘"]
custom_minimum_size = Vector2(175, 175)
layout_mode = 2
size_flags_horizontal = 6
size_flags_vertical = 6
theme_override_fonts/font = ExtResource("1_g8qlb")
theme_override_font_sizes/font_size = 64
theme_override_styles/normal = ExtResource("3_7cxsl")
theme_override_styles/focus = SubResource("StyleBoxEmpty_2bxdx")
text = "8"
[node name="9" type="Button" parent="面板/背景色/屏键容器/上下键盘分隔/上键盘"]
custom_minimum_size = Vector2(175, 175)
layout_mode = 2
size_flags_horizontal = 6
size_flags_vertical = 6
theme_override_fonts/font = ExtResource("1_g8qlb")
theme_override_font_sizes/font_size = 64
theme_override_styles/normal = ExtResource("3_7cxsl")
theme_override_styles/focus = SubResource("StyleBoxEmpty_2bxdx")
text = "9"
[node name="*" type="Button" parent="面板/背景色/屏键容器/上下键盘分隔/上键盘"]
custom_minimum_size = Vector2(175, 175)
layout_mode = 2
size_flags_horizontal = 6
size_flags_vertical = 6
theme_override_fonts/font = ExtResource("1_g8qlb")
theme_override_font_sizes/font_size = 64
theme_override_styles/normal = ExtResource("2_asaep")
theme_override_styles/focus = SubResource("StyleBoxEmpty_2bxdx")
text = "*"
[node name="4" type="Button" parent="面板/背景色/屏键容器/上下键盘分隔/上键盘"]
custom_minimum_size = Vector2(175, 175)
layout_mode = 2
size_flags_horizontal = 6
size_flags_vertical = 6
theme_override_fonts/font = ExtResource("1_g8qlb")
theme_override_font_sizes/font_size = 64
theme_override_styles/normal = ExtResource("3_7cxsl")
theme_override_styles/focus = SubResource("StyleBoxEmpty_2bxdx")
text = "4"
[node name="5" type="Button" parent="面板/背景色/屏键容器/上下键盘分隔/上键盘"]
custom_minimum_size = Vector2(175, 175)
layout_mode = 2
size_flags_horizontal = 6
size_flags_vertical = 6
theme_override_fonts/font = ExtResource("1_g8qlb")
theme_override_font_sizes/font_size = 64
theme_override_styles/normal = ExtResource("3_7cxsl")
theme_override_styles/focus = SubResource("StyleBoxEmpty_2bxdx")
text = "5"
[node name="6" type="Button" parent="面板/背景色/屏键容器/上下键盘分隔/上键盘"]
custom_minimum_size = Vector2(175, 175)
layout_mode = 2
size_flags_horizontal = 6
size_flags_vertical = 6
theme_override_fonts/font = ExtResource("1_g8qlb")
theme_override_font_sizes/font_size = 64
theme_override_styles/normal = ExtResource("3_7cxsl")
theme_override_styles/focus = SubResource("StyleBoxEmpty_2bxdx")
text = "6"
[node name="-" type="Button" parent="面板/背景色/屏键容器/上下键盘分隔/上键盘"]
custom_minimum_size = Vector2(175, 175)
layout_mode = 2
size_flags_horizontal = 6
size_flags_vertical = 6
theme_override_fonts/font = ExtResource("1_g8qlb")
theme_override_font_sizes/font_size = 64
theme_override_styles/normal = ExtResource("2_asaep")
theme_override_styles/focus = SubResource("StyleBoxEmpty_2bxdx")
text = "-"
[node name="1" type="Button" parent="面板/背景色/屏键容器/上下键盘分隔/上键盘"]
custom_minimum_size = Vector2(175, 175)
layout_mode = 2
size_flags_horizontal = 6
size_flags_vertical = 6
theme_override_fonts/font = ExtResource("1_g8qlb")
theme_override_font_sizes/font_size = 64
theme_override_styles/normal = ExtResource("3_7cxsl")
theme_override_styles/focus = SubResource("StyleBoxEmpty_2bxdx")
text = "1"
[node name="2" type="Button" parent="面板/背景色/屏键容器/上下键盘分隔/上键盘"]
custom_minimum_size = Vector2(175, 175)
layout_mode = 2
size_flags_horizontal = 6
size_flags_vertical = 6
theme_override_fonts/font = ExtResource("1_g8qlb")
theme_override_font_sizes/font_size = 64
theme_override_styles/normal = ExtResource("3_7cxsl")
theme_override_styles/focus = SubResource("StyleBoxEmpty_2bxdx")
text = "2"
[node name="3" type="Button" parent="面板/背景色/屏键容器/上下键盘分隔/上键盘"]
custom_minimum_size = Vector2(175, 175)
layout_mode = 2
size_flags_horizontal = 6
size_flags_vertical = 6
theme_override_fonts/font = ExtResource("1_g8qlb")
theme_override_font_sizes/font_size = 64
theme_override_styles/normal = ExtResource("3_7cxsl")
theme_override_styles/focus = SubResource("StyleBoxEmpty_2bxdx")
text = "3"
[node name="+" type="Button" parent="面板/背景色/屏键容器/上下键盘分隔/上键盘"]
custom_minimum_size = Vector2(175, 175)
layout_mode = 2
size_flags_horizontal = 6
size_flags_vertical = 6
theme_override_fonts/font = ExtResource("1_g8qlb")
theme_override_font_sizes/font_size = 64
theme_override_styles/normal = ExtResource("2_asaep")
theme_override_styles/focus = SubResource("StyleBoxEmpty_2bxdx")
text = "+"
[node name="下键盘" type="HBoxContainer" parent="面板/背景色/屏键容器/上下键盘分隔"]
layout_mode = 2
size_flags_horizontal = 4
[node name="0" type="Button" parent="面板/背景色/屏键容器/上下键盘分隔/下键盘"]
custom_minimum_size = Vector2(355, 175)
layout_mode = 2
size_flags_horizontal = 6
size_flags_vertical = 5
theme_override_fonts/font = ExtResource("1_g8qlb")
theme_override_font_sizes/font_size = 64
theme_override_styles/normal = ExtResource("3_7cxsl")
theme_override_styles/focus = SubResource("StyleBoxEmpty_2bxdx")
text = "0"
[node name="_" type="Button" parent="面板/背景色/屏键容器/上下键盘分隔/下键盘"]
custom_minimum_size = Vector2(175, 175)
layout_mode = 2
size_flags_horizontal = 6
size_flags_vertical = 5
theme_override_fonts/font = ExtResource("1_g8qlb")
theme_override_font_sizes/font_size = 64
theme_override_styles/normal = ExtResource("3_7cxsl")
theme_override_styles/focus = SubResource("StyleBoxEmpty_2bxdx")
text = "."
[node name="=" type="Button" parent="面板/背景色/屏键容器/上下键盘分隔/下键盘"]
custom_minimum_size = Vector2(175, 175)
layout_mode = 2
size_flags_horizontal = 6
size_flags_vertical = 5
theme_override_fonts/font = ExtResource("1_g8qlb")
theme_override_font_sizes/font_size = 64
theme_override_styles/normal = ExtResource("2_xhj82")
theme_override_styles/focus = SubResource("StyleBoxEmpty_2bxdx")
text = "="

@ -0,0 +1,164 @@
[gd_scene load_steps=5 format=3 uid="uid://b13pa4q4ep2mc"]
[ext_resource type="FontFile" uid="uid://c3lj58l2mmrld" path="res://Font/SmileySans-Oblique.ttf" id="1_8vcuf"]
[ext_resource type="Script" path="res://Scripts/关于.gd" id="1_ib74w"]
[ext_resource type="StyleBox" uid="uid://diyafdj4q00tg" path="res://Assets/样式/正常数字.tres" id="2_qbs1x"]
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_cx36f"]
[node name="关于" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_ib74w")
[node name="面板" type="Panel" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="背景色" type="ColorRect" parent="面板"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
color = Color(0.129412, 0.129412, 0.129412, 1)
[node name="MarginContainer" type="MarginContainer" parent="面板/背景色"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme_override_constants/margin_left = 32
theme_override_constants/margin_top = 32
theme_override_constants/margin_right = 32
theme_override_constants/margin_bottom = 32
[node name="色" type="ColorRect" parent="面板/背景色/MarginContainer"]
layout_mode = 2
color = Color(0.196078, 0.196078, 0.196078, 1)
[node name="内容按钮分隔" type="VBoxContainer" parent="面板/背景色/MarginContainer/色"]
layout_mode = 2
offset_right = 656.0
offset_bottom = 1157.0
[node name="标题" type="Label" parent="面板/背景色/MarginContainer/色/内容按钮分隔"]
layout_mode = 2
theme_override_fonts/font = ExtResource("1_8vcuf")
theme_override_font_sizes/font_size = 96
text = "关于"
horizontal_alignment = 1
vertical_alignment = 1
[node name="正文和标题分隔2" type="VBoxContainer" parent="面板/背景色/MarginContainer/色/内容按钮分隔"]
layout_mode = 2
[node name="标题" type="Label" parent="面板/背景色/MarginContainer/色/内容按钮分隔/正文和标题分隔2"]
layout_mode = 2
theme_override_fonts/font = ExtResource("1_8vcuf")
theme_override_font_sizes/font_size = 64
text = "许可:"
vertical_alignment = 1
[node name="正文" type="Label" parent="面板/背景色/MarginContainer/色/内容按钮分隔/正文和标题分隔2"]
layout_mode = 2
theme_override_fonts/font = ExtResource("1_8vcuf")
theme_override_font_sizes/font_size = 48
text = "568_Calc 项目遵循 MIT 协议。"
vertical_alignment = 1
[node name="HBoxContainer" type="HBoxContainer" parent="面板/背景色/MarginContainer/色/内容按钮分隔/正文和标题分隔2"]
layout_mode = 2
[node name="访问" type="LinkButton" parent="面板/背景色/MarginContainer/色/内容按钮分隔/正文和标题分隔2/HBoxContainer"]
custom_minimum_size = Vector2(256, 64)
layout_mode = 2
size_flags_horizontal = 6
size_flags_vertical = 6
theme_override_fonts/font = ExtResource("1_8vcuf")
theme_override_font_sizes/font_size = 48
theme_override_styles/focus = SubResource("StyleBoxEmpty_cx36f")
text = "访问源代码仓库"
uri = "https://github.com/PJ-568/568_Calc"
[node name="MIT" type="LinkButton" parent="面板/背景色/MarginContainer/色/内容按钮分隔/正文和标题分隔2/HBoxContainer"]
custom_minimum_size = Vector2(256, 64)
layout_mode = 2
size_flags_horizontal = 6
size_flags_vertical = 6
theme_override_fonts/font = ExtResource("1_8vcuf")
theme_override_font_sizes/font_size = 48
theme_override_styles/focus = SubResource("StyleBoxEmpty_cx36f")
text = "关于 MIT 协议"
uri = "https://mit-license.org/"
[node name="正文和按钮分隔" type="VBoxContainer" parent="面板/背景色/MarginContainer/色/内容按钮分隔"]
layout_mode = 2
[node name="标题" type="Label" parent="面板/背景色/MarginContainer/色/内容按钮分隔/正文和按钮分隔"]
layout_mode = 2
theme_override_fonts/font = ExtResource("1_8vcuf")
theme_override_font_sizes/font_size = 64
text = "开放源代码库:"
vertical_alignment = 1
[node name="按钮" type="GridContainer" parent="面板/背景色/MarginContainer/色/内容按钮分隔/正文和按钮分隔"]
layout_mode = 2
columns = 2
[node name="568_Calc" type="LinkButton" parent="面板/背景色/MarginContainer/色/内容按钮分隔/正文和按钮分隔/按钮"]
custom_minimum_size = Vector2(256, 64)
layout_mode = 2
size_flags_horizontal = 6
size_flags_vertical = 6
theme_override_fonts/font = ExtResource("1_8vcuf")
theme_override_font_sizes/font_size = 48
theme_override_styles/focus = SubResource("StyleBoxEmpty_cx36f")
text = "568_Calc"
uri = "https://github.com/PJ-568/568_Calc"
[node name="Godot" type="LinkButton" parent="面板/背景色/MarginContainer/色/内容按钮分隔/正文和按钮分隔/按钮"]
custom_minimum_size = Vector2(256, 64)
layout_mode = 2
size_flags_horizontal = 6
size_flags_vertical = 6
theme_override_fonts/font = ExtResource("1_8vcuf")
theme_override_font_sizes/font_size = 48
theme_override_styles/focus = SubResource("StyleBoxEmpty_cx36f")
text = "Godot"
uri = "https://github.com/godotengine/godot"
[node name="smiley-sans" type="LinkButton" parent="面板/背景色/MarginContainer/色/内容按钮分隔/正文和按钮分隔/按钮"]
custom_minimum_size = Vector2(256, 64)
layout_mode = 2
size_flags_horizontal = 6
size_flags_vertical = 6
theme_override_fonts/font = ExtResource("1_8vcuf")
theme_override_font_sizes/font_size = 48
theme_override_styles/focus = SubResource("StyleBoxEmpty_cx36f")
text = "smiley-sans"
uri = "https://github.com/atelier-anchor/smiley-sans"
[node name="返回" type="Button" parent="面板/背景色/MarginContainer/色/内容按钮分隔"]
custom_minimum_size = Vector2(175, 64)
layout_mode = 2
size_flags_horizontal = 6
size_flags_vertical = 6
theme_override_fonts/font = ExtResource("1_8vcuf")
theme_override_font_sizes/font_size = 64
theme_override_styles/normal = ExtResource("2_qbs1x")
theme_override_styles/focus = SubResource("StyleBoxEmpty_cx36f")
text = "←"
[connection signal="pressed" from="面板/背景色/MarginContainer/色/内容按钮分隔/返回" to="." method="_on_返回_pressed"]
Loading…
Cancel
Save