Hi there,
Does anyone know how to make a plugin that pops up a window (image hosted on my website) as a MOTD when someone joins the server? Like a plugin that lets you set the size of the image and centers it in the users' window.
I've tried to do some changes in the MOTDGui plugin by PaiN but I'm affraid my C# knowledge sucks too badTried some stuff I found on the unity wiki but no results.
Thanks in advance and I wish everyone a great day/evening!![]()
Solved Pop up image as MOTD
Discussion in 'Rust Discussion' started by MrSmid, Jul 19, 2015.
-
Replace the image url with the one from your server.
Attached Files:
-
-
crap wrong forum :-/
[DOUBLEPOST=1437332512][/DOUBLEPOST] -
Yeah and whats stopping you from doing that? You just need to modify:
"anchormin": "0.001 0.65",
"anchormax": "0.25 0.85"
http://docs.unity3d.com/ScriptReference/RectTransform.html -
I just noticed if I use ""type"":""Rect.Center"", the image centers! Thats pretty awesome
Just need to find out how to make it bigger, and then I think its fixed.
I will try the anchormin and anchormax settings, Im not sure if they work with the Rect.Center thingy, lets give it a shot
Thanks for helping me out by the way -
You do not have any problem of opacity on your url image ?
-
Not realy, just the size thats too small. Its not showing the full image.
-
-
need to change your anchormin anchormax and var (xmax xmin )
-
Yup I got it now
Anyone have an idea how to destroy the ui after x seconds?
[DOUBLEPOST=1437394196][/DOUBLEPOST]Allright I managed to find it, Ill post it in the plugin's forum -
mayve the best thing for you to do is to use the new Rules GUI from Pain. I'm sure that's what you need
-
Yeah it helped me out
I posted an edited version of the plugin in the MotdGUI forum topic, its working perfectly for me now!
http://www.gameofstones.eu/ingame/screenshot2.png
The 'final' result for my 1st server (some boxes with info in it).
http://www.gameofstones.eu/ingame/screenshot3.png
For my other server just a welcome text.Last edited by a moderator: Jul 20, 2015