Jump to content

Custom Buttons 2.0.6

$7.50
   (32 reviews)

8 Screenshots

  • 123.7k
  • 2k
  • 119.35 kB

Recommended Comments



David

Posted

12 hours ago, FatMonkeyMedia said:

Sorry, maybe I'm dense.... is there any documentation for this plugin? Having a hard time setting it up. Thanks. 

The video was good, but I'm looking for explanations.

Feel free to message me, here or on my discord !David#1337 and I will assist you.

Perilous_Outlaw

Posted

fatmonkey  check the discussion board. There is a link to a sample of buttons for this.  That is how i was able to get it to work.  Download it and install it, then you can just modify the current buttons and get a idea of how it all works.  

Tofu Ninja

Posted

How do you use a command that is 2 words?  It tells me to put it in like this 'shin shop' but this doesn't work because it prints it out with the ' same for the text on the buttons.image.png.06760770ffbcabb580428c3d7a16d41a.png

David

Posted

7 minutes ago, Tofu Ninja said:

How do you use a command that is 2 words?  It tells me to put it in like this 'shin shop' but this doesn't work because it prints it out with the ' same for the text on the buttons.image.png.06760770ffbcabb580428c3d7a16d41a.png

Sorry, it does not work for commands, has to be one word. 

Jbird

Posted

8 hours ago, Tofu Ninja said:

How do you use a command that is 2 words?  It tells me to put it in like this 'shin shop' but this doesn't work because it prints it out with the ' same for the text on the buttons.image.png.06760770ffbcabb580428c3d7a16d41a.png

I'm sure @David probably knows best but just to ask.
Do quotations not work? Would "skin shop" just = "skin ?

If not another workaround would be to change that command, you could for example make it /skinshop without the space in it. You can do this inside the config for the plugin you are using.

That is an awesome plugin by the way. I have it as well. You can change it to whatever you want.
For example I have it set to /skins (for skin shop) and left it at /skin to.. well skin.. an item.
 

David

Posted

4 minutes ago, Jbird said:

 

It's due to how that text is passed into console command, i tried to add another set of quote marks by escaping them with \" but no success best way how to go around it is to change existing command to one word.

Jbird

Posted

Heard.

@Tofu Ninja sounds like updating your config will be the easiest way to make this work for you.
Hope that helps!
If nothin else just delete the space in between the two words simple as that and you're good to go.

KILL-TO-HEAL

Posted

Hi , David ! This plugin is very optional . But can you add please this function plugin ui now scaling based on player's ui scale settings ?

  • Like 1
Delltus

Posted

Failed to call hook 'OnEntityDismounted' on plugin 'CustomButtons v2.0.5' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.CustomButtons.CreatePartialCui (BasePlayer player, System.Collections.Generic.List`1[T] list) [0x00000] in <10c682d629174e52aa6dbcc32117277e>:0 
  at Oxide.Plugins.CustomButtons.OnEntityDismounted (ComputerStation entity, BasePlayer player) [0x00012] in <10c682d629174e52aa6dbcc32117277e>:0 
  at Oxide.Plugins.CustomButtons.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00ef8] in <10c682d629174e52aa6dbcc32117277e>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <60c318df79ed41688ea59335e48d61ad>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <dfcb48ea05694263bbc08e62a39c274c>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <dfcb48ea05694263bbc08e62a39c274c>:0 

David

Posted

2 minutes ago, Delltus said:

Failed to call hook 'OnEntityDismounted' on plugin 'CustomButtons v2.0.5'

If you want report bug please use support section. Don't forget to share details like when it happened or if it cause some functionality issues, etc...

BetterDeadThanZed

Posted

I've had a few players comment that some of the buttons are overlapping certain UI elements. On my screen, they are fine, so I assume this is related to their resolution settings. Is there anything that can be done to scale the buttons according to the player's resolution?

  • Like 2
Rust Admin

Posted

1 hour ago, BetterDeadThanZed said:

I've had a few players comment that some of the buttons are overlapping certain UI elements. On my screen, they are fine, so I assume this is related to their resolution settings. Is there anything that can be done to scale the buttons according to the player's resolution?

This is due to the recent update - there were CUI changes by Facepunch.  Their CUI scale needs to be 1 - anything less could cause issues.

David

Posted

4 hours ago, BetterDeadThanZed said:

I've had a few players comment that some of the buttons are overlapping certain UI elements. On my screen, they are fine, so I assume this is related to their resolution settings. Is there anything that can be done to scale the buttons according to the player's resolution?

The new scaling is bit of problem. If your buttons are on bottom of the screen, you have to change your base anchors in config to "0.5 0". You will have to reposition them little bit in game but they should be scaled based on resolution now. If you have buttons at bottom and top that will be problem now.

  • Like 2
BetterDeadThanZed

Posted

2 hours ago, David said:

The new scaling is bit of problem. If your buttons are on bottom of the screen, you have to change your base anchors in config to "0.5 0". You will have to reposition them little bit in game but they should be scaled based on resolution now. If you have buttons at bottom and top that will be problem now.

I tried that and the buttons disappeared. They are at the bottom of the screen.

David

Posted (edited)

2 minutes ago, BetterDeadThanZed said:

I tried that and the buttons disappeared. They are at the bottom of the screen.

because by using "0.5 0" "0.5 0" as anchors they got pushed even lower, outside of screen. Try to adjust top points ingame.

Edited by David
  • Like 1
Delltus

Posted

I have a question, I made a panel where I have my 3 orders for skin reskin and skin base when I click on the skin button the panel opens or closes my question is the following can we create several panels? Without the others also opening up or coming into conflict

Zoreeno

Posted

@DavidI'm having some issues with the UI scaling. I read through your fixes above but I'm not able to get it figured out. It seems all buttons are in different positions depending on the players resolution after the FP update. 

 

Here is a screen shot of how the buttons normally look (and how they look on my screen)

image.thumb.png.5119ac9d725797a5126aafa4b3c11d08.png

 

And here is how it looks on a players screen that is using a different resolution/ratio

image.thumb.png.b92591888fde8fdea29428d70188bffe.png

 

David

Posted

10 minutes ago, Zoreeno said:

@DavidI'm having some issues with the UI scaling.

Hey, it's been answered few comments above

Zoreeno

Posted

15 minutes ago, David said:

Hey, it's been answered few comments above

Yeah i saw your comments above but not sure i understand the change that is needed.  For example, this button is not at the very bottom of the screen, but is being moved to the left on some resolutions.

custombutton.png.b5ba1233496e5db06381208b5ec4f513.png

Here is the current CUI data for this button. What changes should i make in order to have it remain in the same position for all resolution types?

  "rewards": {
    "uiType": "Overlay",
    "panelType": "button",
    "OffsetMin": "240 -100",
    "OffsetMax": "430 -80",
    "text": "<b><color=#5990cf>Check Rewards</color></b>",
    "panelColor": "1 0.96 0.88 0.15",
    "panelChatCmd": "level",
    "imageUrl": null,
    "imgAnchorMin": null,
    "imgAnchorMax": null,
    "onCmdHide": "false"

 

David

Posted

7 minutes ago, Zoreeno said:

Yeah i saw your comments above but not sure i understand the change that is needed

You need to change base anchors in config to "0.5 0" "0.5 0" 

 

  • Like 1
Jbird

Posted

37 minutes ago, Zoreeno said:

I'm having some issues with the UI scaling. I read through your fixes above but I'm not able to get it figured out. It seems all buttons are in different positions depending on the players resolution after the FP update.

Hey thought I would reply when I saw this.

I think it has been this way for quite some time. Unless you had it set before and it changed after for those players? But I noticed that I had set the buttons up with my UI scale slightly zoomed out around 0.8 I believe. Well a lot of players never change that and are always at 1.0.

I recently went through and reconfigured it all with my UI scale at 1.0. If you change that scale it will change all of the FP stuff and does not change these types of things with them. But I would set everything up in that view because then if anyone changes their UI Scale yourself included it looks better than in reverse. Setting it up already zoomed in, for people at 1.0 you might have overlap that you didn't expect.

This is in your Options under User Interface.

I hope that might help!

  • Love 1
Zoreeno

Posted (edited)

@Jbird Thank you! I have my UI scale set to default 1.0 and set the buttons up in that scale, but i'm guessing that the player that reported this and gave me those screen shots has his UI scale set lower which is why he's having the problem. 

@David sorry for my ignorance, but i finally figured out what you meant by "base anchors". I was looking for that settings in the data file, but it was in the config file, my fault. After setting base anchors and repositioning buttons, I noticed that some of the buttons now scale with the UI while other do not. But i guess that's just an issue I'll have to let players know about and give them the option to disable the button if it's in their way. Unless you know about another work around. 

 

 

Edited by Zoreeno
  • Like 1
Jbird

Posted

1 minute ago, Zoreeno said:

@Jbird Thank you! I have my UI scale set to default 1.0 and set the buttons up in that scale, but i'm guessing that the player that reported this and gave me those screen shots has his UI scale set lower which is why he's having the problem.

In my case I just happened to see some game play and screenshots of other players and I noticed some overlap and began looking into it. I bet if that player changes theirs back to 1.0 they might like it. I still haven't zoomed mine back out since sorting all of this out. 😁

PPlank

Posted

Is it possible to add values such as RP to a button or some text? And also things like x-z co-ordinates for a players location?

If it isn't, would you consider doing something like that? 😘

Jbird

Posted

1 hour ago, PPlank said:

Is it possible to add values such as RP to a button or some text? And also things like x-z co-ordinates for a players location?

What about using the command to check balance?
Players could just push the button and not need to know or remember the command.

If nothing else just wanted to offer a short term fix.
I'll let the developer answer the rest of that question though. ^-^

  • Like 1

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
  • Like 11
  • Love 9

David's Collection

User Feedback

1.4m

Downloads

Total number of downloads.

6.8k

Customers

Total customers served.

101.5k

Files Sold

Total number of files sold.

2m

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.