Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / DrawEllipse with Alpha Issue

Author
Message
PartTimeCoder
AGK Tool Maker
9
Years of Service
User Offline
Joined: 9th Mar 2015
Location: London UK
Posted: 17th Nov 2021 00:00 Edited at: 17th Nov 2021 00:00
Remind me, Sure this was mentioned as fixed in a patch note?



Open Source plugins
Cl - DnD Plugin
Buy Me A Coffee

Attachments

Login to view attachments
PartTimeCoder
AGK Tool Maker
9
Years of Service
User Offline
Joined: 9th Mar 2015
Location: London UK
Posted: 17th Nov 2021 00:47 Edited at: 17th Nov 2021 00:48
Yeah the internal drawing calculations are off, I got rid of the lines by adding a 1 pixel offset to the internal drawing commands but the top and bottom is drawn, then in another pass the sides are drawn overlapping what's already been drawn adding to the alpha, thus causing the box ....





@TGC, The commented code at the bottom of the function does work (again with adding pixel offset in the Y, any reason why it was commented and replaced with broken code?

Open Source plugins
Cl - DnD Plugin
Buy Me A Coffee

Attachments

Login to view attachments
Virtual Nomad
Moderator
18
Years of Service
Recently Online
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 17th Nov 2021 01:00 Edited at: 17th Nov 2021 01:04
PartTimeCoder
AGK Tool Maker
9
Years of Service
User Offline
Joined: 9th Mar 2015
Location: London UK
Posted: 17th Nov 2021 01:08 Edited at: 17th Nov 2021 01:10
Ah, that was it maybe, I remember the post, knew I remembered something about it, anyhow, I fixed it and pushed it to my repo

this is what I was after, nice procedural round buttons



Open Source plugins
Cl - DnD Plugin
Buy Me A Coffee

Attachments

Login to view attachments
PartTimeCoder
AGK Tool Maker
9
Years of Service
User Offline
Joined: 9th Mar 2015
Location: London UK
Posted: 17th Nov 2021 10:24 Edited at: 17th Nov 2021 10:25
Actually I stand corrected, there is an issue with that code when changing the window size it warps the shape slightly, didn't notice it at first but when I got something behind the drawing and max'ed the window it really shows.



Back to the drawing board...literally!
Open Source plugins
Cl - DnD Plugin
Buy Me A Coffee

Attachments

Login to view attachments
PartTimeCoder
AGK Tool Maker
9
Years of Service
User Offline
Joined: 9th Mar 2015
Location: London UK
Posted: 18th Nov 2021 08:14
Ah.... I am a utter moron, I was + on the size but not - on the position, it does work as intended, with my dodgy numbers it was supposed to look like that.

I am working up a more indepth example but this I will test and check everything!
Open Source plugins
Cl - DnD Plugin
Buy Me A Coffee

Login to post a reply

Server time is: 2024-04-25 06:09:11
Your offset time is: 2024-04-25 06:09:11