-
Notifications
You must be signed in to change notification settings - Fork 0
Made the interface to exchange information from item to hero #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
ibrkhalil
wants to merge
7
commits into
develop
Choose a base branch
from
wallpaperDetailsOnFocus
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
60cb640
Made the interface to exchange information from item to hero
ibrkhalil fb2afc8
removed .vscode folder
ibrkhalil 8e4e167
removed .vscode folder
ibrkhalil 968d8a3
Added basic animations in the design provided by Mr. Hossam
ibrkhalil 3836106
replaced the global node with getScene()
ibrkhalil 5ff064b
Mr. Mostafa Changed applied
ibrkhalil af623fc
used events in fadeOutAnimationObserver
ibrkhalil File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,3 @@ | ||
| out/ | ||
| out/roku-deploy.zip | ||
| .vscode/ |
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,11 +1,25 @@ | ||
| sub init() | ||
| m.global.http.request = { payload: { | ||
| m.http = createObject("roSGNode", "httpTask") | ||
| m.http.request = { payload: { | ||
| userId: 1, | ||
| title: "WOW, IT WORKED ^_^", | ||
| }, url: "https://jsonplaceholder.typicode.com/albums", requestType: "GET"} | ||
| m.global.http.observeFieldScoped("response", "useResponse") | ||
| }, url: "https://alghool.net/RokuDev/data.json", requestType: "GET" } | ||
| m.http.control = "RUN" | ||
| m.http.observeFieldScoped("response", "populateRowList") | ||
| end sub | ||
|
|
||
| sub useResponse() | ||
| ?m.global.http.response | ||
| sub populateRowList() | ||
| for each item in m.http.response.body | ||
| itemNode = m.top.createChild("ContentNode") | ||
| itemNode.title = item.title | ||
| for each data in item.data | ||
| itemData = itemNode.createChild("ContentNode") | ||
| itemData.setFields({ | ||
| title: data.title | ||
| HDPosterURL: data.thumbnail | ||
| description: data.longDescription | ||
| }) | ||
| end for | ||
| m.top.appendChild(itemNode) | ||
| end for | ||
| end sub |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,27 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <component name="rowListScene" extends="Scene" initialFocus="mainRowList"> | ||
| <script type="text/brightscript" uri="rowListScene.brs" /> | ||
| <interface> | ||
| <field id="HeroDetails" type="assocarray" /> | ||
| </interface> | ||
| <children> | ||
| <Poster id="mainOverlay" opacity="1.0" uri="https://besthqwallpapers.com/Uploads/3-2-2018/39425/4k-material-design-art-lollipop-geometric-shapes.jpg" loadHeight="1080" loadWidth="1920" loadDisplayMode="limitSize"></Poster> | ||
| <Group id="heroDetailsId" translation="[50,0]" opacity="0.0"> | ||
| <Poster id="ProviderLogo" translation="[0,20]" /> | ||
| <Label id="MainBoldLabel" translation="[0,80]" width="540" wrap="true" maxLines="2" font="font:LargeBoldSystemFont" /> | ||
| <Label id="DateAndDurationLabel" translation="[0,160]" font="font:MediumBoldSystemFont" /> | ||
| <Label id="DescriptionLabel" translation="[0,210]" width="540" wrap="true" maxLines="2" font="font:MediumSystemFont" /> | ||
| <Label id="CategoryLabel" translation="[0,300]" font="font:LargeBoldSystemFont" /> | ||
| </Group> | ||
| <Animation id="fadeInAnimation" duration="0.4" repeat="false" easeFunction="linear"> | ||
| <Vector2DFieldInterpolator id="textAnimationInterp1" key="[0.0, 1.0]" keyValue="[ [60,0], [70,0] ]" fieldToInterp="heroDetailsId.translation" /> | ||
| <FloatFieldInterpolator id="textAnimationInterp2" key="[0.0 , 1.0]" keyValue="[ 0.0, 1 ]" fieldToInterp="heroDetailsId.opacity" /> | ||
| </Animation> | ||
| <Animation id="fadeOutAnimation" duration="0.4" repeat="false" easeFunction="linear"> | ||
| <Vector2DFieldInterpolator id="textAnimationInterp3" key="[0.0, 1.0]" keyValue="[ [70,0], [60,0] ]" fieldToInterp="heroDetailsId.translation" /> | ||
| <FloatFieldInterpolator id="textAnimationInterp4" key="[0.0 , 1.0]" keyValue="[ 1, 0.0 ]" fieldToInterp="heroDetailsId.opacity" /> | ||
| <FloatFieldInterpolator id="overlayAnimationInterp" key="[ 0.0, 0.25, 0.5, 0.75, 1 ]" keyValue="[ 1.0, 1.0, 1.0, 0.5, 0.0 ]" fieldToInterp="mainOverlay.opacity" /> | ||
| </Animation> | ||
| <RowList id="mainRowList" rowSpacings="[0.0]" focusXOffset="[-150.0]" translation="[ 0, 330 ]" rowLabelOffset="[[220.0,-6.0]]" itemComponentName="RowListItem" numRows="2" itemSize="[ 1608, 250 ]" rowItemSize="[ [368, 250] ]" rowHeights="[250.0]" vertFocusAnimationStyle="fixedFocusWrap" rowFocusAnimationStyle="fixedFocusWrap" showRowLabel="[true]" rowItemSpacing="[[0.0,0.0]]" drawFocusFeedback="false" rowLabelFont="font:LargeBoldSystemFont" /> | ||
| </children> | ||
| </component> | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.