[v7.3] [INTERNATIONAL] [Resu] UrshisGiftPlugin menu

User Tag List

Page 2 of 4 FirstFirst 1234 LastLast
Results 16 to 30 of 56
  1. #16
    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 gjuz View Post
    What's so twisted?
    Why not 'if (NumberOfAttempts <1 || NumberOfAttempts > 5) return;'?
    PHP Code:
    private HashSet<intAttempts = new HashSet<int> { 1234};
    ...
    if (!
    Attempts.Contains(NumberOfAttempts)) return; 
    Code duplication :
    PHP Code:
             if (item.SnoItem.Sno == 3249876973 && jewelRank == 100 ||   // 3249876973 - Esoteric Alteration
                    
    item.SnoItem.Sno == 3249984784 && jewelRank == 100 ||   // 3249984784 - Mutilation Guard
                    
    item.SnoItem.Sno == 3248762926 && jewelRank == 150 ||   // 3248762926 - Gogok of Swiftness
                    
    item.SnoItem.Sno == 3250883209 && jewelRank == 50 ||    // 3250883209 - Iceblink
                    
    item.SnoItem.Sno == 3249805099 && jewelRank == 50)      // 3249805099 - Boon of the Hoarder
                

    =>
    PHP Code:
    private bool IsMaxedGem(IItem itemint jewelRank)
            {
                switch (
    item.SnoItem.Sno)
                {
                    case 
    3248762926// 3248762926 - Gogok of Swiftness
                        
    return jewelRank == 150;
                    case 
    3249876973// 3249876973 - Esoteric Alteration
                    
    case 3249984784// 3249984784 - Mutilation Guard
                        
    return jewelRank == 100;
                    case 
    3250883209// 3250883209 - Iceblink
                    
    case 3249805099// 3249805099 - Boon of the Hoarder
                        
    return jewelRank == 50;
                    default:
                        return 
    false;
                }
            } 
    Why test GR level and adapt positionning when you can align right instead of left with 'layout.Metrics.Width'?
    PHP Code:
    if (GRlevel 100)
                {
                    var 
    layout GRupgradeChanceFont.GetTextLayout(text);
                    
    GRupgradeChanceFont.DrawText(layoutrect.33rect.33);
                }
                else if (
    GRlevel >= 100)
                {
                    var 
    layout GRupgradeChanceFont.GetTextLayout(text);
                    
    GRupgradeChanceFont.DrawText(layoutrect.27rect.33);
                } 
    =>
    PHP Code:
                    var layout GRupgradeChanceFont.GetTextLayout(text);
                    
    GRupgradeChanceFont.DrawText(layoutrect.Right layout.Metrics.Widthrect.33); 
    Just scratching the surface there ;p
    Hide the Rum! --> Default theme customization 101 <--

    [v7.3] [INTERNATIONAL] [Resu] UrshisGiftPlugin
  2. #17
    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 JackCeparou View Post
    Why not 'if (NumberOfAttempts <1 || NumberOfAttempts > 5) return;'?
    PHP Code:
    private HashSet<intAttempts = new HashSet<int> { 1234}; 
    whoa, i had this, and don' t know why i changed it.... phew i must have been very tired


    greetz gjuz

  3. #18
    User5981's Avatar First Dev On The Internet
    Reputation
    379
    Join Date
    Aug 2017
    Posts
    765
    Thanks G/R
    30/358
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by JackCeparou View Post

    Code duplication :
    PHP Code:
             if (item.SnoItem.Sno == 3249876973 && jewelRank == 100 ||   // 3249876973 - Esoteric Alteration
                    
    item.SnoItem.Sno == 3249984784 && jewelRank == 100 ||   // 3249984784 - Mutilation Guard
                    
    item.SnoItem.Sno == 3248762926 && jewelRank == 150 ||   // 3248762926 - Gogok of Swiftness
                    
    item.SnoItem.Sno == 3250883209 && jewelRank == 50 ||    // 3250883209 - Iceblink
                    
    item.SnoItem.Sno == 3249805099 && jewelRank == 50)      // 3249805099 - Boon of the Hoarder
                

    =>
    PHP Code:
    private bool IsMaxedGem(IItem itemint jewelRank)
            {
                switch (
    item.SnoItem.Sno)
                {
                    case 
    3248762926// 3248762926 - Gogok of Swiftness
                        
    return jewelRank == 150;
                    case 
    3249876973// 3249876973 - Esoteric Alteration
                    
    case 3249984784// 3249984784 - Mutilation Guard
                        
    return jewelRank == 100;
                    case 
    3250883209// 3250883209 - Iceblink
                    
    case 3249805099// 3249805099 - Boon of the Hoarder
                        
    return jewelRank == 50;
                    default:
                        return 
    false;
                }
            } 

    How to use this ?
    edit : I got it, thanks !


    Originally Posted by JackCeparou View Post

    Why test GR level and adapt positionning when you can align right instead of left with 'layout.Metrics.Width'?
    Just scratching the surface there ;p
    Now I know we can do this
    Code updated.
    Last edited by User5981; 09-13-2017 at 03:36 AM.

  4. #19
    Stormreaver's Avatar Contributor
    Reputation
    152
    Join Date
    Jul 2012
    Posts
    290
    Thanks G/R
    40/136
    Trade Feedback
    0 (0%)
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Told you ;P

  5. Thanks cherouvim13 (1 members gave Thanks to Stormreaver for this useful post)
  6. #20
    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)
    Hello everyone,

    I have a problem that I can not find the solution ...

    when the gems are in the trunk, the text is shifted upward

    Someone will have an idea?

    Gemm in stack
    [v7.3] [INTERNATIONAL] [Resu] UrshisGiftPlugin-05-png
    [v7.3] [INTERNATIONAL] [Resu] UrshisGiftPlugin-05-png

    Same gemm in inventory.
    [v7.3] [INTERNATIONAL] [Resu] UrshisGiftPlugin-03-png

    I don't understand....
    Last edited by ADV2015; 09-17-2017 at 09:47 AM.

  7. #21
    User5981's Avatar First Dev On The Internet
    Reputation
    379
    Join Date
    Aug 2017
    Posts
    765
    Thanks G/R
    30/358
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by ADV2015 View Post
    Hello everyone,

    I have a problem that I can not find the solution ...

    when the gems are in the trunk, the text is shifted upward

    Someone will have an idea?

    Gemm in stack
    [v7.3] [INTERNATIONAL] [Resu] UrshisGiftPlugin-05-png

    Same gemm in inventory.
    [v7.3] [INTERNATIONAL] [Resu] UrshisGiftPlugin-03-png

    I don't understand....
    I have it good in stash and too bottom / right in the inventory.
    probably a TurboHUD display bug...
    what is your screen resolution ?

  8. #22
    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,
    My resolution --> 1920x1080

    maybe another plugin creates a bug !!! Edit: NO, I tested it alone...
    Last edited by ADV2015; 09-17-2017 at 09:56 AM.

  9. #23
    User5981's Avatar First Dev On The Internet
    Reputation
    379
    Join Date
    Aug 2017
    Posts
    765
    Thanks G/R
    30/358
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by ADV2015 View Post
    Hi,
    My resolution --> 1920x1080
    it only happens on square 1*1 items.
    if the same happens with the DrawItemLooksGood option it's a TurboHUD display bug and there is nothing I can do.

    if you want to test it :
    PluginEnablerOrDisablerPlugin :
    PHP Code:
    Hud.GetPlugin<InventoryAndStashPlugin>().LooksGoodDisplayEnabled true
    Originally Posted by ADV2015 View Post
    maybe another plugin creates a bug !!!
    The chance is low...
    Last edited by User5981; 09-17-2017 at 10:00 AM.

  10. #24
    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)
    Tested but nothing !!!

  11. #25
    User5981's Avatar First Dev On The Internet
    Reputation
    379
    Join Date
    Aug 2017
    Posts
    765
    Thanks G/R
    30/358
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by ADV2015 View Post
    Tested but nothing !!!
    inventory :
    [v7.3] [INTERNATIONAL] [Resu] UrshisGiftPlugin-inventory-png

    stash :
    [v7.3] [INTERNATIONAL] [Resu] UrshisGiftPlugin-stash-png

    I will look at this when I have time.

  12. Thanks ADV2015 (1 members gave Thanks to User5981 for this useful post)
  13. #26
    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)
    For information, my D3 is in French...

  14. #27
    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)
    Hi,
    PHP Code:
    bool Max IsMaxedGem(itemjewelRank);
    if (
    Max) {...}
    else {...} 
    Max is only used here, you can change to
    PHP Code:
    if (IsMaxedGem(itemjewelRank)) {...}
    else {...} 
    Originally Posted by ADV2015 View Post
    Gemm in stack
    [v7.3] [INTERNATIONAL] [Resu] UrshisGiftPlugin-05-png
    [v7.3] [INTERNATIONAL] [Resu] UrshisGiftPlugin-05-png

    Same gemm in inventory.
    [v7.3] [INTERNATIONAL] [Resu] UrshisGiftPlugin-03-png
    i use:
    PHP Code:
    GRupgradeChanceFont.DrawText(layoutrect.Right layout.Metrics.Width 8rect.33); 
    for 1920x1080 relosution. u can set a public variable to set 8 via "PluginEnablerOrDisablerPlugin"


    greetz gjuz

  15. #28
    User5981's Avatar First Dev On The Internet
    Reputation
    379
    Join Date
    Aug 2017
    Posts
    765
    Thanks G/R
    30/358
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Updated!
    This version probably fixes the display bug for every resolution, please report, thanks !

    for gjuz : I only changed that :
    PHP Code:
    GRupgradeChanceFont.DrawText(layoutrect.Right layout.Metrics.Widthrect.Bottom layout.Metrics.Height); 
    Last edited by User5981; 09-18-2017 at 09:58 AM.

  16. #29
    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 User5981 View Post
    Updated!
    This version probably fixes the display bug for every resolution, please report, thanks !

    for gjuz : I only changed that :
    PHP Code:
    GRupgradeChanceFont.DrawText(layoutrect.Right layout.Metrics.Widthrect.Bottom layout.Metrics.Height); 
    yes this is bottom right corner, i like a little border

    greetz gjuz

  17. #30
    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)
    Yes, fixed, all good !

    Thanks a lot !

Page 2 of 4 FirstFirst 1234 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.3] [INTERNATIONAL] [Resu] ParagonPercentagePlugin
    By User5981 in forum TurboHUD Community Plugins
    Replies: 89
    Last Post: 03-29-2021, 10:18 PM
  3. [v7.3] [INTERNATIONAL] [Resu] CraftersDelightPlugin
    By User5981 in forum TurboHUD Community Plugins
    Replies: 194
    Last Post: 03-07-2021, 05:56 AM
  4. [v7.3] [INTERNATIONAL] [Resu] TimeEverywherePlugin
    By User5981 in forum TurboHUD Community Plugins
    Replies: 4
    Last Post: 08-30-2017, 05:20 PM
All times are GMT -5. The time now is 05:29 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