Skip to content

Commit

Permalink
Merge pull request #5 from Doprez/create-ui-library
Browse files Browse the repository at this point in the history
Create UI library
  • Loading branch information
Doprez authored Apr 21, 2023
2 parents 75f7bd4 + 7d4f33b commit 9ae33da
Show file tree
Hide file tree
Showing 4 changed files with 125 additions and 3 deletions.
113 changes: 113 additions & 0 deletions Doprez.Stride/Assets/ExtendedButtons.sduilib
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
!UILibraryAsset
Id: a648d679-c82a-4193-a2db-59cb4c0e8c72
SerializedVersion: {Stride: 2.1.0.1}
Tags: []
Design:
Resolution: {X: 1280.0, Y: 720.0, Z: 1000.0}
PublicUIElements:
c1d5b828-b110-4558-8285-f82c0144f2a1: ImageTextButton
465ac09f-cef8-4a71-9d30-8c32dc5784d2: ImageButton
Hierarchy:
RootParts:
- !Button ref!! c1d5b828-b110-4558-8285-f82c0144f2a1
- !Button ref!! 465ac09f-cef8-4a71-9d30-8c32dc5784d2
Parts:
- UIElement: !Button
Id: 465ac09f-cef8-4a71-9d30-8c32dc5784d2
DependencyProperties: {}
BackgroundColor: {R: 0, G: 0, B: 0, A: 0}
DrawLayerNumber: 2
Margin: {}
MaximumWidth: 3.4028235E+38
MaximumHeight: 3.4028235E+38
MaximumDepth: 3.4028235E+38
Name: ImageButton
Content: !ImageElement ref!! d72438f4-221d-4c3e-add6-e08dbe9438c0
PressedImage: !SpriteFromSheet
Sheet: 1be3340c-b797-4557-bff7-d9be92dfdb42:StrideUIDesigns
CurrentFrame: 2
NotPressedImage: !SpriteFromSheet
Sheet: 1be3340c-b797-4557-bff7-d9be92dfdb42:StrideUIDesigns
CurrentFrame: 1
MouseOverImage: !SpriteFromSheet
Sheet: 1be3340c-b797-4557-bff7-d9be92dfdb42:StrideUIDesigns
- UIElement: !Grid
Id: 6cd6e3e2-57ac-4134-877e-e31f955e18b1
DependencyProperties: {}
BackgroundColor: {R: 0, G: 0, B: 0, A: 0}
Margin: {}
MaximumWidth: 3.4028235E+38
MaximumHeight: 3.4028235E+38
MaximumDepth: 3.4028235E+38
Children:
5e31eb4a7fecd121f5d952facc4cb26a: !ImageElement ref!! d672f0a1-aec8-4941-8ccb-3af43cc7a9c9
5d70f5894e91fe53c280315e27edbfb8: !TextBlock ref!! cee24557-d491-4870-9945-675faecdaa33
RowDefinitions: {}
ColumnDefinitions:
69e46426ded722ae9e4e5aad700b7150:
Type: Auto
951db187d38307c7d212963067f420db: {}
LayerDefinitions: {}
- UIElement: !Button
Id: c1d5b828-b110-4558-8285-f82c0144f2a1
DependencyProperties: {}
BackgroundColor: {R: 0, G: 0, B: 0, A: 0}
DrawLayerNumber: 2
Width: 294.0
Height: 83.0
HorizontalAlignment: Left
VerticalAlignment: Top
Margin: {}
MaximumWidth: 3.4028235E+38
MaximumHeight: 3.4028235E+38
MaximumDepth: 3.4028235E+38
Name: ImageTextButton
Content: !Grid ref!! 6cd6e3e2-57ac-4134-877e-e31f955e18b1
PressedImage: !SpriteFromSheet
Sheet: 1be3340c-b797-4557-bff7-d9be92dfdb42:StrideUIDesigns
CurrentFrame: 2
NotPressedImage: !SpriteFromSheet
Sheet: 1be3340c-b797-4557-bff7-d9be92dfdb42:StrideUIDesigns
CurrentFrame: 1
MouseOverImage: !SpriteFromSheet
Sheet: 1be3340c-b797-4557-bff7-d9be92dfdb42:StrideUIDesigns
- UIElement: !TextBlock
Id: cee24557-d491-4870-9945-675faecdaa33
DependencyProperties:
bc19fd758172b935b1485dd9c79412f8~GridBase.ColumnPropertyKey: 1
BackgroundColor: {R: 0, G: 0, B: 0, A: 0}
HorizontalAlignment: Center
VerticalAlignment: Center
Margin: {}
MaximumWidth: 3.4028235E+38
MaximumHeight: 3.4028235E+38
MaximumDepth: 3.4028235E+38
Text: image button
Font: c90f3988-0544-4cbe-993f-13af7d9c23c6:StrideDefaultFont
TextSize: 20.0
TextColor: {R: 240, G: 240, B: 240, A: 255}
- UIElement: !ImageElement
Id: d672f0a1-aec8-4941-8ccb-3af43cc7a9c9
DependencyProperties: {}
BackgroundColor: {R: 0, G: 0, B: 0, A: 0}
HorizontalAlignment: Left
Margin: {}
MaximumWidth: 3.4028235E+38
MaximumHeight: 3.4028235E+38
MaximumDepth: 3.4028235E+38
Source: !SpriteFromTexture
Texture: 975b40ad-3cec-4072-a999-688e08e30599:stride-logo
Center: {X: 0.0, Y: 0.0}
Color: {R: 255, G: 255, B: 255, A: 255}
- UIElement: !ImageElement
Id: d72438f4-221d-4c3e-add6-e08dbe9438c0
DependencyProperties: {}
BackgroundColor: {R: 0, G: 0, B: 0, A: 0}
Margin: {}
MaximumWidth: 3.4028235E+38
MaximumHeight: 3.4028235E+38
MaximumDepth: 3.4028235E+38
Source: !SpriteFromTexture
Texture: 975b40ad-3cec-4072-a999-688e08e30599:stride-logo
Center: {X: 0.0, Y: 0.0}
Color: {R: 255, G: 255, B: 255, A: 255}
7 changes: 7 additions & 0 deletions Doprez.Stride/Assets/stride-logo.sdtex
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
!Texture
Id: 975b40ad-3cec-4072-a999-688e08e30599
SerializedVersion: {Stride: 2.0.0.0}
Tags: []
Source: !file ../../../../../Users/User/Pictures/stride-logo.png
Type: !ColorTextureType
ColorKeyColor: {R: 255, G: 0, B: 255, A: 255}
2 changes: 1 addition & 1 deletion Doprez.Stride/Doprez.Stride.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<NeutralLanguage>en-CA</NeutralLanguage>
<RepositoryUrl>https://github.com/Doprez/Doprez.Stride</RepositoryUrl>
<PackageProjectUrl>https://github.com/Doprez/Doprez.Stride</PackageProjectUrl>
<Version>1.2.4</Version>
<Version>1.2.5</Version>
<Description>A package of helper classes for use in the Stride Game Engine</Description>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageTags>Stride3d;Game Engine;Stride;</PackageTags>
Expand Down
6 changes: 4 additions & 2 deletions Doprez.Stride/Doprez.Stride.sdpkg
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
SerializedVersion: {Assets: 3.1.0.0}
Meta:
Name: Doprez.Stride
Version: 1.2.0
Version: 1.2.5
Authors: []
Owners: []
Dependencies: null
Expand All @@ -14,4 +14,6 @@ OutputGroupDirectories: {}
ExplicitFolders: []
Bundles: []
TemplateFolders: []
RootAssets: []
RootAssets:
- 975b40ad-3cec-4072-a999-688e08e30599:stride-logo
- a648d679-c82a-4193-a2db-59cb4c0e8c72:ExtendedButtons

0 comments on commit 9ae33da

Please sign in to comment.