Jump to content
Korean Random
Sign in to follow this  
Benser

Sixth Sense Icon with UI Scaling x2

Recommended Posts

Main Issue;

 

I have a problem with the sixth sense icon while UI scaling is at 2x, which I need because I play at 4k.

 

I have attached 2 screenshots of roughly the same moment in a replay.

 

The first screenshot is my UI with the UI scale set to 2x. This makes it readable, but as you can see my sixth sense icon is stuck on the far right of the screen. It's in the right place vertically, but the wrong place horizontally.

 

The second screenshot is my UI at 'normal' scale, which is horribly small due to my resolution, but you can see my sixth sense icon is in the right place.

 

I need some way to have the sixth sense icon in the middle while I have 2x scale on, is there a way to move the icon? I already tried moving the icon with the X and Y coord modifiers in elements.xc but it didn't seem to make any difference. I'm sure the config files are working because I've modified the carousel and other config files. But changing the coordinates doesn't seem to have any effect.

 

Minor second problem which doesn't matter if the above problem is fixed;

 

I changed my icon by putting a sixthsense.png into the res_mods/mods/xvm/res folder like you're meant to, but I didn't replace any existing file because there was only the sample png in that directory. So, sixth sense should have worked normally when I simply deleted the new sixthsense.pgn, but now I am left with no sixthsense icon at all, only a sound.

 

EDIT: Made unneccessarily large screenshots much smaller (37.5%), sorry.

post-32782-0-19934700-1435676920_thumb.jpg

post-32782-0-92422500-1435676921_thumb.jpg

Edited by Benser

Share this post


Link to post

Short link
Share on other sites

 

 

is there a way to move the icon?
There is. Snippet
{
            "$delay": 100,
            "sixthSenseIndicatorXvm": {
            "$interval": 0,
                "_x": "width/2",
            }
        },

Probably like this, but I'm not sure about the code

Share this post


Link to post

Short link
Share on other sites

or with the UI scale set to 2x

{
  "$ delay": 100,
  "SixthSenseIndicatorXvm": {
    "$ interval": 0,
    "_x": "width / 4",
  }
},
Edited by jem1510

Share this post


Link to post

Short link
Share on other sites

Replacing the "_x" value with "width/2" or "width/4" made no difference.

 

I tried reading through the thread but I don't understand russian and even through google translate it's difficult, I can't easily browse through all 80 pages to see if anyone mention sixth sense icon...

 

I would have thought I could just change the X value, but even if I set it to -100000000 it still stays on the right side of the screen. Changing the X and Y values does nothing at all.

Edited by Benser

Share this post


Link to post

Short link
Share on other sites

 

 

even if I set it to -100000000 it still stays on the right side of the screen
 It mean you do somethong wrong. 0 should put indicator to left side of screen. Make sure you edit the file that is refered to in your config.

Share this post


Link to post

Short link
Share on other sites

I didn't replace SixthSenseIndicator with SixthSenseIndicatorXVM for custom icon.

 

Now icon is on all the time.

        {
            "$delay": 100,
            "sixthSenseDuration": "sixthSenseDuration",
            "sixthSenseIndicatorXvm": {
                "$interval": 0,
                "_alpha": 100,
                "_x": "0",
                "_y": "0"
            }
        },

But at least it moved, it is now in the top left corner.

 

I change to "_x": "width / 2", and the icon disappears, probably off screen like when minimap zoom is enabled...


With

        {
            "$delay": 100,
            "sixthSenseDuration": "sixthSenseDuration",
            "sixthSenseIndicatorXvm": {
                "$interval": 0,
                "_alpha": 100,
                "_x": "width / 4",
                "_y": "0"
            }
        },

I get sixth sense icon on all the time, and slightly off center (and maybe too high).

 

 

 

post-32782-0-27228400-1435860067_thumb.jpg

Edited by Benser

Share this post


Link to post

Short link
Share on other sites

 

 

icon on all the time
 I saw a bug like that some time ago, but I dont remember the solution. Probably, someone else will help.

 

and slightly off center (and maybe too high).
you may use "(width / 4)-100" and some nonzero value for y to gut what you want.

Share this post


Link to post

Short link
Share on other sites

I've gotten to here now.

        {
            "$delay": 100,
            "sixthSenseDuration": "sixthSenseDuration",
            "sixthSenseIndicator": {
                // "$interval": 0,
                "_alpha": 100,
                "_x": "sixthSenseIndicator._x",
                "_y": "sixthSenseIndicator._y"
            }
        },

With sixthSenseIndicator the icon is stuck on the right side but works normally.

 

With sixthSenseIndicatorXvm the icon is always on. It still flashes and makes a noise when spotted, but stays on.

 

With sixthSenseIndicatorXvm and $Interval on the icon can be moved, but is still always on.

 

Since the icon is always on with sixthSenseIndicatorXvm it doesn't matter what the X and Y values are cos they don't change anything, icon is just stuck on the right.

Edited by Benser

Share this post


Link to post

Short link
Share on other sites

Here's a work around that's working for me.

Make a sixthsense.png icon that's about 2000 pixels wide and stick the icon on the left side.

Place in C:\Games\World_of_Tanks\res_mods\mods\shared_resources\xvm\res

 

Share this post


Link to post

Short link
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...