Facepunch / Rust.Community

Community Entity to fill Server Side modder requests
MIT License
46 stars 21 forks source link

Button improvements #60

Open DezLife opened 4 months ago

DezLife commented 4 months ago

Added functionality for opening external links in the UI and implemented URL checks

[!WARNING] I also suggest adding a confirmation dialog before navigating to external websites and a notification about the possibility that it might be a phishing site. These precautionary measures will provide additional protection to users and alert them to potential risks when navigating to external links. Similar warnings can also be implemented for the URL (server.url) button in the server window to ensure the security of using this feature.

the JSON representation

{
  "type":"UnityEngine.UI.Button",
  "url":"https://facepunch.com/",
  "normalColor": "1.0 1.0 1.0 1.0",
  "highlightColor": "1.0 1.0 1.0 1.0",
  "pressedColor": "0.78 0.78 0.78 1",
  "fadeDuration": 0.1,
},

Importance of These Innovations

Testing and Validation

Thanks @Kulltero for your help

DezLife commented 4 months ago

@ElChupos

I kindly ask you to pay attention to this and give some kind of answer. It's really scary that for the most part it's abandoned. A lot of people are trying to contribute to this.

This is really useful functionality. The developer has to force users to copy the link from Input and then go to the browser. I don't think it will take much of your time to consider this.

Mercury-devs commented 4 months ago

Oh, yes! I fully support this idea, it is a simple and extremely necessary solution for servers, administrators will thank you very much for this!

I hope this will appear in the near future!

VooDooC commented 4 months ago

Its a good idea, i think it should have been done a long time ago

ninco90 commented 4 months ago

Please implement this. It will be great to take users to our Discord, statistics page, rules page, donation store, tutorials, social networks... And not have to pass the URLs through notes.

To add some security and prevent very long urls from being entered with certain content in base64 or similar, I would recommend limiting the maximum number of characters that can be used in the url. Maybe 150 characters.

TurEduard commented 4 months ago

@DezLife, @ninco90, @VooDooC, @Mercury-devs. Friends. For the developers to hear us and add this to the game, we need to draw more attention to this issue. Need more comments and likes. Let's invite friends, acquaintances, players who also support this idea and vote or comment on this pull

DezLife commented 4 months ago

You could use a dialog box like the one in my screenshot to confirm the link. @ElChupos @Jake-Rich

AlexTrooper commented 4 months ago

Its really needed!

cashr17 commented 4 months ago

good idea, Its really needed!

devdaw6 commented 4 months ago

We have been waiting for this feature for a long time

setfps commented 4 months ago

oh! Voldemar! Its a super - puper idea! we need this!

DevS616 commented 4 months ago

That's what's really missing! I really hope that the developers will implement it! ❤️

lagzya-dev commented 4 months ago

Let`s go!

ItsTangerine commented 4 months ago

Awesome idea, would be cool to have such function approved. ☝️

ddfdf212 commented 4 months ago

Good idea!

PRESSFWD commented 4 months ago

best idea

codefling-0xf commented 4 months ago

Definitely a necessary feature, it will contribute to a more pleasant user experience.

greyghost1979 commented 4 months ago

best idea ever !!!

monstr1k commented 4 months ago

That's really what's missing!

mbedda commented 4 months ago

Would be a great addition.

megargan commented 4 months ago

This change will help many projects develop their community. Great change

DezLife commented 2 months ago

@ElChupos @Jake-Rich ?