Jump to content
  • 0

COIN WITH BANKING DISPLAY


Thug

Question

I installed the Zupa Coin with banking (999). There is a display in the upper right of the screen. it shows things like how much coin you have in the bank, kills, fps, uptime and more.

Is there a way I can move that to the bottom of the screen? The server admin display covers it up and you have to delete to see Zupas display.

 

display.jpg

Edited by Thug
Link to comment
Share on other sites

8 answers to this question

Recommended Posts

  • 0

There is, yes, just find the script that creates their rsctitles.
I wrote a descriptive solution, ofc all of these lines can be consolidated into a single line of code:

_right = safezoneX + safezoneW; //right part of screen
_bottom = safezoneY + safezoneH; //bottom part of screen

_moveLeft = safezoneW * 0.1; //10% of total width
_moveUp = safezoneH * 0.1; //10% of total height

_x = _right - _moveLeft;
_y = _bottom - _moveUp;

_finalPosition = [_x,_y];

 

Link to comment
Share on other sites

  • 0

Yes, as far as I remember they were running a structured text with new lines. I'd have to see the script again, can't remember.

But the idea is the same for positioning, work your math off of percentages to fit all screens and simply remove new lines added (most likely by <br> or newline if composeText was used)

Link to comment
Share on other sites

  • 0

There is, yes, just find the script that creates their rsctitles.
I wrote a descriptive solution, ofc all of these lines can be consolidated into a single line of code:

_right = safezoneX + safezoneW; //right part of screen
_bottom = safezoneY + safezoneH; //bottom part of screen

_moveLeft = safezoneW * 0.1; //10% of total width
_moveUp = safezoneH * 0.1; //10% of total height

_x = _right - _moveLeft;
_y = _bottom - _moveUp;

_finalPosition = [_x,_y];

 

As always, thank you for what you do for ALL OF US.

Link to comment
Share on other sites

  • 0

There is, yes, just find the script that creates their rsctitles.
I wrote a descriptive solution, ofc all of these lines can be consolidated into a single line of code:

_right = safezoneX + safezoneW; //right part of screen
_bottom = safezoneY + safezoneH; //bottom part of screen

_moveLeft = safezoneW * 0.1; //10% of total width
_moveUp = safezoneH * 0.1; //10% of total height

_x = _right - _moveLeft;
_y = _bottom - _moveUp;

_finalPosition = [_x,_y];

 

This is the only file I found that had the information you sent.

is this the only file I have to change?

 

/*
    AsReMix Player HUD File - Zupa Single Currency Edit - Lots of thanks to AsRemix.
*/

#define hud_status_idc 4900


class AsReMixhud {
    idd = -1;
    fadeout=0;
    fadein=0;
    duration = 20;
    name= "AsReMixhud";
    onLoad = "uiNamespace setVariable ['AsReMixhud', _this select 0]";
    
    class controlsBackground {

        class AsReMixhud_Status:Hw_RscText
        {
            idc = hud_status_idc;
            type = CT_STRUCTURED_TEXT;
            size = 0.040;
    x = safezoneX + (safezoneW -0.35) ;
    y = safezoneY + 0.10 * safezoneW;
            w = 0.35; h = 0.35;
            colorText[] = {1,1,1,1};
            lineSpacing = 3;
            colorBackground[] = {0,0,0,0};
            text = "";
            shadow = 2;
            class Attributes {
                align = "right";
            };
        };

    };
};

Edited by Thug
Link to comment
Share on other sites

  • 0

Yup that's the one. He uses static number for height, which means we do not work with percentages.

Explanation:

SafezoneY represents top corner of screen.
SafezoneH represents full height of the screen
Adding these together you can retrieve bottom part of screen. So safezoneY + safezoneH = bottom
Now, because width and height are both static 0.35 units, we have to work with these values for position.
X position is already there for us, so we don't care about it
We will use Y position to move the dialog down (or up)

It can be achieved several ways:
1) get the bottom part of the screen and move Y up by 0.35, which is the height of the dialog (moves up from bottom)
2) take full height of the screen minus the 0.35 for dialog and then simply add it to top part of the screen (moves down from top)

y = (safezoneY + safezoneW) - 0.35; // 1)
y = safezoneY + (safezoneW - 0.35); // 2)
y = safezoneY + safezoneW - 0.35; // 3)

//doesn't matter how your logic works, any 1 of these 3 is mathematically correct

 

Link to comment
Share on other sites

  • 0

Yup that's the one. He uses static number for height, which means we do not work with percentages.

Explanation:

SafezoneY represents top corner of screen.
SafezoneH represents full height of the screen
Adding these together you can retrieve bottom part of screen. So safezoneY + safezoneH = bottom
Now, because width and height are both static 0.35 units, we have to work with these values for position.
X position is already there for us, so we don't care about it
We will use Y position to move the dialog down (or up)

It can be achieved several ways:
1) get the bottom part of the screen and move Y up by 0.35, which is the height of the dialog (moves up from bottom)
2) take full height of the screen minus the 0.35 for dialog and then simply add it to top part of the screen (moves down from top)

y = (safezoneY + safezoneW) - 0.35; // 1)
y = safezoneY + (safezoneW - 0.35); // 2)
y = safezoneY + safezoneW - 0.35; // 3)

//doesn't matter how your logic works, any 1 of these 3 is mathematically correct

 

I shall call you Professor RayMix from now on.... thanks this really cleared it up for me. I would have pulled all my hair out before i got that. 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Discord

×
×
  • Create New...