commit
6f60d43471
@ -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/*
|
@ -0,0 +1,4 @@
|
||||
# Godot 4+ specific ignores
|
||||
.godot/
|
||||
Release/
|
||||
android/
|
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
|
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,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…
Reference in new issue