コード例 #1
0
 private static void DrawSpotlightLabel(bool status)
 {
     API.SetTextFont(0);
     API.SetTextProportional(true);
     API.SetTextScale(0.0f, 0.3f);
     if (status)
     {
         API.SetTextColour(144, 238, 144, 255);
     }
     else
     {
         API.SetTextColour(238, 144, 144, 255);
     }
     API.SetTextDropshadow(0, 0, 0, 0, 255);
     API.SetTextEdge(1, 0, 0, 0, 255);
     API.SetTextDropShadow();
     API.SetTextOutline();
     API.SetTextEntry("STRING");
     API.AddTextComponentString("Spotlight: " + (status ? "ON" : "OFF"));
     API.SetTextRightJustify(Config.GetValueBool(Config.MESSAGE_RIGHT_ALIGNED, false));
     API.DrawText(0.005f, 0.480f);
 }