[v7.6] [INTERNATIONAL] [johnbl] MinimapCursorPlugin menu

User Tag List

Page 1 of 2 12 LastLast
Results 1 to 15 of 16
  1. #1
    johnbl's Avatar Active Member
    Reputation
    33
    Join Date
    Dec 2016
    Posts
    129
    Thanks G/R
    347/16
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [v7.6] [INTERNATIONAL] [johnbl] MinimapCursorPlugin

    All credits go to User5981. I just extracted the part of his HuntersVengeancePlugin that draws a cursor on the minimap and exposed the configuration.
    Here's what it looks like:
    [v7.6] [INTERNATIONAL] [johnbl] MinimapCursorPlugin-minimapcursor-png

    Download: MinimapCursorPlugin.cs

    Install:
    Save as plugins/johnbl/MinimapCursorPlugin.cs

    Customization:
    Default theme customization 101

    Settings (paste this in the Customization part of User/PluginEnablerOrDisablerPlugin.cs):
    PHP Code:
    // Settings for Minimap Cursor Plugin
    Hud.RunOnPlugin<johnbl.MinimapCursorPlugin>(plugin => 

        
    plugin.ShowInTown true;
        
    plugin.MiniMapVisorDecorator = new WorldDecoratorCollection(
        new 
    MapShapeDecorator(Hud)
        {
            
    Brush Hud.Render.CreateBrush(2552552552551), // Alpha, Red, Green, Blue, Width
            
    ShapePainter = new PlusShapePainter(Hud), // List of shapes in plugins\Default\ShapePainters
            
    Radius 15,
        },
       
        new 
    MapShapeDecorator(Hud)
        {
            
    Brush Hud.Render.CreateBrush(2552552552551),
            
    ShapePainter = new CircleShapePainter(Hud),
            
    Radius 10,
        }
        ); 
    });  
    // End of Settings for Minimap Cursor Plugin 
    Last edited by johnbl; 11-29-2017 at 05:48 PM. Reason: Fixed for proper customization. Thanks Jack and gjuz.

    [v7.6] [INTERNATIONAL] [johnbl] MinimapCursorPlugin
  2. Thanks (Sarge) (1 members gave Thanks to johnbl for this useful post)
  3. #2
    Csavo's Avatar Active Member
    Reputation
    30
    Join Date
    Mar 2017
    Posts
    121
    Thanks G/R
    17/29
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm not sure what this plugin does exactly

  4. #3
    MrOne's Avatar Contributor
    Reputation
    163
    Join Date
    Mar 2017
    Posts
    322
    Thanks G/R
    66/141
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Csavo View Post
    I'm not sure what this plugin does exactly
    Show on minimap position of your ingame cursor.

    Really good plugin but play with it 2hr and im little confused. With more time im probably get used to and will be better

  5. #4
    johnbl's Avatar Active Member
    Reputation
    33
    Join Date
    Dec 2016
    Posts
    129
    Thanks G/R
    347/16
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Csavo View Post
    I'm not sure what this plugin does exactly
    As MrOne said, it shows the position of your mouse cursor on the minimap. I noticed that I look more at the minimap than the actual screen when doing fast runs, so being able to see where the mouse is pointed without looking at the screen is very useful for me.
    Last edited by johnbl; 11-29-2017 at 08:25 AM.

  6. #5
    gjuz's Avatar Contributor
    Reputation
    121
    Join Date
    Mar 2017
    Posts
    228
    Thanks G/R
    49/118
    Trade Feedback
    0 (0%)
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by johnbl View Post
    Settings (paste this in the Customization part of User/PluginEnablerOrDisablerPlugin.cs):
    PHP Code:
        // Settings for Minimap Cursor Plugin
        
    Hud.RunOnPlugin<johnbl.MinimapCursorPlugin>(plugin => 
        { 
            
    plugin.PlusSize 10;
            
    plugin.PlusAlpha 255;
            
    plugin.PlusRed 255;
            
    plugin.PlusGreen 255;
            
    plugin.PlusBlue 255;
            
    plugin.PlusWidth 1f;
            
    plugin.CircleSize 5;
            
    plugin.CircleAlpha 255;
            
    plugin.CircleRed 255;
            
    plugin.CircleGreen 255;
            
    plugin.CircleBlue 255;
            
    plugin.CircleWidth 1f;
        });  
        
    // End of Settings for Minimap Cursor Plugin 

    your discribed settings will not work, because the variables are used during "loadingTime" of Hud.
    "customization time" is after "loading time", but the values are never used after "loading time"

    use:
    PHP Code:
    Hud.RunOnPlugin<johnbl.MinimapCursorPlugin>(plugin => {
        
    //plus
        
    (plugin.MiniMapVisorDecorator.Decorators[0] as MapShapeDecorator).Brush Hud.Render.CreateBrush(Alpha,Red,Green,Blue,Width);
        
    //circle
        
    (plugin.MiniMapVisorDecorator.Decorators[1] as MapShapeDecorator).Brush Hud.Render.CreateBrush(Alpha,Red,Green,Blue,Width);
    }); 

    greetz gjuz

  7. #6
    johnbl's Avatar Active Member
    Reputation
    33
    Join Date
    Dec 2016
    Posts
    129
    Thanks G/R
    347/16
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for the heads up gjuz. Can I just move MiniMapVisorDecorator into the PaintWorld function? That way my customization code works, but I don't know if there are other consequences.

  8. #7
    JackCeparou's Avatar Savvy ? 🐒
    Reputation
    534
    Join Date
    Mar 2017
    Posts
    588
    Thanks G/R
    51/490
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by johnbl View Post
    Thanks for the heads up gjuz. Can I just move MiniMapVisorDecorator into the PaintWorld function? That way my customization code works, but I don't know if there are other consequences.
    You should avoid creating brushes/fonts inside the paint method.
    This would lead to heavy memory usage.(paint methods run more than 60 times per second and Load is only run once ;p)
    Hide the Rum! --> Default theme customization 101 <--

  9. Thanks johnbl (1 members gave Thanks to JackCeparou for this useful post)
  10. #8
    johnbl's Avatar Active Member
    Reputation
    33
    Join Date
    Dec 2016
    Posts
    129
    Thanks G/R
    347/16
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I was afraid of something like that.

    If I create a secondary method, let's say public SetMiniMapDecorator() and put the creation of the decorator inside it, would it work?

  11. #9
    JackCeparou's Avatar Savvy ? 🐒
    Reputation
    534
    Join Date
    Mar 2017
    Posts
    588
    Thanks G/R
    51/490
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well, you can do that and tell your users to make a call to it after changing other values like
    PHP Code:
    Hud.RunOnPlugin<MinimapCursorPlugin>(plugin => {
       
    plugin.PlusSize 42;
    //other custom values
      
    plugin.SetMiniMapDecorator();
    }); 
    Or simply let users redefine the whole decorator collection :
    PHP Code:
    Hud.RunOnPlugin<MinimapCursorPlugin>(plugin => {
        
    plugin.MiniMapVisorDecorator = new WorldDecoratorCollection(
                new 
    MapShapeDecorator(Hud)
                {
                    
    Brush Hud.Render.CreateBrush(2552552552551),
                    
    ShapePainter = new PlusShapePainter(Hud),
                    
    Radius 15,
                },
               
                new 
    MapShapeDecorator(Hud)
                {
                    
    Brush Hud.Render.CreateBrush(2552552552551),
                    
    ShapePainter = new CircleShapePainter(Hud),
                    
    Radius 10,
                }
                );
    }); 
    Hide the Rum! --> Default theme customization 101 <--

  12. Thanks johnbl (1 members gave Thanks to JackCeparou for this useful post)
  13. #10
    SeaDragon's Avatar Contributor
    Reputation
    321
    Join Date
    Aug 2016
    Posts
    1,041
    Thanks G/R
    140/299
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I made this mistake, causing a serious memory leak

  14. #11
    gjuz's Avatar Contributor
    Reputation
    121
    Join Date
    Mar 2017
    Posts
    228
    Thanks G/R
    49/118
    Trade Feedback
    0 (0%)
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by johnbl View Post
    I was afraid of something like that.

    If I create a secondary method, let's say public SetMiniMapDecorator() and put the creation of the decorator inside it, would it work?
    yes you can do that. i would call that method init(), with a boolean to set if init() was called once in paintworld
    or jacks version


    greetz gjuz

  15. #12
    VociferateOne's Avatar Member
    Reputation
    6
    Join Date
    Dec 2017
    Posts
    37
    Thanks G/R
    3/5
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I can't seem to get this to work on HC mode, have I fucked something up?

  16. #13
    johnbl's Avatar Active Member
    Reputation
    33
    Join Date
    Dec 2016
    Posts
    129
    Thanks G/R
    347/16
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have no idea because I don't have any free character slots to create a new HC character.
    But I can't find anything in the code restricting it to SC.

    Is it working for you on SC?

  17. #14
    ADV2015's Avatar Member
    Reputation
    6
    Join Date
    Mar 2017
    Posts
    94
    Thanks G/R
    147/5
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi,
    Nice plugin, i love it...

    My question:

    How to make sure that the cursor is in front of all other information on the minimap because when there are elite blue and orange, we no longer see the cursor !

    Thanks

  18. #15
    johnbl's Avatar Active Member
    Reputation
    33
    Join Date
    Dec 2016
    Posts
    129
    Thanks G/R
    347/16
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by ADV2015 View Post
    Hi,
    Nice plugin, i love it...

    My question:

    How to make sure that the cursor is in front of all other information on the minimap because when there are elite blue and orange, we no longer see the cursor !

    Thanks
    Some analysis has to be made on the Elite/Unique monsters plugin.
    Do you know if it's possible to set the alpha value for those?
    If yes, you could try to set it to a slightly lower value than what you're using for the cursor.

Page 1 of 2 12 LastLast

Similar Threads

  1. [v7.2] [INTERNATIONAL] [glq] MonsterRiftProgressionPlugin
    By SeaDragon in forum TurboHUD Community Plugins
    Replies: 23
    Last Post: 09-07-2021, 04:46 AM
  2. [V7.2][International][Grischu] Override for InventoryAndStashPlugin.cs
    By Grischu in forum TurboHUD Community Plugins
    Replies: 27
    Last Post: 05-21-2019, 08:32 PM
  3. [v7.2] [INTERNATIONAL] [Jack] ItemDropSoundAlertPlugin
    By JackCeparou in forum TurboHUD Community Plugins
    Replies: 22
    Last Post: 07-17-2017, 08:27 PM
  4. [V7.2][International][Grischu] Buffstatistics
    By Grischu in forum TurboHUD Community Plugins
    Replies: 20
    Last Post: 04-05-2017, 02:27 AM
All times are GMT -5. The time now is 04:36 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search