Jump to content

Moving the compass icon

Closed 1.0.5

Srtzero
Srtzero

Posted (edited)

Hi. How can I effectively move the compass icon from its current position?  Is it these fields? "Icon AnchorMin": "0.02 0.92", "Icon AnchorMax": "0.07 0.994",

How do the numbers work? I am trying to get the icon from the current top left of my screen to the top right. Or even at the bottom of the screen next to the player hotbar. Also is there a way to change the size of the compass?

 

I am also trying to add your hooks to another plugin and just wanted to make sure the hooks are correct. You have the below hooks, but they are the same for begin and end. Is that correct? or should the end event be ScavengerHuntEnd?

ScavengerHuntStarted() // called when the event starts

ScavengerHuntStarted() // called when the event ends

 

Maybe a suggestion to help us newbies would be to have  something like this for positioning. I have seen it in some other mods, and makes moving the icons or graphics super simple.

"Position": { "Align [TopLeft | TopRight | BottomLeft | BottomRight": "TopLeft",

"Left | Right - offset": 40,

"Top | Bottom - offset": 25

Edited by Srtzero
adding another question
Fruster

Posted

15 hours ago, Srtzero said:

I am also trying to add your hooks to another plugin and just wanted to make sure the hooks are correct. You have the below hooks, but they are the same for begin and end. Is that correct? or should the end event be ScavengerHuntEnd?

ScavengerHuntStarted() // called when the event starts

ScavengerHuntStarted() // called when the event ends

Hey! Thank you, I corrected the error in the description

15 hours ago, Srtzero said:

Maybe a suggestion to help us newbies would be to have  something like this for positioning. I have seen it in some other mods, and makes moving the icons or graphics super simple.

"Position": { "Align [TopLeft | TopRight | BottomLeft | BottomRight": "TopLeft",

"Left | Right - offset": 40,

"Top | Bottom - offset": 25

Maybe I'll add this someday

15 hours ago, Srtzero said:

Hi. How can I effectively move the compass icon from its current position?  Is it these fields? "Icon AnchorMin": "0.02 0.92", "Icon AnchorMax": "0.07 0.994",

How do the numbers work? I am trying to get the icon from the current top left of my screen to the top right. Or even at the bottom of the screen next to the player hotbar. Also is there a way to change the size of the compass?

To move the compass to the right, you need to do it like this "Icon AnchorMin": "0.93 0.92", "Icon AnchorMax": "0.98 0.994"

It works something like this:

sh.jpg.a5915fd835c371691062c4c6bf9ef1b4.jpg

 

Srtzero

Posted (edited)

Thank you for the graphic and explanation. I should now be able to move it on my own when I finish work and can access my server. Thank, you can close this ticket as resolved.

Edited by Srtzero
  • Like 1
Fruster

Posted

Changed Status from Pending to Closed

1.6m

Downloads

Total number of downloads.

7.7k

Customers

Total customers served.

115.5k

Files Sold

Total number of files sold.

2.4m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.