DinoDevs / GladiatusCrazyAddon

This was "A browser addon for the Gladiatus browser game."
https://gladiatus.dinodevs.com
GNU General Public License v3.0
41 stars 29 forks source link

Low health warning #84 #437

Closed FrutyX closed 1 year ago

FrutyX commented 1 year ago

@GramThanos @GreatApo I don't know which one of you is available and lurking, this is basically complete, it only doesn't contain gca_notifications.browser and I am sure you would rather use that, but I wasn't been able to make it work, for some reason, and I got tired of trying to make it work, so I did it the clean javascript way, you probably want to change it...

GramThanos commented 1 year ago

Regarding the browser notifications, your browser is blocking them. There should be an icon somewhere around the address bar that if you click it, it will ask you to allow notifications.

FrutyX commented 1 year ago

Regarding the browser notifications, your browser is blocking them. There should be an icon somewhere around the address bar that if you click it, it will ask you to allow notifications.

Eh, no? My solution is working, GCA solution wasn't, but that's not GCA's fault, I haven't coded it properly.

It's weird tho, that I put the same gca_notifications.browser code in my console, and I got a notification, but it did not worked in the feature... and gca_notifications.error did, but like I said, probably just badly coded.

FrutyX commented 1 year ago

@GramThanos thank you for the cleanup btw, I try to fix it next time... I don't know why Git has 8 default and Notepad++ 4 default, I haven't changed it.

FrutyX commented 1 year ago

@GramThanos You avoid coding like a cat is avoiding water 💧 😆

FrutyX commented 1 year ago

...or like I avoid my responsibilities aware

GramThanos commented 1 year ago

:P

FrutyX commented 1 year ago

I'll wait for the greater brother... haha.

FrutyX commented 1 year ago

If I just do this: gca_notifications.browser(false, gca_locale.get("global", "health_notification") + " " + gca_options.get("global", "health_warning") + "%!");

and put it in my console, it normally pops up, but if I put it in the function, it doesn't work. Once again I am missing a puzzle piece.

SleepingShadow-bit commented 1 year ago

Hello, instead of a browser popup, a kind of click block would also be conceivable? Above a certain HP value, the Expi / dungeon / arena buttons will be greyed out

FrutyX commented 1 year ago

That is also possible, but I have to handle the problem above first. Then I will see what can be done.

SleepingShadow-bit commented 1 year ago

Understood. Was a short inspiration =)

FrutyX commented 1 year ago

Since there is a shortage for developers, and I have already another project waiting, I did some little improvements to the notification (without using gca func then) and I am now merging this.

GreatApo commented 1 year ago

The browser notifications were used to that you can get a notification while you are not on the Gladiatus page, however the heath is mainly updated if you manually refresh the page, were you can see the in page notification anyway... so I don't see how this is helpful... am I missing the goal?

FrutyX commented 1 year ago

Actually I don't care, I only know that Thanos usually reworks something if gca had already a tool for this (in this case it's gca_notifications.browser), but that did not worked for me, so I just did it the normal javascript way, there isn't really a problem with it, it's just not using the gca function that was meant to do this, but there is no real loss, I think.

GreatApo commented 1 year ago

I thought you would know by know that only my stuff are always working XD

FrutyX commented 1 year ago

I've heard the same from a guy that... almost looked like your brother 😄

GreatApo commented 1 year ago

Thanos code is like a poem. Sometimes it makes sense, others it doesn't, but most of the time people are trying to find a meaning :P

GramThanos commented 1 year ago

You could have stopped at poem.

FrutyX commented 1 year ago

Haha.