Jump to content
Korean Random
ISU_100

I want to change numeric Gunmark to graphic Gunmark at player panel.

Recommended Posts

At below picture,  showing numeric MOE(1,2,3) at left side.

How can change numeric MOE to graphic MOE at player panel?

 

1. playerPanel_large.xc(my config)

 

//marksOnGun 
     { "x": -300, "y": 5, "h": 5, "w":5, "bgColor": "0x000000", "alpha": "{{marksOnGun>0?40|0}}" },
        { "x": 300, "y": 5, "h": 20, "w": 17, "format": "<font size='12' color='0xCC9933'>1</font>", "alpha": "{{marksOnGun==1?100|0}}"},
        { "x": 300, "y": 5, "h": 20, "w": 17, "format": "<font size='12' color='0xCC9933'>2</font>", "alpha": "{{marksOnGun==2?100|0}}"},
        { "x": 300, "y": 5, "h": 20, "w": 17, "format": "<font size='12' color='0xCC9933'>3</font>", "alpha": "{{marksOnGun==3?100|0}}"},

 

2. texts.xc(my config)

 

// Text for {{marksOnGun}}, {{v.marksOnGun}} macros.
    // Текст для макросов {{marksOnGun}}, {{v.marksOnGun}}
    "marksOnGun": {
      "_0": "0",
      "_1": "1",
      "_2": "2",
      "_3": "3"
    },

 

3. graphic MOE files(examples)

  - xvm://res/gun/gun_1moe.png

  - xvm://res/gun/gun_2moe.png

  - xvm://res/gun/gun_3moe.png

 

*** Reference attached xc file.

DB57984A-F94D-4B23-881E-159D61B632DA.jpeg

playersPanel_large.xc

Share this post


Link to post

Short link
Share on other sites

ISU_100

I have amended my Player Panel to do this and attach it.

 

I have added new defs from lines 9 to 24.

 

I play using panel Medium2 so have added lines for extra fields at line 513 and 525.

 

These changes give me a thick angled line / for each gunmark.playersPanel.xc

Share this post


Link to post

Short link
Share on other sites
12/20/2019 в 12:31 AM, David Cumming сказал:

Thanks for ur help!!!  I fixed perfectly.

I made a little change at enemy's MOE.

By enter,  made 2 times blank at each 1moe and 2moe.

So aligns the moe to the right.

Thanks again

12/20/2019 в 12:31 AM, David Cumming сказал:

 

 

1 (2).jpg

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.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...