@@ -132,21 +132,47 @@ protected virtual void DrawProp()
132
132
}
133
133
serializedObject . TryDrawProperty ( "m_" + nameof ( m_baseInstance . fillColor ) , "FillColor" ) ;
134
134
135
- serializedObject . TryDrawProperty ( "m_" + nameof ( m_baseInstance . graphicPatternType ) , "Pattern " ) ;
135
+ serializedObject . TryDrawProperty ( "m_" + nameof ( m_baseInstance . graphicEffectType ) , "Effect " ) ;
136
136
EditorGUI . indentLevel ++ ;
137
- var patternType = m_baseInstance . graphicPatternType ;
138
- switch ( patternType )
137
+ var effectType = m_baseInstance . graphicEffectType ;
138
+ switch ( effectType )
139
139
{
140
- case SDFUI . PatternType . None :
140
+ case SDFUI . EffectType . None :
141
141
break ;
142
- case SDFUI . PatternType . Shiny :
143
- serializedObject . TryDrawProperty ( "m_" + nameof ( m_baseInstance . graphicPatternColor ) , "Color" ) ;
144
- serializedObject . TryDrawProperty ( "m_" + nameof ( m_baseInstance . graphicShinyWidth ) , "Width " ) ;
145
- serializedObject . TryDrawProperty ( "m_" + nameof ( m_baseInstance . graphicShinyAngle ) , "Angle " ) ;
146
- serializedObject . TryDrawProperty ( "m_" + nameof ( m_baseInstance . graphicShinyBlur ) , "Blur" ) ;
147
- serializedObject . TryDrawProperty ( "m_" + nameof ( m_baseInstance . graphicPatternOffset ) , "Offset" ) ;
142
+ case SDFUI . EffectType . Shiny :
143
+ serializedObject . TryDrawProperty ( "m_" + nameof ( m_baseInstance . graphicEffectColor ) , "Color" ) ;
144
+ serializedObject . TryDrawProperty ( "m_" + nameof ( m_baseInstance . graphicEffectAngle ) , "Angle " ) ;
145
+ serializedObject . TryDrawProperty ( "m_" + nameof ( m_baseInstance . graphicEffectShinyWidth ) , "Width " ) ;
146
+ serializedObject . TryDrawProperty ( "m_" + nameof ( m_baseInstance . graphicEffectShinyBlur ) , "Blur" ) ;
147
+ serializedObject . TryDrawProperty ( "m_" + nameof ( m_baseInstance . graphicEffectOffset ) , "Offset" ) ;
148
148
break ;
149
- case SDFUI . PatternType . Texture :
149
+ case SDFUI . EffectType . Pattern :
150
+ serializedObject . TryDrawProperty ( "m_" + nameof ( m_baseInstance . graphicEffectColor ) , "Color" ) ;
151
+ serializedObject . TryDrawProperty ( "m_" + nameof ( m_baseInstance . graphicEffectAngle ) , "Angle" ) ;
152
+
153
+ serializedObject . TryDrawProperty ( "m_" + nameof ( m_baseInstance . graphicEffectPatternTexture ) , "Texture" ) ;
154
+ serializedObject . TryDrawProperty ( "m_" + nameof ( m_baseInstance . graphicEffectPatternRow ) , "Row" ) ;
155
+
156
+ serializedObject . TryDrawProperty ( "m_" + nameof ( m_baseInstance . graphicEffectOffset ) , "Offset" ) ;
157
+ serializedObject . TryDrawProperty ( "m_" + nameof ( m_baseInstance . graphicEffectPatternScale ) , "Scale" ) ;
158
+
159
+ EditorGUILayout . BeginHorizontal ( ) ;
160
+ {
161
+ EditorGUILayout . LabelField ( "Params" ) ;
162
+ EditorGUILayout . BeginVertical ( ) ;
163
+ {
164
+ serializedObject . TryDrawPropertyNoLabel ( "m_" + nameof ( m_baseInstance . graphicEffectPatternParamsX ) ) ;
165
+ serializedObject . TryDrawPropertyNoLabel ( "m_" + nameof ( m_baseInstance . graphicEffectPatternParamsZ ) ) ;
166
+ }
167
+ EditorGUILayout . EndVertical ( ) ;
168
+ EditorGUILayout . BeginVertical ( ) ;
169
+ {
170
+ serializedObject . TryDrawPropertyNoLabel ( "m_" + nameof ( m_baseInstance . graphicEffectPatternParamsY ) ) ;
171
+ serializedObject . TryDrawPropertyNoLabel ( "m_" + nameof ( m_baseInstance . graphicEffectPatternParamsW ) ) ;
172
+ }
173
+ EditorGUILayout . EndVertical ( ) ;
174
+ }
175
+ EditorGUILayout . EndHorizontal ( ) ;
150
176
break ;
151
177
}
152
178
EditorGUI . indentLevel -- ;
@@ -170,27 +196,48 @@ protected virtual void DrawOutlineProp()
170
196
serializedObject . TryDrawProperty ( "m_" + nameof ( m_baseInstance . outlineInnerSoftness ) , "InnerSoftness" ) ;
171
197
serializedObject . TryDrawProperty ( "m_" + nameof ( m_baseInstance . outlineType ) , "Type" ) ;
172
198
173
- serializedObject . TryDrawProperty ( "m_" + nameof ( m_baseInstance . outlinePatternType ) , "Pattern " ) ;
199
+ serializedObject . TryDrawProperty ( "m_" + nameof ( m_baseInstance . outlineEffectType ) , "Effect " ) ;
174
200
175
201
EditorGUI . indentLevel ++ ;
176
- var patternType = m_baseInstance . outlinePatternType ;
177
- switch ( patternType )
202
+ var effectType = m_baseInstance . outlineEffectType ;
203
+ switch ( effectType )
178
204
{
179
- case SDFUI . PatternType . None :
205
+ case SDFUI . EffectType . None :
180
206
break ;
181
- case SDFUI . PatternType . Shiny :
182
- serializedObject . TryDrawProperty ( "m_" + nameof ( m_baseInstance . outlinePatternColor ) , "Color" ) ;
183
- serializedObject . TryDrawProperty ( "m_" + nameof ( m_baseInstance . outlineShinyWidth ) , "Width " ) ;
184
- serializedObject . TryDrawProperty ( "m_" + nameof ( m_baseInstance . outlineShinyAngle ) , "Angle " ) ;
185
- serializedObject . TryDrawProperty ( "m_" + nameof ( m_baseInstance . outlineShinyBlur ) , "Blur" ) ;
186
- serializedObject . TryDrawProperty ( "m_" + nameof ( m_baseInstance . outlinePatternOffset ) , "Offset" ) ;
207
+ case SDFUI . EffectType . Shiny :
208
+ serializedObject . TryDrawProperty ( "m_" + nameof ( m_baseInstance . outlineEffectColor ) , "Color" ) ;
209
+ serializedObject . TryDrawProperty ( "m_" + nameof ( m_baseInstance . outlineEffectAngle ) , "Angle " ) ;
210
+ serializedObject . TryDrawProperty ( "m_" + nameof ( m_baseInstance . outlineEffectShinyWidth ) , "Width " ) ;
211
+ serializedObject . TryDrawProperty ( "m_" + nameof ( m_baseInstance . outlineEffectShinyBlur ) , "Blur" ) ;
212
+ serializedObject . TryDrawProperty ( "m_" + nameof ( m_baseInstance . outlineEffectOffset ) , "Offset" ) ;
187
213
break ;
188
- case SDFUI . PatternType . Texture :
189
- serializedObject . TryDrawProperty ( "m_" + nameof ( m_baseInstance . outlinePatternColor ) , "Color" ) ;
190
- serializedObject . TryDrawProperty ( "m_" + nameof ( m_baseInstance . outlinePatternTexture ) , "Texture" ) ;
191
- serializedObject . TryDrawProperty ( "m_" + nameof ( m_baseInstance . outlinePatternTextureRow ) , "Row" ) ;
192
- serializedObject . TryDrawProperty ( "m_" + nameof ( m_baseInstance . outlinePatternTextureScale ) , "Scale" ) ;
193
- serializedObject . TryDrawProperty ( "m_" + nameof ( m_baseInstance . outlinePatternOffset ) , "Offset" ) ;
214
+ case SDFUI . EffectType . Pattern :
215
+ serializedObject . TryDrawProperty ( "m_" + nameof ( m_baseInstance . outlineEffectColor ) , "Color" ) ;
216
+ serializedObject . TryDrawProperty ( "m_" + nameof ( m_baseInstance . outlineEffectAngle ) , "Angle" ) ;
217
+
218
+ serializedObject . TryDrawProperty ( "m_" + nameof ( m_baseInstance . outlineEffectPatternTexture ) , "Texture" ) ;
219
+ serializedObject . TryDrawProperty ( "m_" + nameof ( m_baseInstance . outlineEffectPatternRow ) , "Row" ) ;
220
+
221
+ serializedObject . TryDrawProperty ( "m_" + nameof ( m_baseInstance . outlineEffectOffset ) , "Offset" ) ;
222
+ serializedObject . TryDrawProperty ( "m_" + nameof ( m_baseInstance . outlineEffectPatternScale ) , "Scale" ) ;
223
+
224
+ EditorGUILayout . BeginHorizontal ( ) ;
225
+ {
226
+ EditorGUILayout . LabelField ( "Params" ) ;
227
+ EditorGUILayout . BeginVertical ( ) ;
228
+ {
229
+ serializedObject . TryDrawPropertyNoLabel ( "m_" + nameof ( m_baseInstance . outlineEffectPatternParamsX ) ) ;
230
+ serializedObject . TryDrawPropertyNoLabel ( "m_" + nameof ( m_baseInstance . outlineEffectPatternParamsZ ) ) ;
231
+ }
232
+ EditorGUILayout . EndVertical ( ) ;
233
+ EditorGUILayout . BeginVertical ( ) ;
234
+ {
235
+ serializedObject . TryDrawPropertyNoLabel ( "m_" + nameof ( m_baseInstance . outlineEffectPatternParamsY ) ) ;
236
+ serializedObject . TryDrawPropertyNoLabel ( "m_" + nameof ( m_baseInstance . outlineEffectPatternParamsW ) ) ;
237
+ }
238
+ EditorGUILayout . EndVertical ( ) ;
239
+ }
240
+ EditorGUILayout . EndHorizontal ( ) ;
194
241
break ;
195
242
}
196
243
}
0 commit comments