Jump to content

Title color problem

Closed 1.0.7 1.1.0

MTriper
MTriper

Posted

While adjusting the title color I came across a problem with it. When the status first appears, the text color is white. But if the status line is changed, the color becomes the one set at initialization. The problem is shown on the video.


 

using Oxide.Core.Plugins;

namespace Oxide.Plugins
{
    [Info("SSTest", "MTriper", "1.0.0")]
    class SSTest : RustPlugin
    {
        [PluginReference]
        Plugin SimpleStatus;

        private void OnServerInitialized()
        {
            SimpleStatus.Call("CreateStatus", this, "SSTest.Drop", "0.42 0.13 0.09 1", "Title", "0 0 0 1", "Text", "1 1 1 1", "assets/icons/close.png", "1 0.24 0.1 1");
        }

        [ChatCommand("tt")]
        void TEST(BasePlayer player)
        {
            SimpleStatus.Call("SetStatus", player.userID, "SSTest.Drop", 20);
            SimpleStatus.Call("SetStatusTitle", player.userID, "SSTest.Drop", "Test title");
            SimpleStatus.Call("SetStatusText", player.userID, "SSTest.Drop", "-99");
        }
    }
}

 

Mr01sam

Posted

Hello! Thanks for the bug report, I found the issue and will include it in the next update. I will DM you a version of the plugin with the fix so that you can confirm in the meantime.

Mr01sam

Posted

Changed Fixed In to Next Version

Mr01sam

Posted

Changed Status from Pending to Work in Progress

Mr01sam

Posted

Changed Status from Work in Progress to Closed

1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

103.5k

Files Sold

Total number of files sold.

2.1m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.