avm2: Stub Graphics.beginGradientFill
This commit is contained in:
parent
9dd0914bda
commit
919b38f20b
|
@ -90,6 +90,16 @@ fn begin_bitmap_fill<'gc>(
|
||||||
Ok(Value::Undefined)
|
Ok(Value::Undefined)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Implements `Graphics.beginGradientFill`.
|
||||||
|
fn begin_gradient_fill<'gc>(
|
||||||
|
_activation: &mut Activation<'_, 'gc, '_>,
|
||||||
|
_this: Option<Object<'gc>>,
|
||||||
|
_args: &[Value<'gc>],
|
||||||
|
) -> Result<Value<'gc>, Error<'gc>> {
|
||||||
|
log::warn!("Graphics.beginGradientFill: not yet implemented");
|
||||||
|
Ok(Value::Undefined)
|
||||||
|
}
|
||||||
|
|
||||||
/// Implements `Graphics.clear`
|
/// Implements `Graphics.clear`
|
||||||
fn clear<'gc>(
|
fn clear<'gc>(
|
||||||
activation: &mut Activation<'_, 'gc, '_>,
|
activation: &mut Activation<'_, 'gc, '_>,
|
||||||
|
@ -799,6 +809,7 @@ pub fn create_class<'gc>(mc: MutationContext<'gc, '_>) -> GcCell<'gc, Class<'gc>
|
||||||
const PUBLIC_INSTANCE_METHODS: &[(&str, NativeMethodImpl)] = &[
|
const PUBLIC_INSTANCE_METHODS: &[(&str, NativeMethodImpl)] = &[
|
||||||
("beginFill", begin_fill),
|
("beginFill", begin_fill),
|
||||||
("beginBitmapFill", begin_bitmap_fill),
|
("beginBitmapFill", begin_bitmap_fill),
|
||||||
|
("beginGradientFill", begin_gradient_fill),
|
||||||
("clear", clear),
|
("clear", clear),
|
||||||
("curveTo", curve_to),
|
("curveTo", curve_to),
|
||||||
("endFill", end_fill),
|
("endFill", end_fill),
|
||||||
|
|
Loading…
Reference in New Issue