Finished converting to new UI.

This commit is contained in:
Max 2025-02-27 15:52:40 +01:00
parent f70f89324b
commit 105055b307
37 changed files with 24044 additions and 1227 deletions

View file

@ -0,0 +1,54 @@
.die.selected-of-pair {
border-left-color: rgb(59, 115, 40);
border-right-color: rgb(59, 115, 40);
border-top-color: rgb(59, 115, 40);
border-bottom-color: rgb(59, 115, 40);
border-top-width: 5px;
border-right-width: 5px;
border-bottom-width: 5px;
border-left-width: 5px;
}
.die.white {
background-color: rgb(255, 255, 255);
}
.die {
width: 50px;
height: 50px;
flex-shrink: 0;
border-top-left-radius: 7px;
border-top-right-radius: 7px;
border-bottom-right-radius: 7px;
border-bottom-left-radius: 7px;
border-left-color: rgb(0, 0, 0);
border-right-color: rgb(0, 0, 0);
border-top-color: rgb(0, 0, 0);
border-bottom-color: rgb(0, 0, 0);
border-top-width: 2px;
border-right-width: 2px;
border-bottom-width: 2px;
border-left-width: 2px;
font-size: 38px;
-unity-font-style: bold;
}
.die.black {
background-color: rgb(0, 0, 0);
color: rgb(255, 255, 255);
border-left-color: rgb(255, 255, 255);
border-right-color: rgb(255, 255, 255);
border-top-color: rgb(255, 255, 255);
border-bottom-color: rgb(255, 255, 255);
}
.die.selected {
border-left-color: rgb(255, 200, 71);
border-right-color: rgb(255, 200, 71);
border-top-color: rgb(255, 200, 71);
border-bottom-color: rgb(255, 200, 71);
border-top-width: 5px;
border-right-width: 5px;
border-bottom-width: 5px;
border-left-width: 5px;
}

View file

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

View file

@ -1,141 +1,5 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &3823317004437157633
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 2396934785588550637}
- component: {fileID: 2323615125780451164}
- component: {fileID: 7735920291706219313}
m_Layer: 5
m_Name: Text (TMP)
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &2396934785588550637
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3823317004437157633}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 1556923700715053098}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &2323615125780451164
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3823317004437157633}
m_CullTransparentMesh: 1
--- !u!114 &7735920291706219313
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3823317004437157633}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_text: 0
m_isRightToLeft: 0
m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
m_fontSharedMaterials: []
m_fontMaterial: {fileID: 0}
m_fontMaterials: []
m_fontColor32:
serializedVersion: 2
rgba: 4294967295
m_fontColor: {r: 1, g: 1, b: 1, a: 1}
m_enableVertexGradient: 0
m_colorMode: 3
m_fontColorGradient:
topLeft: {r: 1, g: 1, b: 1, a: 1}
topRight: {r: 1, g: 1, b: 1, a: 1}
bottomLeft: {r: 1, g: 1, b: 1, a: 1}
bottomRight: {r: 1, g: 1, b: 1, a: 1}
m_fontColorGradientPreset: {fileID: 0}
m_spriteAsset: {fileID: 0}
m_tintAllSprites: 0
m_StyleSheet: {fileID: 0}
m_TextStyleHashCode: -1183493901
m_overrideHtmlColors: 0
m_faceColor:
serializedVersion: 2
rgba: 4294967295
m_fontSize: 24
m_fontSizeBase: 24
m_fontWeight: 400
m_enableAutoSizing: 0
m_fontSizeMin: 18
m_fontSizeMax: 72
m_fontStyle: 0
m_HorizontalAlignment: 2
m_VerticalAlignment: 512
m_textAlignment: 65535
m_characterSpacing: 0
m_wordSpacing: 0
m_lineSpacing: 0
m_lineSpacingMax: 0
m_paragraphSpacing: 0
m_charWidthMaxAdj: 0
m_TextWrappingMode: 1
m_wordWrappingRatios: 0.4
m_overflowMode: 0
m_linkedTextComponent: {fileID: 0}
parentLinkedComponent: {fileID: 0}
m_enableKerning: 0
m_ActiveFontFeatures: 6e72656b
m_enableExtraPadding: 0
checkPaddingRequired: 0
m_isRichText: 1
m_EmojiFallbackSupport: 1
m_parseCtrlCharacters: 1
m_isOrthographic: 1
m_isCullingEnabled: 0
m_horizontalMapping: 0
m_verticalMapping: 0
m_uvLineOffset: 0
m_geometrySortingOrder: 0
m_IsTextObjectScaleStatic: 0
m_VertexBufferAutoSizeReduction: 0
m_useMaxVisibleDescender: 1
m_pageToDisplay: 1
m_margin: {x: 0, y: 0, z: 0, w: 0}
m_isUsingLegacyAnimationComponent: 0
m_isVolumetricText: 0
m_hasFontAssetChanged: 0
m_baseMaterial: {fileID: 0}
m_maskOffset: {x: 0, y: 0, z: 0, w: 0}
--- !u!1 &7874367151511621086
GameObject:
m_ObjectHideFlags: 0
@ -145,11 +9,7 @@ GameObject:
serializedVersion: 6
m_Component:
- component: {fileID: 1556923700715053098}
- component: {fileID: 894152068368573183}
- component: {fileID: 6156510816236760012}
- component: {fileID: 5247104008048868212}
- component: {fileID: 6084228361150234175}
- component: {fileID: -7124398980878284295}
m_Layer: 5
m_Name: Black Die
m_TagString: BlackDie
@ -168,8 +28,7 @@ RectTransform:
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 2396934785588550637}
m_Children: []
m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
@ -177,88 +36,6 @@ RectTransform:
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 30, y: 30}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &894152068368573183
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7874367151511621086}
m_CullTransparentMesh: 1
--- !u!114 &6156510816236760012
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7874367151511621086}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 0, g: 0, b: 0, a: 1}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0}
m_Type: 1
m_PreserveAspect: 0
m_FillCenter: 1
m_FillMethod: 4
m_FillAmount: 1
m_FillClockwise: 1
m_FillOrigin: 0
m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1
--- !u!114 &5247104008048868212
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7874367151511621086}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Navigation:
m_Mode: 3
m_WrapAround: 0
m_SelectOnUp: {fileID: 0}
m_SelectOnDown: {fileID: 0}
m_SelectOnLeft: {fileID: 0}
m_SelectOnRight: {fileID: 0}
m_Transition: 1
m_Colors:
m_NormalColor: {r: 1, g: 1, b: 1, a: 1}
m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1}
m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608}
m_ColorMultiplier: 1
m_FadeDuration: 0.1
m_SpriteState:
m_HighlightedSprite: {fileID: 0}
m_PressedSprite: {fileID: 0}
m_SelectedSprite: {fileID: 0}
m_DisabledSprite: {fileID: 0}
m_AnimationTriggers:
m_NormalTrigger: Normal
m_HighlightedTrigger: Highlighted
m_PressedTrigger: Pressed
m_SelectedTrigger: Selected
m_DisabledTrigger: Disabled
m_Interactable: 1
m_TargetGraphic: {fileID: 6156510816236760012}
m_OnClick:
m_PersistentCalls:
m_Calls: []
--- !u!114 &6084228361150234175
MonoBehaviour:
m_ObjectHideFlags: 0
@ -272,19 +49,4 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
color: 0
dieButton: {fileID: 5247104008048868212}
--- !u!114 &-7124398980878284295
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7874367151511621086}
m_Enabled: 0
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: e19747de3f5aca642ab2be37e372fb86, type: 3}
m_Name:
m_EditorClassIdentifier:
m_EffectColor: {r: 0.04705883, g: 0.79215693, b: 0, a: 0.5}
m_EffectDistance: {x: 2, y: 2}
m_UseGraphicAlpha: 1
dieButton: {fileID: 0}

View file

@ -1,141 +1,5 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &3823317004437157633
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 2396934785588550637}
- component: {fileID: 2323615125780451164}
- component: {fileID: 7735920291706219313}
m_Layer: 5
m_Name: Text (TMP)
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &2396934785588550637
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3823317004437157633}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 1556923700715053098}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &2323615125780451164
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3823317004437157633}
m_CullTransparentMesh: 1
--- !u!114 &7735920291706219313
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3823317004437157633}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_text: 0
m_isRightToLeft: 0
m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
m_fontSharedMaterials: []
m_fontMaterial: {fileID: 0}
m_fontMaterials: []
m_fontColor32:
serializedVersion: 2
rgba: 4281479730
m_fontColor: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1}
m_enableVertexGradient: 0
m_colorMode: 3
m_fontColorGradient:
topLeft: {r: 1, g: 1, b: 1, a: 1}
topRight: {r: 1, g: 1, b: 1, a: 1}
bottomLeft: {r: 1, g: 1, b: 1, a: 1}
bottomRight: {r: 1, g: 1, b: 1, a: 1}
m_fontColorGradientPreset: {fileID: 0}
m_spriteAsset: {fileID: 0}
m_tintAllSprites: 0
m_StyleSheet: {fileID: 0}
m_TextStyleHashCode: -1183493901
m_overrideHtmlColors: 0
m_faceColor:
serializedVersion: 2
rgba: 4294967295
m_fontSize: 24
m_fontSizeBase: 24
m_fontWeight: 400
m_enableAutoSizing: 0
m_fontSizeMin: 18
m_fontSizeMax: 72
m_fontStyle: 0
m_HorizontalAlignment: 2
m_VerticalAlignment: 512
m_textAlignment: 65535
m_characterSpacing: 0
m_wordSpacing: 0
m_lineSpacing: 0
m_lineSpacingMax: 0
m_paragraphSpacing: 0
m_charWidthMaxAdj: 0
m_TextWrappingMode: 1
m_wordWrappingRatios: 0.4
m_overflowMode: 0
m_linkedTextComponent: {fileID: 0}
parentLinkedComponent: {fileID: 0}
m_enableKerning: 0
m_ActiveFontFeatures: 6e72656b
m_enableExtraPadding: 0
checkPaddingRequired: 0
m_isRichText: 1
m_EmojiFallbackSupport: 1
m_parseCtrlCharacters: 1
m_isOrthographic: 1
m_isCullingEnabled: 0
m_horizontalMapping: 0
m_verticalMapping: 0
m_uvLineOffset: 0
m_geometrySortingOrder: 0
m_IsTextObjectScaleStatic: 0
m_VertexBufferAutoSizeReduction: 0
m_useMaxVisibleDescender: 1
m_pageToDisplay: 1
m_margin: {x: 0, y: 0, z: 0, w: 0}
m_isUsingLegacyAnimationComponent: 0
m_isVolumetricText: 0
m_hasFontAssetChanged: 0
m_baseMaterial: {fileID: 0}
m_maskOffset: {x: 0, y: 0, z: 0, w: 0}
--- !u!1 &7874367151511621086
GameObject:
m_ObjectHideFlags: 0
@ -145,11 +9,7 @@ GameObject:
serializedVersion: 6
m_Component:
- component: {fileID: 1556923700715053098}
- component: {fileID: 894152068368573183}
- component: {fileID: 6156510816236760012}
- component: {fileID: 5247104008048868212}
- component: {fileID: 6084228361150234175}
- component: {fileID: 6840580988586272823}
m_Layer: 5
m_Name: White Die
m_TagString: WhiteDie
@ -168,8 +28,7 @@ RectTransform:
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 2396934785588550637}
m_Children: []
m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
@ -177,88 +36,6 @@ RectTransform:
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 30, y: 30}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &894152068368573183
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7874367151511621086}
m_CullTransparentMesh: 1
--- !u!114 &6156510816236760012
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7874367151511621086}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0}
m_Type: 1
m_PreserveAspect: 0
m_FillCenter: 1
m_FillMethod: 4
m_FillAmount: 1
m_FillClockwise: 1
m_FillOrigin: 0
m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1
--- !u!114 &5247104008048868212
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7874367151511621086}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Navigation:
m_Mode: 3
m_WrapAround: 0
m_SelectOnUp: {fileID: 0}
m_SelectOnDown: {fileID: 0}
m_SelectOnLeft: {fileID: 0}
m_SelectOnRight: {fileID: 0}
m_Transition: 1
m_Colors:
m_NormalColor: {r: 1, g: 1, b: 1, a: 1}
m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1}
m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608}
m_ColorMultiplier: 1
m_FadeDuration: 0.1
m_SpriteState:
m_HighlightedSprite: {fileID: 0}
m_PressedSprite: {fileID: 0}
m_SelectedSprite: {fileID: 0}
m_DisabledSprite: {fileID: 0}
m_AnimationTriggers:
m_NormalTrigger: Normal
m_HighlightedTrigger: Highlighted
m_PressedTrigger: Pressed
m_SelectedTrigger: Selected
m_DisabledTrigger: Disabled
m_Interactable: 1
m_TargetGraphic: {fileID: 6156510816236760012}
m_OnClick:
m_PersistentCalls:
m_Calls: []
--- !u!114 &6084228361150234175
MonoBehaviour:
m_ObjectHideFlags: 0
@ -272,19 +49,4 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
color: 1
dieButton: {fileID: 5247104008048868212}
--- !u!114 &6840580988586272823
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7874367151511621086}
m_Enabled: 0
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: e19747de3f5aca642ab2be37e372fb86, type: 3}
m_Name:
m_EditorClassIdentifier:
m_EffectColor: {r: 0.045367185, g: 0.7924528, b: 0, a: 0.5}
m_EffectDistance: {x: 2, y: 2}
m_UseGraphicAlpha: 1
dieButton: {fileID: 0}

View file

@ -167,9 +167,6 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 79af16baa8fbe4744817b63d2b6f2007, type: 3}
m_Name:
m_EditorClassIdentifier:
abilityUseOne: {fileID: 534537518}
abilityUseTwo: {fileID: 1948928676}
abilityUseThree: {fileID: 704888143}
--- !u!1 &37414490
GameObject:
m_ObjectHideFlags: 0
@ -218,9 +215,6 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 04241db9fdb62a147acac6895a47db06, type: 3}
m_Name:
m_EditorClassIdentifier:
abilityUseOne: {fileID: 1333995207}
abilityUseTwo: {fileID: 1775902216}
abilityUseThree: {fileID: 1577335136}
--- !u!1 &60872503
GameObject:
m_ObjectHideFlags: 0
@ -387,7 +381,16 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
canvas: {fileID: 1353551473}
chestRewardSelectionUI: {fileID: 6007503688929917977, guid: 2d3967bed0790c44c88fabab60350749, type: 3}
hudController: {fileID: 337186334}
chestPopUpControllerGO: {fileID: 1772543306}
chestPopUpController: {fileID: 1772543309}
diceGO: {fileID: 379942240}
diceRoller: {fileID: 2128537222}
passManager: {fileID: 2128537221}
startingBlackDieAbility: {fileID: 27283141}
blackDieAbility: {fileID: 37414492}
chestRewardSelection: {fileID: 1772543310}
torchAbility: {fileID: 1015377333}
--- !u!4 &323570089
Transform:
m_ObjectHideFlags: 0
@ -403,6 +406,70 @@ Transform:
m_Children: []
m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &337186331
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 337186333}
- component: {fileID: 337186332}
- component: {fileID: 337186334}
m_Layer: 5
m_Name: HUD
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!114 &337186332
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 337186331}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 19102, guid: 0000000000000000e000000000000000, type: 0}
m_Name:
m_EditorClassIdentifier:
m_PanelSettings: {fileID: 11400000, guid: 79ea83e6353cc60439227b4505222385, type: 2}
m_ParentUI: {fileID: 0}
sourceAsset: {fileID: 9197481963319205126, guid: 17df250617a702f4e897f28d1f9182df, type: 3}
m_SortingOrder: 0
m_WorldSpaceSizeMode: 1
m_WorldSpaceWidth: 1920
m_WorldSpaceHeight: 1080
--- !u!4 &337186333
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 337186331}
serializedVersion: 2
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &337186334
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 337186331}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 6b8775a362b77bc4bb1bcae768aa15a3, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1 &365296036
GameObject:
m_ObjectHideFlags: 0
@ -562,8 +629,8 @@ RectTransform:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 379942240}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: -8.719947}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children:
@ -572,11 +639,11 @@ RectTransform:
- {fileID: 1973998406}
- {fileID: 1287376635}
- {fileID: 864735005}
m_Father: {fileID: 1353551474}
m_Father: {fileID: 2128537223}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 346.18, y: -247}
m_AnchoredPosition: {x: 2.8886719, y: -23.355164}
m_SizeDelta: {x: 150.14001, y: 30}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &386902758
@ -899,11 +966,6 @@ RectTransform:
m_CorrespondingSourceObject: {fileID: 8989188457857827130, guid: 66fcddbe7a3c341c5b9ca4f8801259a6, type: 3}
m_PrefabInstance: {fileID: 534537516}
m_PrefabAsset: {fileID: 0}
--- !u!1 &534537518 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: 6167039396952026974, guid: 66fcddbe7a3c341c5b9ca4f8801259a6, type: 3}
m_PrefabInstance: {fileID: 534537516}
m_PrefabAsset: {fileID: 0}
--- !u!1001 &600536635
PrefabInstance:
m_ObjectHideFlags: 0
@ -1113,11 +1175,6 @@ RectTransform:
m_CorrespondingSourceObject: {fileID: 8989188457857827130, guid: 66fcddbe7a3c341c5b9ca4f8801259a6, type: 3}
m_PrefabInstance: {fileID: 704888141}
m_PrefabAsset: {fileID: 0}
--- !u!1 &704888143 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: 6167039396952026974, guid: 66fcddbe7a3c341c5b9ca4f8801259a6, type: 3}
m_PrefabInstance: {fileID: 704888141}
m_PrefabAsset: {fileID: 0}
--- !u!1 &716093248
GameObject:
m_ObjectHideFlags: 0
@ -1251,11 +1308,6 @@ RectTransform:
m_CorrespondingSourceObject: {fileID: 8989188457857827130, guid: 5e46b071ca9c11745a7893c22faf6976, type: 3}
m_PrefabInstance: {fileID: 733480119}
m_PrefabAsset: {fileID: 0}
--- !u!1 &733480121 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: 6167039396952026974, guid: 5e46b071ca9c11745a7893c22faf6976, type: 3}
m_PrefabInstance: {fileID: 733480119}
m_PrefabAsset: {fileID: 0}
--- !u!1 &748138895
GameObject:
m_ObjectHideFlags: 0
@ -1281,12 +1333,12 @@ Transform:
m_GameObject: {fileID: 748138895}
serializedVersion: 2
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 217.57709, y: 11.303192, z: 2.1820347}
m_LocalScale: {x: 1, y: 1, z: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 0, y: 0, z: 0}
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 801256675}
m_Father: {fileID: 1353551474}
m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &801256674
GameObject:
@ -1677,11 +1729,6 @@ RectTransform:
m_CorrespondingSourceObject: {fileID: 8989188457857827130, guid: 5e46b071ca9c11745a7893c22faf6976, type: 3}
m_PrefabInstance: {fileID: 955203279}
m_PrefabAsset: {fileID: 0}
--- !u!1 &955203281 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: 6167039396952026974, guid: 5e46b071ca9c11745a7893c22faf6976, type: 3}
m_PrefabInstance: {fileID: 955203279}
m_PrefabAsset: {fileID: 0}
--- !u!1 &1015377331
GameObject:
m_ObjectHideFlags: 0
@ -1733,144 +1780,6 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: a942e4ca1244b054b8ca96ded24fb63a, type: 3}
m_Name:
m_EditorClassIdentifier:
abilityUseOne: {fileID: 955203281}
abilityUseTwo: {fileID: 733480121}
--- !u!1 &1131960792
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1131960793}
- component: {fileID: 1131960795}
- component: {fileID: 1131960794}
m_Layer: 5
m_Name: Text (TMP)
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &1131960793
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1131960792}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 2099449970}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1131960794
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1131960792}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_text: Pass
m_isRightToLeft: 0
m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
m_fontSharedMaterials: []
m_fontMaterial: {fileID: 0}
m_fontMaterials: []
m_fontColor32:
serializedVersion: 2
rgba: 4278190080
m_fontColor: {r: 0, g: 0, b: 0, a: 1}
m_enableVertexGradient: 0
m_colorMode: 3
m_fontColorGradient:
topLeft: {r: 1, g: 1, b: 1, a: 1}
topRight: {r: 1, g: 1, b: 1, a: 1}
bottomLeft: {r: 1, g: 1, b: 1, a: 1}
bottomRight: {r: 1, g: 1, b: 1, a: 1}
m_fontColorGradientPreset: {fileID: 0}
m_spriteAsset: {fileID: 0}
m_tintAllSprites: 0
m_StyleSheet: {fileID: 0}
m_TextStyleHashCode: -1183493901
m_overrideHtmlColors: 0
m_faceColor:
serializedVersion: 2
rgba: 4294967295
m_fontSize: 24
m_fontSizeBase: 24
m_fontWeight: 400
m_enableAutoSizing: 0
m_fontSizeMin: 18
m_fontSizeMax: 72
m_fontStyle: 0
m_HorizontalAlignment: 2
m_VerticalAlignment: 512
m_textAlignment: 65535
m_characterSpacing: 0
m_wordSpacing: 0
m_lineSpacing: 0
m_lineSpacingMax: 0
m_paragraphSpacing: 0
m_charWidthMaxAdj: 0
m_TextWrappingMode: 1
m_wordWrappingRatios: 0.4
m_overflowMode: 0
m_linkedTextComponent: {fileID: 0}
parentLinkedComponent: {fileID: 0}
m_enableKerning: 0
m_ActiveFontFeatures: 6e72656b
m_enableExtraPadding: 0
checkPaddingRequired: 0
m_isRichText: 1
m_EmojiFallbackSupport: 1
m_parseCtrlCharacters: 1
m_isOrthographic: 1
m_isCullingEnabled: 0
m_horizontalMapping: 0
m_verticalMapping: 0
m_uvLineOffset: 0
m_geometrySortingOrder: 0
m_IsTextObjectScaleStatic: 0
m_VertexBufferAutoSizeReduction: 0
m_useMaxVisibleDescender: 1
m_pageToDisplay: 1
m_margin: {x: 0, y: 0, z: 0, w: 0}
m_isUsingLegacyAnimationComponent: 0
m_isVolumetricText: 0
m_hasFontAssetChanged: 0
m_baseMaterial: {fileID: 0}
m_maskOffset: {x: 0, y: 0, z: 0, w: 0}
--- !u!222 &1131960795
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1131960792}
m_CullTransparentMesh: 1
--- !u!1001 &1180479345
PrefabInstance:
m_ObjectHideFlags: 0
@ -2197,11 +2106,6 @@ RectTransform:
m_CorrespondingSourceObject: {fileID: 8989188457857827130, guid: 66fcddbe7a3c341c5b9ca4f8801259a6, type: 3}
m_PrefabInstance: {fileID: 1333995205}
m_PrefabAsset: {fileID: 0}
--- !u!1 &1333995207 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: 6167039396952026974, guid: 66fcddbe7a3c341c5b9ca4f8801259a6, type: 3}
m_PrefabInstance: {fileID: 1333995205}
m_PrefabAsset: {fileID: 0}
--- !u!1 &1353551473
GameObject:
m_ObjectHideFlags: 0
@ -2220,7 +2124,7 @@ GameObject:
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
m_IsActive: 0
--- !u!224 &1353551474
RectTransform:
m_ObjectHideFlags: 0
@ -2235,10 +2139,6 @@ RectTransform:
m_Children:
- {fileID: 60872504}
- {fileID: 1728296563}
- {fileID: 1369094916}
- {fileID: 2099449970}
- {fileID: 379942241}
- {fileID: 748138896}
- {fileID: 1804910034}
m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
@ -2310,142 +2210,6 @@ Canvas:
m_SortingLayerID: 0
m_SortingOrder: 0
m_TargetDisplay: 0
--- !u!1 &1369094915
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1369094916}
- component: {fileID: 1369094919}
- component: {fileID: 1369094918}
- component: {fileID: 1369094917}
- component: {fileID: 1369094920}
m_Layer: 5
m_Name: RollButton
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &1369094916
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1369094915}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 1814678932}
m_Father: {fileID: 1353551474}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 383.71, y: -217}
m_SizeDelta: {x: 75.07, y: 30}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1369094917
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1369094915}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Navigation:
m_Mode: 3
m_WrapAround: 0
m_SelectOnUp: {fileID: 0}
m_SelectOnDown: {fileID: 0}
m_SelectOnLeft: {fileID: 0}
m_SelectOnRight: {fileID: 0}
m_Transition: 1
m_Colors:
m_NormalColor: {r: 1, g: 1, b: 1, a: 1}
m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1}
m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608}
m_ColorMultiplier: 1
m_FadeDuration: 0.1
m_SpriteState:
m_HighlightedSprite: {fileID: 0}
m_PressedSprite: {fileID: 0}
m_SelectedSprite: {fileID: 0}
m_DisabledSprite: {fileID: 0}
m_AnimationTriggers:
m_NormalTrigger: Normal
m_HighlightedTrigger: Highlighted
m_PressedTrigger: Pressed
m_SelectedTrigger: Selected
m_DisabledTrigger: Disabled
m_Interactable: 1
m_TargetGraphic: {fileID: 1369094918}
m_OnClick:
m_PersistentCalls:
m_Calls: []
--- !u!114 &1369094918
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1369094915}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0}
m_Type: 1
m_PreserveAspect: 0
m_FillCenter: 1
m_FillMethod: 4
m_FillAmount: 1
m_FillClockwise: 1
m_FillOrigin: 0
m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1
--- !u!222 &1369094919
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1369094915}
m_CullTransparentMesh: 1
--- !u!114 &1369094920
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1369094915}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 6b493144d8ebc4dda85e2070fb9573e7, type: 3}
m_Name:
m_EditorClassIdentifier:
rollDiceButton: {fileID: 1369094917}
dice: {fileID: 379942240}
--- !u!1 &1417835870
GameObject:
m_ObjectHideFlags: 0
@ -2476,8 +2240,8 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
rooms: {fileID: 0}
diceRoller: {fileID: 1369094920}
passManager: {fileID: 2099449974}
diceRoller: {fileID: 2128537222}
passManager: {fileID: 2128537221}
player: {fileID: 386902759}
--- !u!4 &1417835872
Transform:
@ -2597,11 +2361,6 @@ RectTransform:
m_CorrespondingSourceObject: {fileID: 8989188457857827130, guid: 66fcddbe7a3c341c5b9ca4f8801259a6, type: 3}
m_PrefabInstance: {fileID: 1577335134}
m_PrefabAsset: {fileID: 0}
--- !u!1 &1577335136 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: 6167039396952026974, guid: 66fcddbe7a3c341c5b9ca4f8801259a6, type: 3}
m_PrefabInstance: {fileID: 1577335134}
m_PrefabAsset: {fileID: 0}
--- !u!1 &1728296560
GameObject:
m_ObjectHideFlags: 0
@ -2738,6 +2497,83 @@ RectTransform:
m_AnchoredPosition: {x: 222, y: 230}
m_SizeDelta: {x: 150.14, y: 50}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &1772543306
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1772543308}
- component: {fileID: 1772543307}
- component: {fileID: 1772543309}
- component: {fileID: 1772543310}
m_Layer: 5
m_Name: ChestPopUp
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 0
--- !u!114 &1772543307
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1772543306}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 19102, guid: 0000000000000000e000000000000000, type: 0}
m_Name:
m_EditorClassIdentifier:
m_PanelSettings: {fileID: 11400000, guid: 79ea83e6353cc60439227b4505222385, type: 2}
m_ParentUI: {fileID: 0}
sourceAsset: {fileID: 9197481963319205126, guid: 4938b24eb01bc4f4d95fdf003dd86ef4, type: 3}
m_SortingOrder: 0
m_WorldSpaceSizeMode: 1
m_WorldSpaceWidth: 1920
m_WorldSpaceHeight: 1080
--- !u!4 &1772543308
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1772543306}
serializedVersion: 2
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &1772543309
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1772543306}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: f775e83b4c2599d468f1a1ce830ccff8, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!114 &1772543310
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1772543306}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 4723029f5ae5a994d81f1fd4287eb808, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1001 &1775902214
PrefabInstance:
m_ObjectHideFlags: 0
@ -2841,11 +2677,6 @@ RectTransform:
m_CorrespondingSourceObject: {fileID: 8989188457857827130, guid: 66fcddbe7a3c341c5b9ca4f8801259a6, type: 3}
m_PrefabInstance: {fileID: 1775902214}
m_PrefabAsset: {fileID: 0}
--- !u!1 &1775902216 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: 6167039396952026974, guid: 66fcddbe7a3c341c5b9ca4f8801259a6, type: 3}
m_PrefabInstance: {fileID: 1775902214}
m_PrefabAsset: {fileID: 0}
--- !u!1001 &1804910033
PrefabInstance:
m_ObjectHideFlags: 0
@ -2952,142 +2783,6 @@ RectTransform:
m_CorrespondingSourceObject: {fileID: 7983622854988183681, guid: 2d3967bed0790c44c88fabab60350749, type: 3}
m_PrefabInstance: {fileID: 1804910033}
m_PrefabAsset: {fileID: 0}
--- !u!1 &1814678931
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1814678932}
- component: {fileID: 1814678934}
- component: {fileID: 1814678933}
m_Layer: 5
m_Name: Text (TMP)
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &1814678932
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1814678931}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 1369094916}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1814678933
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1814678931}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_text: 'Roll '
m_isRightToLeft: 0
m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
m_fontSharedMaterials: []
m_fontMaterial: {fileID: 0}
m_fontMaterials: []
m_fontColor32:
serializedVersion: 2
rgba: 4278190080
m_fontColor: {r: 0, g: 0, b: 0, a: 1}
m_enableVertexGradient: 0
m_colorMode: 3
m_fontColorGradient:
topLeft: {r: 1, g: 1, b: 1, a: 1}
topRight: {r: 1, g: 1, b: 1, a: 1}
bottomLeft: {r: 1, g: 1, b: 1, a: 1}
bottomRight: {r: 1, g: 1, b: 1, a: 1}
m_fontColorGradientPreset: {fileID: 0}
m_spriteAsset: {fileID: 0}
m_tintAllSprites: 0
m_StyleSheet: {fileID: 0}
m_TextStyleHashCode: -1183493901
m_overrideHtmlColors: 0
m_faceColor:
serializedVersion: 2
rgba: 4294967295
m_fontSize: 24
m_fontSizeBase: 24
m_fontWeight: 400
m_enableAutoSizing: 0
m_fontSizeMin: 18
m_fontSizeMax: 72
m_fontStyle: 0
m_HorizontalAlignment: 2
m_VerticalAlignment: 512
m_textAlignment: 65535
m_characterSpacing: 0
m_wordSpacing: 0
m_lineSpacing: 0
m_lineSpacingMax: 0
m_paragraphSpacing: 0
m_charWidthMaxAdj: 0
m_TextWrappingMode: 1
m_wordWrappingRatios: 0.4
m_overflowMode: 0
m_linkedTextComponent: {fileID: 0}
parentLinkedComponent: {fileID: 0}
m_enableKerning: 0
m_ActiveFontFeatures: 6e72656b
m_enableExtraPadding: 0
checkPaddingRequired: 0
m_isRichText: 1
m_EmojiFallbackSupport: 1
m_parseCtrlCharacters: 1
m_isOrthographic: 1
m_isCullingEnabled: 0
m_horizontalMapping: 0
m_verticalMapping: 0
m_uvLineOffset: 0
m_geometrySortingOrder: 0
m_IsTextObjectScaleStatic: 0
m_VertexBufferAutoSizeReduction: 0
m_useMaxVisibleDescender: 1
m_pageToDisplay: 1
m_margin: {x: 0, y: 0, z: 0, w: 0}
m_isUsingLegacyAnimationComponent: 0
m_isVolumetricText: 0
m_hasFontAssetChanged: 0
m_baseMaterial: {fileID: 0}
m_maskOffset: {x: 0, y: 0, z: 0, w: 0}
--- !u!222 &1814678934
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1814678931}
m_CullTransparentMesh: 1
--- !u!1001 &1948928674
PrefabInstance:
m_ObjectHideFlags: 0
@ -3195,11 +2890,6 @@ RectTransform:
m_CorrespondingSourceObject: {fileID: 8989188457857827130, guid: 66fcddbe7a3c341c5b9ca4f8801259a6, type: 3}
m_PrefabInstance: {fileID: 1948928674}
m_PrefabAsset: {fileID: 0}
--- !u!1 &1948928676 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: 6167039396952026974, guid: 66fcddbe7a3c341c5b9ca4f8801259a6, type: 3}
m_PrefabInstance: {fileID: 1948928674}
m_PrefabAsset: {fileID: 0}
--- !u!1001 &1973998405
PrefabInstance:
m_ObjectHideFlags: 0
@ -3575,7 +3265,7 @@ CanvasRenderer:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2078984184}
m_CullTransparentMesh: 1
--- !u!1 &2099449969
--- !u!1 &2128537220
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
@ -3583,133 +3273,57 @@ GameObject:
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 2099449970}
- component: {fileID: 2099449973}
- component: {fileID: 2099449972}
- component: {fileID: 2099449971}
- component: {fileID: 2099449974}
m_Layer: 5
m_Name: PassButton
- component: {fileID: 2128537223}
- component: {fileID: 2128537222}
- component: {fileID: 2128537221}
m_Layer: 0
m_Name: DiceRoller
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &2099449970
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2099449969}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 1131960793}
m_Father: {fileID: 1353551474}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 308.63998, y: -217}
m_SizeDelta: {x: 75.06, y: 30}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &2099449971
--- !u!114 &2128537221
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2099449969}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Navigation:
m_Mode: 3
m_WrapAround: 0
m_SelectOnUp: {fileID: 0}
m_SelectOnDown: {fileID: 0}
m_SelectOnLeft: {fileID: 0}
m_SelectOnRight: {fileID: 0}
m_Transition: 1
m_Colors:
m_NormalColor: {r: 1, g: 1, b: 1, a: 1}
m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1}
m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608}
m_ColorMultiplier: 1
m_FadeDuration: 0.1
m_SpriteState:
m_HighlightedSprite: {fileID: 0}
m_PressedSprite: {fileID: 0}
m_SelectedSprite: {fileID: 0}
m_DisabledSprite: {fileID: 0}
m_AnimationTriggers:
m_NormalTrigger: Normal
m_HighlightedTrigger: Highlighted
m_PressedTrigger: Pressed
m_SelectedTrigger: Selected
m_DisabledTrigger: Disabled
m_Interactable: 0
m_TargetGraphic: {fileID: 2099449972}
m_OnClick:
m_PersistentCalls:
m_Calls: []
--- !u!114 &2099449972
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2099449969}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0}
m_Type: 1
m_PreserveAspect: 0
m_FillCenter: 1
m_FillMethod: 4
m_FillAmount: 1
m_FillClockwise: 1
m_FillOrigin: 0
m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1
--- !u!222 &2099449973
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2099449969}
m_CullTransparentMesh: 1
--- !u!114 &2099449974
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2099449969}
m_GameObject: {fileID: 2128537220}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 95487118287b4514fb9b9fb7018ae717, type: 3}
m_Name:
m_EditorClassIdentifier:
passButton: {fileID: 2099449971}
--- !u!114 &2128537222
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2128537220}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 6b493144d8ebc4dda85e2070fb9573e7, type: 3}
m_Name:
m_EditorClassIdentifier:
dice: {fileID: 379942240}
--- !u!4 &2128537223
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2128537220}
serializedVersion: 2
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 1079.2913, y: 171.85515, z: 8.719947}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 379942241}
m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1660057539 &9223372036854775807
SceneRoots:
m_ObjectHideFlags: 0
@ -3721,3 +3335,7 @@ SceneRoots:
- {fileID: 896056464}
- {fileID: 1353551474}
- {fileID: 1417835872}
- {fileID: 337186333}
- {fileID: 1772543308}
- {fileID: 2128537223}
- {fileID: 748138896}

View file

@ -18,52 +18,56 @@ MonoBehaviour:
level out of it.
preview: {fileID: 0}
dependencies:
- dependency: {fileID: 2800000, guid: 5255dd000b122c04cb2e575fd2b0eca8, type: 3}
- dependency: {fileID: 11400000, guid: 79ea83e6353cc60439227b4505222385, type: 2}
instantiationMode: 1
- dependency: {fileID: -4733365628477956816, guid: 99ca6393897edf24799dbcc0df57e904, type: 3}
instantiationMode: 1
- dependency: {fileID: 2800000, guid: 3028dc075ba8c584d9bc7d1e0255e038, type: 3}
instantiationMode: 1
- dependency: {fileID: 2800000, guid: 2d46de0706254504faa584fcf9ea94bb, type: 3}
- dependency: {fileID: 7433441132597879392, guid: 6b393637cabb3ce42bcdb2396af15f70, type: 3}
instantiationMode: 1
- dependency: {fileID: 2800000, guid: 99e2733a78fd7a543b2adc84e3d4d3b4, type: 3}
instantiationMode: 0
- dependency: {fileID: 2800000, guid: 2fd6421f253b4ef1a19526541f9ffc0c, type: 3}
instantiationMode: 1
- dependency: {fileID: 2435349004046080434, guid: c902621f4d7a49348bfab382716c9a6b, type: 3}
instantiationMode: 1
- dependency: {fileID: 11400000, guid: 2e498d1c8094910479dc3e1b768306a4, type: 2}
instantiationMode: 1
- dependency: {fileID: 2800000, guid: 311925a002f4447b3a28927169b83ea6, type: 3}
instantiationMode: 1
- dependency: {fileID: 2800000, guid: 36cbc13325177f24996bb0e77c507c65, type: 3}
instantiationMode: 0
- dependency: {fileID: 7874367151511621086, guid: ca942b415faef4e1ca2ca32043893efd, type: 3}
instantiationMode: 1
- dependency: {fileID: 2800000, guid: 901918d3a0101a74fbb13f0bf0d4b6cf, type: 3}
instantiationMode: 1
- dependency: {fileID: 2435349004046080434, guid: dffcf67f187414eacb9e7abf6d8cf39b, type: 3}
instantiationMode: 1
- dependency: {fileID: 2800000, guid: b9a93e3830914ec4bb885cca1ec68d3f, type: 3}
instantiationMode: 0
- dependency: {fileID: 6007503688929917977, guid: 2d3967bed0790c44c88fabab60350749, type: 3}
instantiationMode: 1
- dependency: {fileID: 7874367151511621086, guid: de405f9dca058480ab9e8433965408b2, type: 3}
instantiationMode: 1
- dependency: {fileID: 2800000, guid: 2d98aa58d76f5af459f0c1e7f329082f, type: 3}
instantiationMode: 1
- dependency: {fileID: 2435349004046080434, guid: 92d87e25cc40b3e448e62e8ba0328315, type: 3}
instantiationMode: 1
- dependency: {fileID: 2800000, guid: c431b2386ac294746ae0af5f26c2f383, type: 3}
instantiationMode: 1
- dependency: {fileID: 2800000, guid: ca55846e26dc89e45b6e0afa16f84977, type: 3}
instantiationMode: 0
- dependency: {fileID: 2800000, guid: b3525a13bc009d14598c4f13e35df6bd, type: 3}
instantiationMode: 0
- dependency: {fileID: 6167039396952026974, guid: 5e46b071ca9c11745a7893c22faf6976, type: 3}
instantiationMode: 1
- dependency: {fileID: 2800000, guid: 6fb6744825150e948986fec95b6f1d07, type: 3}
- dependency: {fileID: 7433441132597879392, guid: 97546bb1d1d93d84e9b4ef0c8ae11a0e, type: 3}
instantiationMode: 1
- dependency: {fileID: 7433441132597879392, guid: a485f2375ba46a046bbd6fd661492785, type: 3}
instantiationMode: 1
- dependency: {fileID: 2800000, guid: ee148e281f3c41c5b4ff5f8a5afe5a6c, type: 3}
instantiationMode: 1
- dependency: {fileID: 2100000, guid: a97c105638bdf8b4a8650670310a4cd3, type: 2}
instantiationMode: 1
- dependency: {fileID: 2800000, guid: 1b4f3e1088ae0e948936fc8e2552e78b, type: 3}
instantiationMode: 1
- dependency: {fileID: 2800000, guid: 982f0bccdf239df48af0a465f9ce7536, type: 3}
instantiationMode: 0
- dependency: {fileID: 2800000, guid: a3052a5a54720ef4d98f96950d425fe8, type: 3}
instantiationMode: 0
- dependency: {fileID: -944628639613478452, guid: ca9f5fa95ffab41fb9a615ab714db018, type: 3}
instantiationMode: 1
- dependency: {fileID: 9197481963319205126, guid: 17df250617a702f4e897f28d1f9182df, type: 3}
instantiationMode: 1
- dependency: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
instantiationMode: 1
- dependency: {fileID: 6167039396952026974, guid: 66fcddbe7a3c341c5b9ca4f8801259a6, type: 3}
instantiationMode: 1
- dependency: {fileID: 9197481963319205126, guid: 4938b24eb01bc4f4d95fdf003dd86ef4, type: 3}
instantiationMode: 1
- dependency: {fileID: 12800000, guid: e3265ab4bf004d28a9537516768c1c75, type: 3}
instantiationMode: 1
templatePipeline: {fileID: 11500000, guid: 11fdc8c46972f4347896cd02867779a9, type: 3}

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 5bebaf6441114ba46a00d957f57e6ce5
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 6ab384ea2f1e30041bd20b5c3ac636ba
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View file

@ -1,9 +1,11 @@
using System;
using Abilities;
using UnityEngine;
using UnityEngine.UI;
public class BlackDieAbility: StartingBlackDieAbility
{
public event Action AbilityGained;
protected override void OnEnable()
{
base.OnEnable();
@ -18,8 +20,6 @@ public class BlackDieAbility: StartingBlackDieAbility
private void HandleBlackDieAbilityGained()
{
abilityUseOne.GetComponent<Button>().interactable = true;
abilityUseTwo.GetComponent<Button>().interactable = true;
abilityUseThree.GetComponent<Button>().interactable = true;
AbilityGained?.Invoke();
}
}

View file

@ -8,40 +8,38 @@ public class ChestRewardSelection : MonoBehaviour
public static event Action TorchAbilitySelected;
public static event Action BlackDiceAbilitySelected;
[SerializeField] private Button diamondAndLifeButton;
[SerializeField] private Button torchButton;
[SerializeField] private Button blackDiceButton;
public event Action ArmorAndDiamondNoLongerAvailable;
public event Action TorchNoLongerAvailable;
public event Action BlackDieNoLongerAvailable;
public event Action DisplayChestReward;
private void OnEnable()
{
RoomRewards.ChestRewarded += HandChestRewarded;
diamondAndLifeButton.onClick.AddListener(HandleDiamondAndLifeSelected);
torchButton.onClick.AddListener(HandleTorchSelected);
blackDiceButton.onClick.AddListener(HandleBlackDiceSelected);
}
private void HandChestRewarded()
{
gameObject.SetActive(true);
DisplayChestReward?.Invoke();
}
private void HandleDiamondAndLifeSelected()
public void HandleDiamondAndLifeSelected()
{
diamondAndLifeButton.interactable = false;
ArmorAndDiamondNoLongerAvailable?.Invoke();
DiamondAndLifeSelected?.Invoke();
gameObject.SetActive(false);
}
private void HandleTorchSelected()
public void HandleTorchSelected()
{
torchButton.interactable = false;
TorchNoLongerAvailable?.Invoke();
TorchAbilitySelected?.Invoke();
gameObject.SetActive(false);
}
private void HandleBlackDiceSelected()
public void HandleBlackDiceSelected()
{
blackDiceButton.interactable = false;
BlackDieNoLongerAvailable?.Invoke();
BlackDiceAbilitySelected?.Invoke();
gameObject.SetActive(false);
}

View file

@ -8,10 +8,9 @@ namespace Abilities
public class StartingBlackDieAbility : MonoBehaviour
{
public static event Action AbilitySelected;
public event Action UnmarkUseUsedEvent;
public event Action MarkUseUsedEvent;
[SerializeField] protected GameObject abilityUseOne;
[SerializeField] protected GameObject abilityUseTwo;
[SerializeField] protected GameObject abilityUseThree;
private int _uses = 3;
private GameObject[] _usesUsed;
@ -25,37 +24,29 @@ namespace Abilities
GameManager.StateChanged -= HandleStateChanged;
}
private void Start() {
_usesUsed = new GameObject[_uses];
abilityUseOne.GetComponent<Button>().onClick.AddListener(() => UseClicked(abilityUseOne));
abilityUseTwo.GetComponent<Button>().onClick.AddListener(() => UseClicked(abilityUseTwo));
abilityUseThree.GetComponent<Button>().onClick.AddListener(() => UseClicked(abilityUseThree));
}
private void UseClicked(GameObject abilityUseObject) {
public void UseClicked() {
if (!_canClick) return;
if (_uses > 0)
{
_usesUsed[_uses - 1] = abilityUseObject;
MarkUseUsed(abilityUseObject);
AbilitySelected?.Invoke();
MarkUseUsed();
_uses -= 1;
}
_canClick = false;
}
private void MarkUseUsed(GameObject useObject) {
useObject.GetComponentInChildren<TextMeshProUGUI>().text = "X";
private void MarkUseUsed() {
MarkUseUsedEvent?.Invoke();
}
private void UnmarkUseUsed(GameObject useObject) {
useObject.GetComponentInChildren<TextMeshProUGUI>().text = string.Empty;
private void UnmarkUseUsed() {
UnmarkUseUsedEvent?.Invoke();
}
public void AbilitySelectedButNotUsed() {
UnmarkUseUsed(_usesUsed[_uses - 1]);
UnmarkUseUsedEvent?.Invoke();
_uses += 1;
}

View file

@ -5,13 +5,11 @@ using UnityEngine.UI;
public class TorchAbility : MonoBehaviour
{
public static
event Action TorchAbilityUsed;
[SerializeField] private GameObject abilityUseOne;
[SerializeField] private GameObject abilityUseTwo;
public static event Action TorchAbilityUsed;
public event Action AbilityGained;
private int _uses = 2;
private GameObject[] _usesUsed;
private bool _canClick;
private void OnEnable()
@ -26,21 +24,12 @@ public class TorchAbility : MonoBehaviour
ChestRewardSelection.TorchAbilitySelected -= HandleGainedTorchAbility;
}
private void Start()
{
_usesUsed = new GameObject[_uses];
abilityUseOne.GetComponent<Button>().onClick.AddListener(() => UseClicked(abilityUseOne));
abilityUseTwo.GetComponent<Button>().onClick.AddListener(() => UseClicked(abilityUseTwo));
}
private void UseClicked(GameObject abilityUseObject)
public void UseClicked()
{
if (!_canClick) return;
if (_uses > 0)
{
_usesUsed[_uses - 1] = abilityUseObject;
MarkUsed(abilityUseObject);
TorchAbilityUsed?.Invoke();
_uses -= 1;
}
@ -48,11 +37,6 @@ public class TorchAbility : MonoBehaviour
_canClick = false;
}
private void MarkUsed(GameObject useObject)
{
useObject.GetComponentInChildren<TextMeshProUGUI>().text = "X";
}
private void HandleStateChanged(GameState state)
{
_canClick = true;
@ -60,7 +44,6 @@ public class TorchAbility : MonoBehaviour
private void HandleGainedTorchAbility()
{
abilityUseOne.GetComponent<Button>().interactable = true;
abilityUseTwo.GetComponent<Button>().interactable = true;
AbilityGained?.Invoke();
}
}

View file

@ -3,6 +3,7 @@ using UnityEngine;
using UnityEngine.UI;
using System.Collections.Generic;
using System.Linq;
using UI;
using static TagsAndLayers;
using Random = Unity.Mathematics.Random;
@ -14,27 +15,22 @@ public class DiceRoller: MonoBehaviour
private List<int> _rolledWhiteDice = new List<int>();
private List<int> _rolledBlackDice = new List<int>();
private System.Random _randomGen = new System.Random();
[SerializeField] private Button rollDiceButton;
public GameObject dice;
public event EventHandler diceRolled;
private void Start()
{
rollDiceButton.onClick.AddListener(RollDice);
}
public static event EventHandler diceRolled;
public event Action Enabled;
public event Action Disabled;
public void Enable()
{
rollDiceButton.interactable = true;
Enabled?.Invoke();
}
public void Disable()
{
rollDiceButton.interactable = false;
Disabled.Invoke();
}
private void RollDice() {
public void RollDice() {
_rolledWhiteDice.Clear();
_rolledBlackDice.Clear();
for (int i = 0; i < NUMBER_OF_WHITE_DICE; i++)

View file

@ -15,13 +15,15 @@ public class Die : MonoBehaviour
{
public DiceColor color;
private int _result = 0;
[SerializeField] private Button dieButton; // assign in the editor
private Color originalColor;
private bool _isClickable = false;
private bool _selected = false;
private bool _blackDieAbilityUsed = false;
public event Action<Die> DieSelected;
public event Action<Die> DieUnselected;
public event Action<int> DieRollResult;
public event Action DieReset;
public event Action DieSelectedButPairNotCompleteEvent;
public event Action DieSelectedAndPairCompleteEvent;
private void OnEnable() {
GameManager.StateChanged += HandleStateChange;
@ -33,14 +35,9 @@ public class Die : MonoBehaviour
StartingBlackDieAbility.AbilitySelected -= HandleOnBlackDieAbilitySelected;
}
private void Start() {
dieButton.onClick.AddListener(DiePressed);
originalColor = gameObject.GetComponent<Image>().color;
}
public void SetResult(int result) {
_result = result;
gameObject.GetComponentInChildren<TextMeshProUGUI>().text = _result.ToString();
DieRollResult?.Invoke(_result);
}
public int GetResult()
@ -51,8 +48,7 @@ public class Die : MonoBehaviour
public void ResetDie() {
_selected = false;
_blackDieAbilityUsed = false;
gameObject.GetComponent<Image>().color = originalColor;
gameObject.GetComponent<Outline>().enabled = false;
DieReset?.Invoke();
}
public void DieBeingUsed(bool isPairComplete)
@ -69,7 +65,7 @@ public class Die : MonoBehaviour
}
}
private void DiePressed()
public void DiePressed()
{
if (!_isClickable || (color == DiceColor.Black && !_blackDieAbilityUsed)) return;
@ -86,14 +82,12 @@ public class Die : MonoBehaviour
private void DieSelectedButPairNotComplete()
{
_selected = true;
gameObject.GetComponent<Outline>().enabled = true;
DieSelectedButPairNotCompleteEvent?.Invoke();
}
private void DieSelectedAndPairComplete() {
_selected = true;
gameObject.GetComponent<Outline>().enabled = false;
gameObject.GetComponent<Image>().color =
ColorHelper.AddColorTint(gameObject.GetComponent<Image>().color, ColorHelper.OkayGreen, 0.5f);
DieSelectedAndPairCompleteEvent?.Invoke();
}
private void HandleStateChange(GameState state) {

View file

@ -31,7 +31,7 @@ public class GameManager : MonoBehaviour
// Start is called once before the first execution of Update after the MonoBehaviour is created
void Start()
{
diceRoller.diceRolled += DiceRolled;
DiceRoller.diceRolled += DiceRolled;
passManager.PassRequested += PassRequested;
rooms = GameObject.FindWithTag("RoomsParent");
foreach (Transform roomTransform in rooms.transform)

View file

@ -6,30 +6,24 @@ using Button = UnityEngine.UI.Button;
public class PassManager : MonoBehaviour
{
[SerializeField] private Button passButton;
public event EventHandler PassRequested;
public event Action PassAvailable;
// Start is called once before the first execution of Update after the MonoBehaviour is created
void Start()
private void OnEnable()
{
passButton.onClick.AddListener(OnPassClicked);
GameManager.StateChanged += HandleStateChange;
}
private void HandleStateChange(GameState state) {
if (state == GameState.RollDice)
{
passButton.interactable = false;
}
else
{
passButton.interactable = true;
}
}
private void OnPassClicked()
public void OnPassClicked()
{
PassRequested?.Invoke(this, EventArgs.Empty);
}
private void HandleStateChange(GameState state) {
if (state != GameState.RollDice)
{
PassAvailable?.Invoke();
}
}
}

View file

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

View file

@ -0,0 +1,46 @@
using System;
using UnityEngine;
using UnityEngine.UIElements;
namespace UI
{
public class ChestPopUpController : MonoBehaviour
{
public event Action BlackDieSelected;
public event Action KeySelected;
public event Action ArmorAndDiamondSelected;
private Button _blackDie;
private Button _key;
private Button _armorAndDiamond;
private void OnEnable()
{
VisualElement root = GetComponent<UIDocument>().rootVisualElement;
_blackDie = root.Q<Button>("BlackDie");
_blackDie.clicked += () => BlackDieSelected?.Invoke();
_key = root.Q<Button>("Key");
_key.clicked += () => KeySelected?.Invoke();
_armorAndDiamond = root.Q<Button>("ArmorAndDiamond");
_armorAndDiamond.clicked += () => ArmorAndDiamondSelected?.Invoke();
}
public void DisableBlackDie()
{
_blackDie.SetEnabled(false);
}
public void DisableKey()
{
_key.SetEnabled(false);
}
public void DisableArmorAndDiamond()
{
_armorAndDiamond.SetEnabled(false);
}
}
}

View file

@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: f775e83b4c2599d468f1a1ce830ccff8

View file

@ -0,0 +1,265 @@
using System;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UIElements;
namespace UI
{
enum DieState
{
Normal,
OnlyDieSelected,
SelectedOfPair,
Used
}
public class InGameHUDController : MonoBehaviour
{
private const string PASS_TEXT = "Pass";
private const string ROLL_TEXT = "Roll";
public event Action StartingBlackDieAbilityClicked;
public event Action BlackDieAbilityClicked;
public event Action KeyAbilityClicked;
public event Action RollClicked;
public event Action PassClicked;
public List<Button> WhiteDiceButtons = new List<Button>();
public Button BlackDieButton;
private Toggle _healthDiamondSelected;
private Toggle _torchSelected;
private Toggle _blackDieSelected;
private Button _rollOrPassButton;
private bool _rollMode = true;
private List<Toggle> _startingBlackDieAbilityUses = new List<Toggle>();
private int _startingBlackDieAbilityUsesUsed = 0;
private List<Toggle> _blackDieAbilityUses = new List<Toggle>();
private int _blackDieAbilityUsesUsed = 0;
private List<Toggle> _keyAbilityUses = new List<Toggle>();
private int _keyAbilityUsesUsed = 0;
private List<Toggle> _armorUses = new List<Toggle>();
private int _armorUsesUsed = 0;
public void OnEnable()
{
VisualElement root = GetComponent<UIDocument>().rootVisualElement;
GroupBox healthAndDiamondGroupBox = root.Q<GroupBox>("HeartAndDiamondUses");
GroupBox keyGroupBox = root.Q<GroupBox>("KeyUses");
GroupBox blackDieGroupBox = root.Q<GroupBox>("BlackDieUses");
GroupBox startingBlackDieGroupBox = root.Q<GroupBox>("StartingBlackDieUses");
startingBlackDieGroupBox.AddManipulator(new Clickable(evt => HandleStartingBlackDieAbilityClicked()));
GroupBox diceGroupBox = root.Q<GroupBox>("Dice");
foreach (Button diceButton in diceGroupBox.Children())
{
if (diceButton.name == "BlackDie")
{
BlackDieButton = diceButton;
}
else
{
WhiteDiceButtons.Add(diceButton);
}
}
foreach (Toggle use in startingBlackDieGroupBox.Children())
{
use.RegisterCallback<ClickEvent>(evt =>
{
use.value = !use.value; // User clicking check does not check or uncheck toggle.
HandleStartingBlackDieAbilityClicked();
});
_startingBlackDieAbilityUses.Add(use);
}
foreach (Toggle use in blackDieGroupBox.Children())
{
_blackDieAbilityUses.Add(use);
use.RegisterCallback<ClickEvent>(evt =>
{
use.value = !use.value; // User clicking check does not check or uncheck toggle.
BlackDieAbilityClicked?.Invoke();
});
}
foreach (Toggle use in keyGroupBox.Children())
{
_keyAbilityUses.Add(use);
use.RegisterCallback<ClickEvent>(evt =>
{
use.value = !use.value; // User clicking check does not check or uncheck toggle.
KeyAbilityClicked?.Invoke();
});
}
foreach (Toggle use in healthAndDiamondGroupBox.Children())
{
_armorUses.Add(use);
use.RegisterCallback<ClickEvent>(evt =>
{
use.value = !use.value; // User clicking check does not check or uncheck toggle.
});
}
_rollOrPassButton = root.Q<Button>("RollPass");
_rollOrPassButton.clicked += HandleRollOrPassClicked;
}
public void SetBlackDieAbilityEnabled()
{
foreach (Toggle use in _blackDieAbilityUses)
{
use.SetEnabled(true);
}
}
public void SetKeyAbilityEnabled()
{
foreach (Toggle use in _keyAbilityUses)
{
use.SetEnabled(true);
}
}
public void SetArmorAbilityEnabled()
{
foreach (Toggle use in _armorUses)
{
use.SetEnabled(true);
}
}
public void MarkKeyAbilityUsed()
{
_keyAbilityUses[_keyAbilityUsesUsed].value = true;
_keyAbilityUsesUsed++;
}
public void MarkBlackDieAbilityUsed()
{
_blackDieAbilityUses[_blackDieAbilityUsesUsed].value = true;
_blackDieAbilityUsesUsed++;
}
public void UnmarkBlackDieAbilityUsed()
{
_blackDieAbilityUses[_blackDieAbilityUsesUsed].value = false;
_blackDieAbilityUsesUsed--;
}
public void MarkStartingBlackDieAbilityUsed()
{
_startingBlackDieAbilityUses[_startingBlackDieAbilityUsesUsed].value = true;
_startingBlackDieAbilityUsesUsed++;
}
public void UnmarkStartingBlackDieAbilityUsed()
{
_startingBlackDieAbilityUses[_startingBlackDieAbilityUsesUsed].value = false;
_startingBlackDieAbilityUsesUsed--;
}
public void SwitchToDiceRoller()
{
_rollMode = true;
_rollOrPassButton.text = ROLL_TEXT;
}
public void SwitchToPass()
{
_rollMode = false;
_rollOrPassButton.text = PASS_TEXT;
}
public void SetDiceRollerEnabled(bool enabled)
{
if (enabled)
{
SwitchToDiceRoller();
}
else
{
SwitchToPass();
}
}
public void SetDieSelectedButNotComplete(Button button)
{
SetDiceButtonState(DieState.OnlyDieSelected, button);
}
public void SetDieSelectedAndPairComplete(Button button)
{
SetDiceButtonState(DieState.SelectedOfPair, button);
}
public void RestDie(Button button)
{
SetDiceButtonState(DieState.Normal, button);
}
public void SetHealthAndDiamondSelected(bool state)
{
_healthDiamondSelected.value = state;
}
public void SetTorchSelected(bool state)
{
_torchSelected.value = state;
}
public void SetBlackDieSelected(bool state)
{
_blackDieSelected.value = state;
}
private void HandleRollOrPassClicked()
{
if (_rollMode)
{
SwitchToPass();
RollClicked?.Invoke();
}
else
{
SwitchToDiceRoller();
PassClicked?.Invoke();
}
}
private void HandleStartingBlackDieAbilityClicked()
{
StartingBlackDieAbilityClicked?.Invoke();
}
private void SetDiceButtonState(DieState state, Button die)
{
die.RemoveFromClassList("selected-of-pair");
die.RemoveFromClassList("selected");
die.SetEnabled(true);
switch (state)
{
case DieState.Used:
die.SetEnabled(false);
break;
case DieState.OnlyDieSelected:
die.AddToClassList("selected");
break;
case DieState.SelectedOfPair:
die.AddToClassList("selected-of-pair");
break;
}
}
}
}

View file

@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 6b8775a362b77bc4bb1bcae768aa15a3

View file

@ -0,0 +1,132 @@
using System;
using System.Collections.Generic;
using Abilities;
using UnityEngine;
using UnityEngine.Serialization;
using UnityEngine.UIElements;
namespace UI
{
public class UIManager : MonoBehaviour
{
[SerializeField] private GameObject canvas;
[FormerlySerializedAs("hud")] [SerializeField] private InGameHUDController hudController;
[SerializeField] private GameObject chestPopUpControllerGO;
[SerializeField] private ChestPopUpController chestPopUpController;
[SerializeField] private GameObject diceGO;
[SerializeField] private DiceRoller diceRoller;
[SerializeField] private PassManager passManager;
[SerializeField] private StartingBlackDieAbility startingBlackDieAbility;
[SerializeField] private BlackDieAbility blackDieAbility;
[SerializeField] private ChestRewardSelection chestRewardSelection;
[SerializeField] private TorchAbility torchAbility;
public static UIManager Instance { get; private set; }
private Dictionary<Die, Button> _dieToButtonMapping = new Dictionary<Die, Button>();
void Awake()
{
if (Instance != null && Instance != this)
{
Destroy(gameObject);
return;
}
Instance = this;
DontDestroyOnLoad(gameObject);
}
private void OnEnable()
{
chestPopUpController = chestPopUpControllerGO.GetComponent<ChestPopUpController>();
RoomRewards.ChestRewarded += HandleChestRewarded;
chestPopUpController.BlackDieSelected += chestRewardSelection.HandleBlackDiceSelected;
chestPopUpController.KeySelected += chestRewardSelection.HandleTorchSelected;
chestPopUpController.ArmorAndDiamondSelected += chestRewardSelection.HandleDiamondAndLifeSelected;
hudController.RollClicked += diceRoller.RollDice;
hudController.PassClicked += passManager.OnPassClicked;
diceRoller.Enabled += () => hudController.SetDiceRollerEnabled(true);
diceRoller.Disabled += () => hudController.SetDiceRollerEnabled(false);
startingBlackDieAbility.MarkUseUsedEvent += hudController.MarkStartingBlackDieAbilityUsed;
startingBlackDieAbility.UnmarkUseUsedEvent += hudController.UnmarkStartingBlackDieAbilityUsed;
hudController.StartingBlackDieAbilityClicked += startingBlackDieAbility.UseClicked;
blackDieAbility.MarkUseUsedEvent += hudController.MarkBlackDieAbilityUsed;
blackDieAbility.UnmarkUseUsedEvent += hudController.UnmarkStartingBlackDieAbilityUsed;
blackDieAbility.AbilityGained += hudController.SetBlackDieAbilityEnabled;
hudController.BlackDieAbilityClicked += blackDieAbility.UseClicked;
chestRewardSelection.ArmorAndDiamondNoLongerAvailable += chestPopUpController.DisableArmorAndDiamond;
chestRewardSelection.TorchNoLongerAvailable += chestPopUpController.DisableKey;
chestRewardSelection.BlackDieNoLongerAvailable += chestPopUpController.DisableBlackDie;
torchAbility.AbilityGained += hudController.SetKeyAbilityEnabled;
TorchAbility.TorchAbilityUsed += hudController.MarkKeyAbilityUsed;
hudController.KeyAbilityClicked += torchAbility.UseClicked;
}
private void OnDisable()
{
RoomRewards.ChestRewarded -= HandleChestRewarded;
chestPopUpController.BlackDieSelected -= BlackDieAbilityGained;
chestPopUpController.KeySelected -= TorchAbilityGained;
chestPopUpController.ArmorAndDiamondSelected -= HealthAndDiamondGained;
}
private void Start()
{
int count = 0;
foreach (Transform dieTransform in diceGO.transform)
{
Die die = dieTransform.gameObject.GetComponent<Die>();
if (die.color == DiceColor.Black)
{
_dieToButtonMapping[die] = hudController.BlackDieButton;
}
else
{
_dieToButtonMapping[die] = hudController.WhiteDiceButtons[count];
count++;
}
}
foreach (var kvp in _dieToButtonMapping)
{
Button button = kvp.Value;
Die die = kvp.Key;
button.clicked += die.DiePressed;
die.DieRollResult += result => button.text = result.ToString();
die.DieSelectedButPairNotCompleteEvent += () => hudController.SetDieSelectedButNotComplete(button);
die.DieSelectedAndPairCompleteEvent += () => hudController.SetDieSelectedAndPairComplete(button);
die.DieReset += () => hudController.RestDie(button);
}
}
private void BlackDieAbilityGained()
{
hudController.SetBlackDieSelected(true);
}
private void TorchAbilityGained()
{
hudController.SetTorchSelected(true);
}
private void HealthAndDiamondGained()
{
hudController.SetHealthAndDiamondSelected(true);
}
private void HandleChestRewarded()
{
chestPopUpControllerGO.SetActive(true);
}
}
}

View file

@ -1,17 +0,0 @@
using System;
using UnityEngine;
public class UIManager : MonoBehaviour
{
[SerializeField] private GameObject canvas;
[SerializeField] private GameObject chestRewardSelectionUI;
private void OnEnable()
{
RoomRewards.ChestRewarded += HandleChestRewarded;
}
private void HandleChestRewarded()
{
chestRewardSelectionUI.SetActive(true);
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 94 KiB

View file

@ -0,0 +1,168 @@
fileFormatVersion: 2
guid: b9a93e3830914ec4bb885cca1ec68d3f
TextureImporter:
internalIDToNameTable:
- first:
213: -706377867732768446
second: Table, cloth, large, blue_0
externalObjects: {}
serializedVersion: 13
mipmaps:
mipMapMode: 0
enableMipMap: 0
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
flipGreenChannel: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
vTOnly: 0
ignoreMipmapLimit: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 1
aniso: 1
mipBias: 0
wrapU: 1
wrapV: 1
wrapW: 1
nPOTScale: 0
lightmap: 0
compressionQuality: 50
spriteMode: 2
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 1
spriteTessellationDetail: -1
textureType: 8
textureShape: 1
singleChannelComponent: 0
flipbookRows: 1
flipbookColumns: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
ignorePngGamma: 0
applyGammaDecoding: 0
swizzle: 50462976
cookieLightType: 0
platformSettings:
- serializedVersion: 4
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 4
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 4
buildTarget: Android
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 4
buildTarget: WebGL
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites:
- serializedVersion: 2
name: Table, cloth, large, blue_0
rect:
serializedVersion: 2
x: 2
y: 4
width: 346
height: 337
alignment: 0
pivot: {x: 0, y: 0}
border: {x: 0, y: 0, z: 0, w: 0}
customData:
outline: []
physicsShape: []
tessellationDetail: -1
bones: []
spriteID: 249279462117236f0800000000000000
internalID: -706377867732768446
vertices: []
indices:
edges: []
weights: []
outline: []
customData:
physicsShape: []
bones: []
spriteID:
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
spriteCustomMetadata:
entries: []
nameFileIdTable: {}
mipmapLimitGroupName:
pSDRemoveMatte: 0
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

After

Width:  |  Height:  |  Size: 93 KiB

View file

@ -0,0 +1,168 @@
fileFormatVersion: 2
guid: b3525a13bc009d14598c4f13e35df6bd
TextureImporter:
internalIDToNameTable:
- first:
213: -3329506490988377354
second: Table, cloth, large, green_0
externalObjects: {}
serializedVersion: 13
mipmaps:
mipMapMode: 0
enableMipMap: 0
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
flipGreenChannel: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
vTOnly: 0
ignoreMipmapLimit: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 1
aniso: 1
mipBias: 0
wrapU: 1
wrapV: 1
wrapW: 1
nPOTScale: 0
lightmap: 0
compressionQuality: 50
spriteMode: 2
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 1
spriteTessellationDetail: -1
textureType: 8
textureShape: 1
singleChannelComponent: 0
flipbookRows: 1
flipbookColumns: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
ignorePngGamma: 0
applyGammaDecoding: 0
swizzle: 50462976
cookieLightType: 0
platformSettings:
- serializedVersion: 4
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 4
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 4
buildTarget: Android
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 4
buildTarget: WebGL
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites:
- serializedVersion: 2
name: Table, cloth, large, green_0
rect:
serializedVersion: 2
x: 2
y: 4
width: 346
height: 337
alignment: 0
pivot: {x: 0, y: 0}
border: {x: 0, y: 0, z: 0, w: 0}
customData:
outline: []
physicsShape: []
tessellationDetail: -1
bones: []
spriteID: 6fac747ac773bc1d0800000000000000
internalID: -3329506490988377354
vertices: []
indices:
edges: []
weights: []
outline: []
customData:
physicsShape: []
bones: []
spriteID:
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
spriteCustomMetadata:
entries: []
nameFileIdTable: {}
mipmapLimitGroupName:
pSDRemoveMatte: 0
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

After

Width:  |  Height:  |  Size: 91 KiB

View file

@ -0,0 +1,168 @@
fileFormatVersion: 2
guid: ca55846e26dc89e45b6e0afa16f84977
TextureImporter:
internalIDToNameTable:
- first:
213: -5606412432091976979
second: Table, cloth, large, red_0
externalObjects: {}
serializedVersion: 13
mipmaps:
mipMapMode: 0
enableMipMap: 0
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
flipGreenChannel: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
vTOnly: 0
ignoreMipmapLimit: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 1
aniso: 1
mipBias: 0
wrapU: 1
wrapV: 1
wrapW: 1
nPOTScale: 0
lightmap: 0
compressionQuality: 50
spriteMode: 2
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 1
spriteTessellationDetail: -1
textureType: 8
textureShape: 1
singleChannelComponent: 0
flipbookRows: 1
flipbookColumns: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
ignorePngGamma: 0
applyGammaDecoding: 0
swizzle: 50462976
cookieLightType: 0
platformSettings:
- serializedVersion: 4
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 4
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 4
buildTarget: Android
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 4
buildTarget: WebGL
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites:
- serializedVersion: 2
name: Table, cloth, large, red_0
rect:
serializedVersion: 2
x: 2
y: 4
width: 346
height: 337
alignment: 0
pivot: {x: 0, y: 0}
border: {x: 0, y: 0, z: 0, w: 0}
customData:
outline: []
physicsShape: []
tessellationDetail: -1
bones: []
spriteID: deae2d8d8950232b0800000000000000
internalID: -5606412432091976979
vertices: []
indices:
edges: []
weights: []
outline: []
customData:
physicsShape: []
bones: []
spriteID:
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
spriteCustomMetadata:
entries: []
nameFileIdTable: {}
mipmapLimitGroupName:
pSDRemoveMatte: 0
userData:
assetBundleName:
assetBundleVariant:

View file

@ -17,7 +17,7 @@ MonoBehaviour:
m_TargetTexture: {fileID: 0}
m_RenderMode: 0
m_WorldSpaceLayer: 0
m_ScaleMode: 1
m_ScaleMode: 2
m_ReferenceSpritePixelsPerUnit: 100
m_PixelsPerUnit: 100
m_Scale: 1
@ -37,7 +37,7 @@ MonoBehaviour:
m_MinAtlasSize: 64
m_MaxAtlasSize: 4096
m_MaxSubTextureSize: 64
m_ActiveFilters: 31
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}

View file

@ -0,0 +1,20 @@
<engine:UXML xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:engine="UnityEngine.UIElements" xmlns:editor="UnityEditor.UIElements" noNamespaceSchemaLocation="../../UIElementsSchema/UIElements.xsd" editor-extension-mode="False">
<Style src="project://database/Assets/UI/Styles/style1.uss?fileID=7433441132597879392&amp;guid=97546bb1d1d93d84e9b4ef0c8ae11a0e&amp;type=3#style1" />
<engine:VisualElement name="root" style="flex-grow: 1; justify-content: space-around; width: auto; height: auto;">
<engine:VisualElement name="VisualElement" style="flex-grow: 0; background-image: url(&quot;project://database/Assets/Sprites/Loot/Chest%20(1x1)%205.png?fileID=2800000&amp;guid=36cbc13325177f24996bb0e77c507c65&amp;type=3#Chest (1x1) 5&quot;); width: 500px; height: 500px; flex-shrink: 0; align-self: center; padding-top: 224px; padding-left: 111px; padding-right: 93px; padding-bottom: 67px;">
<engine:GroupBox style="flex-grow: 1; flex-shrink: 1; flex-direction: column; justify-content: space-between; align-items: center; height: 100px;">
<engine:VisualElement style="flex-grow: 1; flex-direction: row;">
<engine:Button name="BlackDie" class="icon-button" style="background-image: url(&quot;project://database/Assets/Sprites/Table,%20cloth,%20large,%20red.png?fileID=2800000&amp;guid=ca55846e26dc89e45b6e0afa16f84977&amp;type=3#Table, cloth, large, red&quot;); width: 100px; height: 100px; background-size: 100% 100%; -unity-background-scale-mode: scale-and-crop; flex-shrink: 1; align-items: center; justify-content: space-around;">
<engine:VisualElement style="flex-grow: 0; background-image: url(&quot;project://database/Assets/Sprites/No%20Edges.png?fileID=2800000&amp;guid=982f0bccdf239df48af0a465f9ce7536&amp;type=3#No Edges&quot;); flex-shrink: 0; width: 50px; height: 50px;" />
</engine:Button>
<engine:Button name="Key" class="icon-button" style="background-image: url(&quot;project://database/Assets/Sprites/Table,%20cloth,%20large,%20blue.png?fileID=2800000&amp;guid=b9a93e3830914ec4bb885cca1ec68d3f&amp;type=3#Table, cloth, large, blue&quot;); background-color: rgba(188, 188, 188, 0); width: 100px; height: 100px; -unity-background-scale-mode: scale-and-crop; flex-shrink: 1; align-items: center; justify-content: space-around;">
<engine:VisualElement style="flex-grow: 0; background-image: url(&quot;project://database/Assets/Sprites/Key.png?fileID=2800000&amp;guid=99e2733a78fd7a543b2adc84e3d4d3b4&amp;type=3#Key&quot;); width: 40px; height: 40px; flex-shrink: 0;" />
</engine:Button>
</engine:VisualElement>
<engine:Button name="ArmorAndDiamond" class="icon-button" style="background-image: url(&quot;project://database/Assets/Sprites/Table,%20cloth,%20large,%20green.png?fileID=2800000&amp;guid=b3525a13bc009d14598c4f13e35df6bd&amp;type=3#Table, cloth, large, green&quot;); background-color: rgba(188, 188, 188, 0); width: 100px; height: 100px; -unity-background-scale-mode: scale-and-crop; flex-shrink: 1; align-items: center; justify-content: space-around;">
<engine:VisualElement style="flex-grow: 0; background-image: url(&quot;project://database/Assets/Sprites/HeartAndDiamond.png?fileID=2800000&amp;guid=a3052a5a54720ef4d98f96950d425fe8&amp;type=3#HeartAndDiamond&quot;); flex-shrink: 0; width: 83px; height: 83px; background-size: 100% 100%;" />
</engine:Button>
</engine:GroupBox>
</engine:VisualElement>
</engine:VisualElement>
</engine:UXML>

View file

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

View file

@ -1,57 +1,66 @@
<engine:UXML xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:engine="UnityEngine.UIElements" xmlns:editor="UnityEditor.UIElements" noNamespaceSchemaLocation="../../UIElementsSchema/UIElements.xsd" editor-extension-mode="False">
<Style src="project://database/Assets/UI/Styles/style1.uss?fileID=7433441132597879392&amp;guid=97546bb1d1d93d84e9b4ef0c8ae11a0e&amp;type=3#style1" />
<Style src="project://database/Assets/UI/Styles/Abilities.uss?fileID=7433441132597879392&amp;guid=6b393637cabb3ce42bcdb2396af15f70&amp;type=3#Abilities" />
<Style src="project://database/Assets/Dice.uss?fileID=7433441132597879392&amp;guid=a485f2375ba46a046bbd6fd661492785&amp;type=3#Dice" />
<engine:VisualElement name="VisualElement" style="flex-grow: 1; right: auto; justify-content: space-between; align-items: flex-end; flex-direction: flex-start; align-self: stretch; flex-basis: initial; width: initial; flex-shrink: 0;">
<engine:VisualElement name="Right" style="flex-grow: 1; align-self: flex-end; max-width: none; justify-content: flex-end; flex-direction: row; right: auto; position: relative; align-items: auto; width: 20%;">
<engine:VisualElement name="Ribbon" style="flex-grow: 0; flex-shrink: 1; width: auto; align-self: flex-start; flex-direction: column; align-items: stretch; justify-content: flex-start; flex-basis: auto; flex-wrap: nowrap; border-top-width: 2px; border-right-width: 2px; border-bottom-width: 2px; border-left-width: 2px; border-left-color: rgb(0, 0, 0); border-right-color: rgb(0, 0, 0); border-top-color: rgb(0, 0, 0); border-bottom-color: rgb(0, 0, 0); border-top-left-radius: 2px; border-top-right-radius: 2px; border-bottom-right-radius: 2px; border-bottom-left-radius: 2px;">
<engine:VisualElement name="Chest" style="flex-grow: 0; flex-shrink: 1; background-color: rgb(255, 200, 71); justify-content: flex-start; align-items: stretch;">
<engine:VisualElement name="HeartAndDiamond" style="flex-grow: 1; align-items: stretch; flex-shrink: 1; justify-content: space-between; border-bottom-width: 2px; border-left-color: rgb(0, 0, 0); border-right-color: rgb(0, 0, 0); border-top-color: rgb(0, 0, 0); border-bottom-color: rgb(0, 0, 0);">
<engine:VisualElement style="flex-grow: 0; flex-direction: row; flex-shrink: 1; justify-content: space-between;">
<engine:Toggle name="HealthDiamondSelected" style="flex-direction: column; align-items: flex-start; align-self: center;" />
<engine:VisualElement name="ArmorAndShield" style="flex-grow: 0; background-image: url(&quot;project://database/Assets/Sprites/HeartAndDiamond.png?fileID=2800000&amp;guid=a3052a5a54720ef4d98f96950d425fe8&amp;type=3#HeartAndDiamond&quot;); align-items: center; width: 100px; height: 100px; flex-shrink: 0; align-self: center;" />
<engine:VisualElement style="flex-grow: 0; flex-direction: row; flex-shrink: 1; justify-content: space-around;">
<engine:VisualElement name="ArmorAndShield" enabled="true" style="flex-grow: 0; background-image: url(&quot;project://database/Assets/Sprites/HeartAndDiamond.png?fileID=2800000&amp;guid=a3052a5a54720ef4d98f96950d425fe8&amp;type=3#HeartAndDiamond&quot;); align-items: center; width: 100px; height: 100px; flex-shrink: 0; align-self: center;" />
</engine:VisualElement>
<engine:GroupBox name="HeartAndDiamondUses" style="flex-direction: row; align-items: stretch; justify-content: space-between; flex-shrink: 1; flex-grow: 0;">
<engine:Toggle />
<engine:Toggle />
<engine:Toggle />
<engine:Toggle name="Toggle" enabled="false" focusable="false" />
<engine:Toggle enabled="false" focusable="false" />
<engine:Toggle enabled="false" focusable="false" />
</engine:GroupBox>
</engine:VisualElement>
<engine:VisualElement name="Torch" class="BottonLine" style="flex-grow: 1; align-items: stretch; justify-content: space-between;">
<engine:VisualElement name="VisualElement" style="flex-grow: 0; flex-direction: row; flex-shrink: 1; justify-content: space-between; align-items: stretch;">
<engine:Toggle name="KeySelected" style="flex-direction: column; align-items: flex-start; align-self: center;" />
<engine:VisualElement name="VisualElement" style="flex-grow: 0; flex-direction: row; flex-shrink: 1; justify-content: space-around; align-items: stretch;">
<engine:VisualElement name="Key" style="flex-grow: 0; background-image: url(&quot;project://database/Assets/Sprites/Key.png?fileID=2800000&amp;guid=99e2733a78fd7a543b2adc84e3d4d3b4&amp;type=3#Key&quot;); align-items: center; width: 50px; height: 50px; flex-shrink: 0; align-self: center; margin-top: 10px; margin-right: 10px; margin-bottom: 10px; margin-left: 10px;" />
</engine:VisualElement>
<engine:GroupBox name="KeyUses" style="flex-direction: row; align-items: stretch; justify-content: space-between; flex-shrink: 1; flex-grow: 0;">
<engine:Toggle />
<engine:Toggle />
<engine:Toggle />
<engine:GroupBox name="KeyUses" style="flex-direction: row; align-items: stretch; justify-content: space-around; flex-shrink: 1; flex-grow: 0;">
<engine:Toggle enabled="false" focusable="false" />
<engine:Toggle enabled="false" focusable="false" />
</engine:GroupBox>
</engine:VisualElement>
<engine:VisualElement name="BlackDice" class="BottonLine" style="flex-grow: 0; align-items: stretch; justify-content: space-between;">
<engine:VisualElement name="VisualElement" style="flex-grow: 0; flex-direction: row; flex-shrink: 1; justify-content: space-between;">
<engine:Toggle name="BlackDiceSelected" style="flex-direction: column; align-items: flex-start; align-self: center;" />
<engine:VisualElement name="VisualElement" style="flex-grow: 0; flex-direction: row; flex-shrink: 1; justify-content: space-around;">
<engine:VisualElement name="BlackDie" style="flex-grow: 0; background-image: url(&quot;project://database/Assets/Sprites/No%20Edges.png?fileID=2800000&amp;guid=982f0bccdf239df48af0a465f9ce7536&amp;type=3#No Edges&quot;); align-items: center; width: 50px; height: 50px; flex-shrink: 0; align-self: center; margin-top: 10px; margin-right: 10px; margin-bottom: 10px; margin-left: 10px;" />
</engine:VisualElement>
<engine:GroupBox name="BlackDieUses" style="flex-direction: row; align-items: stretch; justify-content: space-between; flex-shrink: 1; flex-grow: 0;">
<engine:Toggle />
<engine:Toggle />
<engine:Toggle />
<engine:Toggle enabled="false" focusable="false" />
<engine:Toggle enabled="false" focusable="false" />
<engine:Toggle enabled="false" focusable="false" />
</engine:GroupBox>
</engine:VisualElement>
</engine:VisualElement>
<engine:VisualElement name="BaseBlackDice" style="flex-grow: 0; background-color: rgb(59, 115, 40); align-items: stretch;">
<engine:VisualElement style="flex-grow: 0;">
<engine:VisualElement name="BlackDie" style="flex-grow: 0; background-image: url(&quot;project://database/Assets/Sprites/No%20Edges.png?fileID=2800000&amp;guid=982f0bccdf239df48af0a465f9ce7536&amp;type=3#No Edges&quot;); align-items: center; width: 50px; height: 50px; flex-shrink: 0; align-self: center; margin-top: 10px; margin-right: 10px; margin-bottom: 10px; margin-left: 10px;" />
<engine:VisualElement name="StartingBlackDie" style="flex-grow: 0; background-image: url(&quot;project://database/Assets/Sprites/No%20Edges.png?fileID=2800000&amp;guid=982f0bccdf239df48af0a465f9ce7536&amp;type=3#No Edges&quot;); align-items: center; width: 50px; height: 50px; flex-shrink: 0; align-self: center; margin-top: 10px; margin-right: 10px; margin-bottom: 10px; margin-left: 10px;" />
</engine:VisualElement>
<engine:VisualElement style="flex-grow: 1;">
<engine:GroupBox name="StartingBlackDieUses" style="flex-direction: row; align-items: stretch; justify-content: space-between; flex-shrink: 1; flex-grow: 0;">
<engine:Toggle />
<engine:Toggle />
<engine:Toggle />
<engine:Toggle focusable="false" enabled="true" picking-mode="Ignore" />
<engine:Toggle focusable="false" picking-mode="Ignore" />
<engine:Toggle focusable="false" picking-mode="Ignore" />
</engine:GroupBox>
</engine:VisualElement>
</engine:VisualElement>
</engine:VisualElement>
</engine:VisualElement>
<engine:VisualElement name="Bottom" style="flex-grow: 1; flex-direction: row-reverse; flex-shrink: 1; height: 20%; max-width: 100%; justify-content: space-around; align-items: stretch; align-self: stretch;">
<engine:VisualElement name="DiceRoller" style="flex-grow: 0; align-self: flex-end; flex-direction: row-reverse;">
<engine:Button text="Roll" name="RollPass" class="button" style="align-self: center; border-top-left-radius: 7px; border-top-right-radius: 7px; border-bottom-right-radius: 7px; border-bottom-left-radius: 7px; height: 50px;" />
<engine:GroupBox name="Dice" style="flex-direction: row;">
<engine:Button text="1" name="BlackDie" class="die black" />
<engine:Button text="1" enabled="true" class="die white used" />
<engine:Button text="1" class="die white" />
<engine:Button text="1" class="die white" />
<engine:Button text="1" class="die white" />
</engine:GroupBox>
</engine:VisualElement>
</engine:VisualElement>
</engine:VisualElement>
</engine:UXML>

View file

@ -25,3 +25,35 @@
border-bottom-right-radius: 5px;
border-bottom-left-radius: 5px;
}
.icon-button {
background-color: rgba(0, 0, 0, 0);
border-left-color: rgba(0, 0, 0, 0);
border-right-color: rgba(0, 0, 0, 0);
border-top-color: rgba(0, 0, 0, 0);
border-bottom-color: rgba(0, 0, 0, 0);
border-top-width: 0;
border-right-width: 0;
border-bottom-width: 0;
border-left-width: 0;
border-top-left-radius: 0;
border-top-right-radius: 0;
border-bottom-right-radius: 0;
border-bottom-left-radius: 0;
}
.button {
border-left-color: rgb(0, 0, 0);
border-right-color: rgb(0, 0, 0);
border-top-color: rgb(0, 0, 0);
border-bottom-color: rgb(0, 0, 0);
border-top-width: 2px;
border-right-width: 2px;
border-bottom-width: 2px;
border-left-width: 2px;
padding-top: 5px;
padding-right: 5px;
padding-bottom: 5px;
padding-left: 5px;
font-size: 31px;
}