Runtime Text! · borisblizzard/rive-runtime@7e2e70d · GitHub
Skip to content

Commit 7e2e70d

Browse files
author
luigi-rosso
committed
Runtime Text!
Not ready for review! But feel free to peek :) Starting to add support for runtime text. This is the bulk of the implementation marrying the Core objects to the text engine we've been working on at the runtime level. PRing in draft early to let tests run. Also refactors some class and file names to disambiguate more clearly with the Core objects. Diffs= 051769242 Runtime Text! (#4741)
1 parent 0998d90 commit 7e2e70d

72 files changed

Lines changed: 2034 additions & 67 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.rive_head

Lines changed: 1 addition & 1 deletion

dev/defs/animation/animation.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,16 @@
3333
},
3434
"description": "Order this animation shows up in the animations list.",
3535
"runtime": false
36+
},
37+
"folderId": {
38+
"type": "Id",
39+
"initialValue": "Core.missingId",
40+
"key": {
41+
"int": 282,
42+
"string": "folderid"
43+
},
44+
"description": "Id of the folder this animation belongs to",
45+
"runtime": false
3646
}
3747
}
3848
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"name": "AnimationFolder",
3+
"key": {
4+
"int": 143,
5+
"string": "animationfolder"
6+
},
7+
"extends": "animation/animation.json",
8+
"runtime": false
9+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"name": "KeyFrameString",
3+
"key": {
4+
"int": 142,
5+
"string": "keyframestring"
6+
},
7+
"extends": "animation/keyframe.json",
8+
"properties": {
9+
"value": {
10+
"type": "String",
11+
"typeRuntime": "String",
12+
"initialValue": "''",
13+
"key": {
14+
"int": 280,
15+
"string": "value"
16+
}
17+
}
18+
}
19+
}

dev/defs/animation/linear_animation.json

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,50 @@
101101
"description": "Viewport end in frames.",
102102
"runtime": false,
103103
"coop": false
104+
},
105+
"scrollOffset": {
106+
"type": "double",
107+
"initialValue": "0.0",
108+
"key": {
109+
"int": 256,
110+
"string": "scrolloffset"
111+
},
112+
"description": "Scroll offset of the key frame view",
113+
"runtime": false,
114+
"coop": false
115+
},
116+
"expandedComponents": {
117+
"type": "List<Id>",
118+
"initialValue": "[]",
119+
"key": {
120+
"int": 266,
121+
"string": "expandedcomponents"
122+
},
123+
"description": "List of components that are expanded on the timeline view",
124+
"runtime": false,
125+
"coop": false
126+
},
127+
"timelineMode": {
128+
"type": "uint",
129+
"initialValue": "0",
130+
"key": {
131+
"int": 275,
132+
"string": "timelinemode"
133+
},
134+
"description": "Edit time timeline mode",
135+
"runtime": false,
136+
"coop": false
137+
},
138+
"showSelected": {
139+
"type": "bool",
140+
"initialValue": "false",
141+
"key": {
142+
"int": 278,
143+
"string": "showselected"
144+
},
145+
"description": "Whether to only show selected components on the timeline hierarchy",
146+
"runtime": false,
147+
"coop": false
104148
}
105149
}
106150
}

dev/defs/animation/state_machine.json

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,72 @@
1616
"description": "Id of the currently editing layer.",
1717
"runtime": false,
1818
"coop": false
19+
},
20+
"isListenersPanelOpen": {
21+
"type": "bool",
22+
"initialValue": "false",
23+
"key": {
24+
"int": 250,
25+
"string": "islistenerspanelopen"
26+
},
27+
"description": "Toggle determining whether the listeners panel is open",
28+
"runtime": false,
29+
"coop": false
30+
},
31+
"isInputsPanelOpen": {
32+
"type": "bool",
33+
"initialValue": "false",
34+
"key": {
35+
"int": 251,
36+
"string": "isinputspanelopen"
37+
},
38+
"description": "Toggle determining whether the inputs panel is open",
39+
"runtime": false,
40+
"coop": false
41+
},
42+
"isConsolePanelOpen": {
43+
"type": "bool",
44+
"initialValue": "false",
45+
"key": {
46+
"int": 252,
47+
"string": "isconsolepanelopen"
48+
},
49+
"description": "Toggle determining whether the console panel is open",
50+
"runtime": false,
51+
"coop": false
52+
},
53+
"listenersPanelSize": {
54+
"type": "double",
55+
"initialValue": "200",
56+
"key": {
57+
"int": 253,
58+
"string": "listenerspanelsize"
59+
},
60+
"description": "Size of the listeners panel",
61+
"runtime": false,
62+
"coop": false
63+
},
64+
"inputsPanelSize": {
65+
"type": "double",
66+
"initialValue": "200",
67+
"key": {
68+
"int": 254,
69+
"string": "inputspanelsize"
70+
},
71+
"description": "Size of the inputs panel",
72+
"runtime": false,
73+
"coop": false
74+
},
75+
"consolePanelSize": {
76+
"type": "double",
77+
"initialValue": "200",
78+
"key": {
79+
"int": 255,
80+
"string": "consolepanelsize"
81+
},
82+
"description": "Size of the inputs panel",
83+
"runtime": false,
84+
"coop": false
1985
}
2086
}
2187
}

dev/defs/artboard.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,39 @@
9090
"string": "defaultStateMachineId"
9191
},
9292
"description": "The default StateMachine attached to this artboard automatically when it is initialized."
93+
},
94+
"animationsScrollOffset": {
95+
"type": "double",
96+
"initialValue": "0.0",
97+
"key": {
98+
"int": 257,
99+
"string": "animationsscrolloffset"
100+
},
101+
"description": "Scroll offset of the animation list",
102+
"runtime": false,
103+
"coop": false
104+
},
105+
"expandedComponents": {
106+
"type": "List<Id>",
107+
"initialValue": "[]",
108+
"key": {
109+
"int": 267,
110+
"string": "expandedcomponents"
111+
},
112+
"description": "List of expanded components",
113+
"runtime": false,
114+
"coop": false
115+
},
116+
"expandedAnimationFolders": {
117+
"type": "List<Id>",
118+
"initialValue": "[]",
119+
"key": {
120+
"int": 283,
121+
"string": "expandedanimationfolders"
122+
},
123+
"description": "List of expanded animation folders",
124+
"runtime": false,
125+
"coop": false
93126
}
94127
}
95128
}

dev/defs/assets/font_asset.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"name": "FontAsset",
3+
"key": {
4+
"int": 141,
5+
"string": "fontasset"
6+
},
7+
"extends": "assets/file_asset.json"
8+
}

dev/defs/assets/image_asset.json

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,27 @@
44
"int": 105,
55
"string": "imageasset"
66
},
7-
"extends": "assets/drawable_asset.json"
7+
"extends": "assets/drawable_asset.json",
8+
"properties": {
9+
"format": {
10+
"type": "uint",
11+
"initialValue": "0",
12+
"key": {
13+
"int": 241,
14+
"string": "format"
15+
},
16+
"description": "Image format we want to use for this assets's mutations",
17+
"runtime": false
18+
},
19+
"quality": {
20+
"type": "double",
21+
"initialValue": "0.75",
22+
"key": {
23+
"int": 242,
24+
"string": "quality"
25+
},
26+
"description": "Quality percentage for this image mutation",
27+
"runtime": false
28+
}
29+
}
830
}

dev/defs/assets/layer_image_asset.json

Lines changed: 6 additions & 3 deletions

0 commit comments

Comments
 (0)