GUIAnnouncements
Moved
Total Downloads: 11,755 - First Release: Jul 13, 2015 - Last Update: Oct 20, 2017
- 5/5, 66 likes
-
JoeSheep updated GUI Announcements with a new update entry:
1.0.0
-
JoeSheep updated GUI Announcements with a new update entry:
1.0.1
-
JoeSheep updated GUI Announcements with a new update entry:
1.0.2
-
nice, thx for this
-
Great plugin
, using it for my own UI atm as I didn't understand the fadeOut feature
-
@DylanSMR
ThanksWhat plugin are you making? Or are you updating one of your current ones?
-
-
Hi Joe,
I'm trying to use GUIAnnouncements to automatically show an announcement whenever the helicopter spawns.
However I can't get it to work. Could you help me with this one?
I tried pasting in the code below, but I don't know how to make it use the console command:
Code:#region Entity Hooksvoid OnEntitySpawned(BaseNetworkable entity) { if (entity.ToString().Contains("/patrolhelicopter.prefab")) announce.announce("message goes here"); }#endregion
Thank you,
Michael -
If your calling it inside of the plugin itself(the gui plugin) then you call the create GUI plugin. From a different plugin you would have to reference it and call it like PluginName?.Call(hook name, Parameters)
-
If you are trying to have another plugin do that, then as DylanSMR said you will need to call the LoadMsgGui method in my plugin with a string called Msg which contains what you want it to say. I will probably add an option for helicopter announcements and airdrop announcements in the future. -
-
Thanks for the quick replies guys.
I'm going to try if I can get it to work with the extra info you posted. -
-
This actually worked. I think I've written "LoadMsg" instead of "LoadMsgGui".
Thank you guys!
Code:#region Entity Hooks// Helicopter spawn notification void OnEntitySpawned(BaseNetworkable entity) { if (entity.ToString().Contains("/patrolhelicopter.prefab")) LoadMsgGui("The patrol helicopter is spawning."); }#endregion
-
-
[DOUBLEPOST=1462314010,1462305493][/DOUBLEPOST]
Code:GetConfig("AnnouncementTextColor", "")
Code:Config["AnnouncementTextColor"] = "255 0 0 1";
-
@DylanSMR
I might do that as an option, but at the same time you can change colors through the console command using generic color names or hex codes like this:
Code:<color=#66FFFF>this text will be a shade of blue</color> <color=red>this text will be red</color>
-
-