1
0
Fork 0

Setup project, only UI and basic code

The project setup contains README, LICENSE, the full UI and materials.
The PICO-8 side is wired up, but all the Arduino code is absent as
I need to figure out how to carve it out for the students.
This commit is contained in:
Teo-CD 2023-11-12 20:44:58 +00:00
commit f34d81ad87
73 changed files with 9571 additions and 0 deletions

View file

@ -0,0 +1,28 @@
<ui:UXML xmlns:ui="UnityEngine.UIElements" xmlns:uie="UnityEditor.UIElements" editor-extension-mode="False">
<Style src="project://database/Assets/UI%20Toolkit/StyleSheet.uss?fileID=7433441132597879392&amp;guid=92f213dfb09cc00b4a07f0fe1699b1a1&amp;type=3#StyleSheet" />
<ui:VisualElement name="MainWindow" style="flex-grow: 1;">
<ui:VisualElement name="Logo" style="flex-grow: 1; background-image: url(&apos;project://database/Assets/Textures/TitleLogo.png?fileID=2800000&amp;guid=7e5fb41e9b33b172a8a48901da75ee73&amp;type=3#TitleLogo&apos;); -unity-background-scale-mode: scale-to-fit; height: 28%; width: 100%;" />
<ui:VisualElement name="ColumnLayout" style="align-items: stretch; justify-content: flex-start; align-self: auto; flex-direction: row; height: 80%; margin-top: 40px;">
<ui:VisualElement name="ArduinoColumn" class="cartcom-status">
<ui:Label text="Arduino" name="Title" class="cartcom-title" />
<ui:DropdownField label="Port série" index="-1" name="Arduino-Serial" style="padding-right: 20px;" />
<ui:EnumField label="État" type="Arduino_Com+ArduinoState, Assembly-CSharp" focusable="false" picking-mode="Ignore" name="Arduino-State" style="padding-right: 20px;" />
<ui:Button text="Connecter" parse-escape-sequences="true" display-tooltip-when-elided="true" name="Arduino-Button" style="align-self: center; padding-right: 15%; padding-left: 15%; max-width: 60%;" />
<ui:ProgressBar value="0" title="Transfert..." name="Arduino-Progress" high-value="512" style="display: flex; visibility: hidden;" />
</ui:VisualElement>
<ui:VisualElement name="CartColumn" style="flex-grow: 1; justify-content: center; align-items: stretch; width: 20%;">
<ui:Label text="Cartouche" name="Title" class="cartcom-title" />
<ui:VisualElement name="Cart" style="flex-grow: 1; background-image: url(&apos;project://database/Assets/Textures/empty_cart.png?fileID=2800000&amp;guid=d3dd33d1eafc702378bf07141763adea&amp;type=3#empty_cart&apos;); -unity-background-scale-mode: scale-to-fit; padding-top: 0; padding-right: 0; padding-bottom: 0; padding-left: 0; margin-top: 5%; margin-right: 10%; margin-bottom: 5%; margin-left: 10%; height: 60%; border-top-width: 0; width: auto;" />
<ui:VisualElement name="VisualElement" style="flex-grow: 1; flex-direction: row; align-items: center; justify-content: center; align-self: stretch; margin-bottom: 18px;">
<ui:Button text="Charger" parse-escape-sequences="true" display-tooltip-when-elided="true" name="Cart-Load" tooltip="Charge une cartouche connectée à l&apos;Arduino vers Unity" style="height: 40px; width: 40%; visibility: visible; display: flex;" />
<ui:Button text="Sauvegarder" parse-escape-sequences="true" display-tooltip-when-elided="true" name="Cart-Write" tooltip="Sauvegarde une cartouche depuis Unity vers l&apos;Arduino" style="height: 40px; width: 40%;" />
</ui:VisualElement>
</ui:VisualElement>
<ui:VisualElement name="PICOColumn" class="cartcom-status">
<ui:Label text="PICO-8" name="Title" class="cartcom-title" />
<ui:EnumField label="État" type="PICO8_Handler+PicoState, Assembly-CSharp" name="PICO-State" focusable="false" picking-mode="Ignore" style="padding-right: 20px;" />
<ui:Button text="Lancer" parse-escape-sequences="true" display-tooltip-when-elided="true" name="PICO-Button" style="align-self: center; padding-right: 15%; padding-left: 15%; max-width: 60%;" />
</ui:VisualElement>
</ui:VisualElement>
</ui:VisualElement>
</ui:UXML>

View file

@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: c231498882b16489faa4df8f11042a39
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 13804, guid: 0000000000000000e000000000000000, type: 0}

View file

@ -0,0 +1,38 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 19101, guid: 0000000000000000e000000000000000, type: 0}
m_Name: PanelSettings
m_EditorClassIdentifier:
themeUss: {fileID: -4733365628477956816, guid: 5a12c72e4fdee786995fcadcac2d4982, type: 3}
m_TargetTexture: {fileID: 0}
m_ScaleMode: 1
m_ReferenceSpritePixelsPerUnit: 100
m_Scale: 1
m_ReferenceDpi: 96
m_FallbackDpi: 96
m_ReferenceResolution: {x: 1200, y: 800}
m_ScreenMatchMode: 0
m_Match: 0
m_SortingOrder: 0
m_TargetDisplay: 0
m_ClearDepthStencil: 1
m_ClearColor: 0
m_ColorClearValue: {r: 0, g: 0, b: 0, a: 0}
m_DynamicAtlasSettings:
m_MinAtlasSize: 64
m_MaxAtlasSize: 4096
m_MaxSubTextureSize: 64
m_ActiveFilters: -1
m_AtlasBlitShader: {fileID: 9101, guid: 0000000000000000f000000000000000, type: 0}
m_RuntimeShader: {fileID: 9100, guid: 0000000000000000f000000000000000, type: 0}
m_RuntimeWorldShader: {fileID: 9102, guid: 0000000000000000f000000000000000, type: 0}
textSettings: {fileID: 0}

View file

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: fc3784730da6f8a39aac0aa1c4f9cb0f
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:

View file

@ -0,0 +1,33 @@
.cartcom-title {
font-size: 48px;
-unity-font-style: bold;
-unity-text-align: middle-center;
}
.cartcom-status {
width: 35%;
-unity-text-align: middle-center;
}
.unity-base-field__label {
font-size: 20px;
-unity-text-align: upper-right;
padding-right: 10px;
-unity-font-style: bold;
}
.unity-enum-field__arrow {
display: none;
visibility: hidden;
}
.unity-enum-field__text {
margin-top: 0;
margin-right: 0;
margin-bottom: 0;
margin-left: 0;
}
.unity-base-popup-field__text {
margin-right: 0;
}

View file

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 92f213dfb09cc00b4a07f0fe1699b1a1
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 12385, guid: 0000000000000000e000000000000000, type: 0}
disableValidation: 0

View file

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 3ab2f90c6486ac9d082656e854bc78bd
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View file

@ -0,0 +1 @@
@import url("unity-theme://default");

View file

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 5a12c72e4fdee786995fcadcac2d4982
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 12388, guid: 0000000000000000e000000000000000, type: 0}
disableValidation: 0