I have yet to find a plugin that allows this or the capability to do so in game already .. Any way someone can add a text field for signs?
Solved Text on signs
Discussion in 'Plugin Requests' started by Sedate, May 18, 2015.
-
Players want to be able to place text on the signs again. So...
Does anyone think it's possible to create a plugin that IN COMBINATION with a web server using something like ImageMagik or something could:
- Allow a player to type a message that is then sent the message to the web server to create the PNG file and host it
- The plugin would then use methods from the SignArtist plugin to automatically place it on the sign in front of the player.
Is there a way for a plugin to create the PNG on the fly, store it and put that image on the sign.Last edited by a moderator: Oct 20, 2015 -
Use PHP to generate and output the image dynamically
-
Code:<?php // Set the content-type header('Content-type: image/png');// Create the image $im = imagecreatetruecolor(400, 30);// Create some colors $white = imagecolorallocate($im, 255, 255, 255); $grey = imagecolorallocate($im, 128, 128, 128); $black = imagecolorallocate($im, 0, 0, 0); imagefilledrectangle($im, 0, 0, 399, 29, $white);// The text to draw $text = 'Testing...'; // Replace path by your own font path $font = 'arial.ttf';// Add some shadow to the text imagettftext($im, 20, 0, 11, 21, $grey, $font, $text);// Add the text imagettftext($im, 20, 0, 10, 20, $black, $font, $text);// Using imagepng() results in clearer text compared with imagejpeg() imagepng($im); imagedestroy($im); ?>
-
hey
try this Sign Artist for Rust Experimental | Oxide -
Wulf Community Admin
-
I don't have time to do this from scratch so I just modified sign artist slightly.
Enjoy:
using UnityEngine; using System; using System.Reflection; using System.Collec - Pastebin.com
Type "/sil text "Whatever text you want" to use it. -
Cool Norn ! Anyway to use "\n" for carriage returns?
-