Author Topic: shapescript: change border of native shape  (Read 3744 times)

bITs.EA

  • EA User
  • **
  • Posts: 80
  • Karma: +2/-0
    • View Profile
shapescript: change border of native shape
« on: January 18, 2017, 03:10:41 am »
Hi

Can anyone explain why the following code isn't working? (the native shape turns red, but the border doesn't change to "dashed")

Do I need to change the function "SetLineStyle"?

Code: [Select]
shape main{
SetLineStyle("dash");
SetFillColor(255,0,0);
DrawNativeShape();
}

Grts

S

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: shapescript: change border of native shape
« Reply #1 on: January 18, 2017, 04:32:18 am »
The DrawNativeShape draws what it says. The SetLineStyle only affects he LineTo and other drawing, but not the native shape.

q.

Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Re: shapescript: change border of native shape
« Reply #2 on: January 18, 2017, 10:43:29 pm »
It might be worth trying drawparentshape() instead.

According to the documentation, it "behaves identically to drawnativeshape() if no inherited shape script is available", but it's worth a shot.

/Uffe
My theories are always correct, just apply them to the right reality.