From 339d26f5e0728e3228757cde2e23c5a619f9217f Mon Sep 17 00:00:00 2001 From: domi41 Date: Sun, 9 Aug 2020 02:48:26 +0200 Subject: [PATCH] feat: add the project configuration, and prepare settings We're going to try out Resource for settings, instead of ini. --- core/App.gd | 2 + core/ConfigResource.gd | 9 +++ project.godot | 128 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 139 insertions(+) create mode 100644 core/App.gd create mode 100644 core/ConfigResource.gd create mode 100644 project.godot diff --git a/core/App.gd b/core/App.gd new file mode 100644 index 0000000..487b284 --- /dev/null +++ b/core/App.gd @@ -0,0 +1,2 @@ +extends Node + diff --git a/core/ConfigResource.gd b/core/ConfigResource.gd new file mode 100644 index 0000000..d75d455 --- /dev/null +++ b/core/ConfigResource.gd @@ -0,0 +1,9 @@ +extends Resource + + +export(Color) var background_color +export(Dictionary) var background_color_metadata := { + 'name': "Background Color", + 'description': "", +} + diff --git a/project.godot b/project.godot new file mode 100644 index 0000000..38db94e --- /dev/null +++ b/project.godot @@ -0,0 +1,128 @@ +; 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=4 + +_global_script_classes=[ { +"base": "Resource", +"class": "MajorityJudgmentAbstractTallier", +"language": "GDScript", +"path": "res://addons/majority_judgment/MajorityJudgmentAbstractTallier.gd" +}, { +"base": "Resource", +"class": "MajorityJudgmentCandidate", +"language": "GDScript", +"path": "res://addons/majority_judgment/MajorityJudgmentCandidate.gd" +}, { +"base": "Resource", +"class": "MajorityJudgmentCandidateMeritProfile", +"language": "GDScript", +"path": "res://addons/majority_judgment/MajorityJudgmentCandidateMeritProfile.gd" +}, { +"base": "Resource", +"class": "MajorityJudgmentCandidateTally", +"language": "GDScript", +"path": "res://addons/majority_judgment/MajorityJudgmentCandidateTally.gd" +}, { +"base": "MajorityJudgmentAbstractTallier", +"class": "MajorityJudgmentEasyTallier", +"language": "GDScript", +"path": "res://addons/majority_judgment/talliers/MajorityJudgmentEasyTallier.gd" +}, { +"base": "Resource", +"class": "MajorityJudgmentGrade", +"language": "GDScript", +"path": "res://addons/majority_judgment/MajorityJudgmentGrade.gd" +}, { +"base": "Resource", +"class": "MajorityJudgmentGrading", +"language": "GDScript", +"path": "res://addons/majority_judgment/MajorityJudgmentGrading.gd" +}, { +"base": "Resource", +"class": "MajorityJudgmentJudgment", +"language": "GDScript", +"path": "res://addons/majority_judgment/MajorityJudgmentJudgment.gd" +}, { +"base": "Resource", +"class": "MajorityJudgmentParticipant", +"language": "GDScript", +"path": "res://addons/majority_judgment/MajorityJudgmentParticipant.gd" +}, { +"base": "Resource", +"class": "MajorityJudgmentPoll", +"language": "GDScript", +"path": "res://addons/majority_judgment/MajorityJudgmentPoll.gd" +}, { +"base": "Resource", +"class": "MajorityJudgmentPollTally", +"language": "GDScript", +"path": "res://addons/majority_judgment/MajorityJudgmentPollTally.gd" +}, { +"base": "Reference", +"class": "WAT", +"language": "GDScript", +"path": "res://addons/WAT/namespace.gd" +}, { +"base": "", +"class": "WATTest", +"language": "GDScript", +"path": "res://addons/WAT/core/test/test.gd" +} ] +_global_script_class_icons={ +"MajorityJudgmentAbstractTallier": "", +"MajorityJudgmentCandidate": "", +"MajorityJudgmentCandidateMeritProfile": "", +"MajorityJudgmentCandidateTally": "", +"MajorityJudgmentEasyTallier": "", +"MajorityJudgmentGrade": "", +"MajorityJudgmentGrading": "", +"MajorityJudgmentJudgment": "", +"MajorityJudgmentParticipant": "", +"MajorityJudgmentPoll": "", +"MajorityJudgmentPollTally": "", +"WAT": "", +"WATTest": "" +} + +[WAT] + +Test_Directory="res://tests" +Results_Directory="res://tests/results/WAT" +Minimize_Window_When_Running_Tests=false +TestStrategy={ +"repeat": 1, +"strategy": "RunAll" +} +Tags=PoolStringArray( ) +Display=8 + +[application] + +config/name="Majority Judgment Polling for Streamers" +run/main_scene="res://gui/MainMenu.tscn" +config/icon="res://icon.png" + +[editor_plugins] + +enabled=PoolStringArray( "WAT", "majority_judgment" ) + +[input] + +run_tests={ +"deadzone": 0.5, +"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":true,"shift":false,"control":true,"meta":false,"command":true,"pressed":false,"scancode":78,"unicode":0,"echo":false,"script":null) + ] +} + +[rendering] + +quality/driver/driver_name="GLES2" +vram_compression/import_etc=true +vram_compression/import_etc2=false +environment/default_environment="res://default_env.tres"