예제 #1
0
        public void DoImageTest()
        {
            SaveImage("C:/Program Files (x86)/Steam/steamapps/common/Grand Theft Auto V/scripts/test2.png", ImageFormat.Png, "https://post.medicalnewstoday.com/wp-content/uploads/sites/3/2020/02/322868_1100-1100x628.jpg");

            MySprite = new GTA.UI.CustomSprite("C:/Program Files (x86)/Steam/steamapps/common/Grand Theft Auto V/scripts/test2.png", new SizeF(100, 100), new PointF(100, 100));

            IsDrawingSprite = true;

            //GTA.UI.Screen.ShowSubtitle(System.Reflection.Assembly.GetExecutingAssembly().Location);
            GTA.UI.Screen.ShowSubtitle("drawing sprite");
        }
예제 #2
0
        private void Group_Bar_Init()
        {
            GTA.UI.CustomSprite temp = new GTA.UI.CustomSprite(@"..\Grand Theft Auto V\Scripts\Be A Guide\UI\Base Sprites\GroupSatisfaction\18.png", new SizeF(180, 30), new PointF(1100f, 500f));
            customSprites_List.Clear();

            temp = Base_UI_Handler.instance.Update_Sprite(false, false, Base_UI_Handler.instance.Custom_Sprite_Collection_Hearts_Satisfaction, temp);
            customSprites_List.Add(temp);

            temp = Base_UI_Handler.instance.Update_Sprite(false, false, Base_UI_Handler.instance.Custom_Sprite_Collection_MedKit, temp);
            customSprites_List.Add(temp);

            temp = Base_UI_Handler.instance.Update_Sprite(false, false, Base_UI_Handler.instance.Custom_Sprite_Collection_Energy, temp);
            customSprites_List.Add(temp);

            temp = Base_UI_Handler.instance.Update_Sprite(false, false, Base_UI_Handler.instance.Custom_Sprite_Collection_Rating, temp);
            customSprites_List.Add(temp);
        }