News:

BB code in posts seems to be working again!
I haven't turned on every single tag, so please let me know if there are any that are used/needed but not activated.

Main Menu

Custom line ends

Started by zhuravsky, October 31, 2023, 09:41:14 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

zhuravsky

Is there any way make custom line end with the behavior like standard ones.
In the attached file custom line end has a problem - size of line end goes to zero when line weight is 0 pt. Is it possible to fix this?

Surrogate


Yacine

#2
I will look later more in depth at that line end.
Meanwhile you could use the standard line end #20 which seem to be identical to your custom stuff.


----


I understood the zero-size problem, but what about the scaling is it wanted?
I'm thinking of using 2 different line ends depending on the size of the line.
If (line.weight<1,use(end2), use(end1))
Yacine

zhuravsky

Thanks to Yacine for an idea with "If (line.weight<1,use(end2), use(end1))"

Standard line end 20 is transparent in the middle, this is why I started playing with custom line ends.

Browser ID: smf (possibly_robot)
Templates: 4: index (default), Display (default), GenericControls (default), GenericControls (default).
Sub templates: 6: init, html_above, body_above, main, body_below, html_below.
Language files: 4: index+Modifications.english (default), Post.english (default), Editor.english (default), Drafts.english (default).
Style sheets: 4: index.css, attachments.css, jquery.sceditor.css, responsive.css.
Hooks called: 202 (show)
Files included: 34 - 1306KB. (show)
Memory used: 1058KB.
Tokens: post-login.
Cache hits: 13: 0.00227s for 26,767 bytes (show)
Cache misses: 2: (show)
Queries used: 15.

[Show Queries]