Jump to content

1 Screenshot

  • 62.5k
  • 2.4k
  • 6.76 kB
This area is for discussion and questions. Please use the support area for reporting issues or getting help.

Recommended Comments



MON@H

Posted

Thanks! That's cool, but first what I did - opened code to disable that background color.

var ButtonUIPanel = elements.Add(new CuiPanel { Image = { Color = $"0.3 0.3 0.3 0.0" },

Next thing I did is

        void OnPluginLoaded()
        { foreach (BasePlayer current in BasePlayer.activePlayerList) { Open[current.userID] = true;  ButtonUI(current); } }

Granted permission to group default and now it's great!

 

UserLeftRust

Posted

yeah this was a quick plug creation on request... i'll add more functionality over the next few days... add color to the config and if it should be open by default of closed by default etc... Glad your enjoying it

  • Like 1
MON@H

Posted

I would suggest to add the option "use permission = true/false", and the ability to totaly disable background color (make it transperent). And thank you again for this one.

Covfefe

Posted

Requests:

  • On by default or configurable
  • Automatically binds 7 to backpack
marduk

Posted

Failed to call hook 'OnPlayerConnected' on plugin 'TheButton v1.0.5' (ArgumentException: An item with the same key has already been added. Key: 76561198877323916)

at System.Collections.Generic.Dictionary`2[TKey,TValue].TryInsert (TKey key, TValue value, System.Collections.Generic.InsertionBehavior behavior) [0x000c1] in <437ba245d8404784b9fbab9b439ac908>:0

at System.Collections.Generic.Dictionary`2[TKey,TValue].Add (TKey key, TValue value) [0x00000] in <437ba245d8404784b9fbab9b439ac908>:0

at Oxide.Plugins.TheButton.OnPlayerConnected (BasePlayer player) [0x00026] in <b3e8dae0403f4519abe6b6eb75ad0fea>:0

at Oxide.Plugins.TheButton.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00169] in <b3e8dae0403f4519abe6b6eb75ad0fea>:0

at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <d09a1f46ca2f4432811bcfe45ad13c7b>:0

at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <cf88a28c7fb44d36890d85a78331cc9d>:0

at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <cf88a28c7fb44d36890d85a78331cc9d>:0

UserLeftRust

Posted

I will have a look, but in future could you please post support queries in the support tab otherwise we don't get a ping to inform us that there is an issue.

marduk

Posted

ohhh yep no worries, thanks

ProGold

Posted

So can players open this when they press the 7 key or do they have to do something first?

Kleementin

Posted

1 hour ago, ProGold said:

So can players open this when they press the 7 key or do they have to do something first?

No. They can use it when opening the inventory and click on it.

ProGold

Posted (edited)

2 hours ago, Kleementin said:

No. They can use it when opening the inventory and click on it.

Ah I understand I was it was just expending the hotbar but this works too

Theres a huge problem with the image not loading alot of times though. Especially when opening furnaces it will just turn into image not found icon

[img]https://i.imgur.com/KK9NIFm.png[/img]

 

Edited by ProGold
pookins

Posted

I moved the button to the left hand side because i have Zlevels on the right hand side and made a red button with the text for the function on it, pity you cant "bind" a key for the function but i have  got used to pressing "t" for chat (*to enable mouse movement) and mouse selecting the button , I has saved me a lot of time as before i had to hit "t" for chat then type "prox" (disable prox)  and then repeat that to enable it again as it has been "broken" for over 2 years and am not expecting a fix in the near future.

{
  "GlobalSettings": {
    "Image Url for The Button": "https://i.imgur.com/EhkOuqn.png",
    "Command For The Button": "prox",
    "Background color of Button RGBA format": "0.3 0.3 0.3 0.8",
    "Open By Default true/false": true
  },
  "AlignmentSettings": {
    "AnchorMin": "0.295 0.029",
    "AnchorMax": "0.341 0.104"
  }
}

ProGold

Posted (edited)

Also is there any way of adding more buttons? I would like to have 2 or even more.

Edited by ProGold
Kleementin

Posted

Guys, use the Support section for this.

  • Like 1
HardStyle

Posted

10 hours ago, ProGold said:

Also is there any way of adding more buttons? I would like to have 2 or even more.

if you want more than 2 you should just get PhoneCore 🙂

rustfoxgaming

Posted

Hello thx for this plugin i have updated now but il have this error

 

(17:38:07) | Calling 'CanBeTargeted' on 'TruePVE v1.1.95' took 102ms

(17:38:11) | Error while compiling: TheButton.cs(113,86): error CS1001: Unexpected symbol `)', expecting identifier
 

@MikeHawke

rustfoxgaming

Posted

Same with config removed

(17:40:47) | Error while compiling: TheButton.cs(113,86): error CS1001: Unexpected symbol `)', expecting identifier

@MikeHawke

rustfoxgaming

Posted

old version is ok

 

(17:41:55) | TheButton was compiled successfully in 2938ms

(17:41:55) | Unloaded plugin TheButton v1.0.6 by MikeHawke

(17:41:55) | [TheButton] Creating new config file.

(17:41:55) | Loaded plugin TheButton v1.0.6 by MikeHawke

UserLeftRust

Posted

yeah.. i fat fingered it... one sec

  • Like 2
rustfoxgaming

Posted

It's ok thx man

(23:15:57) | Loaded plugin TheButton v1.0.8 by MikeHawke

negan.gbg

Posted (edited)

Regarding the comments above about using phonecore when needing more than one button.  Phone core can be way over the top if one is only needing 2-4 buttons max, also with more than one button witht his mod you could really customize the size of them and place them in a neat row and really limit their presence. No need for that crappy clutter of phonecore, as good as it really is.  This is worthy of a paid plugin if you could make a few more buttons, I vote for making that a thing.

Edited by negan.gbg
  • Like 1
Bumfuzzler

Posted

I love this idea.

  1. Is there a way to make the button box the same size as the other 5? I think you can control the placement, but not the size.
  2. Is there any way to make it so the button is activated by using the number 6? This way it would act like the other slots and when pressing 6 it would open...let's say the backpack. This would ensure it was a seamless integration. 

Again, great idea! Thanks for your work.

pookins

Posted

2 hours ago, Bumfuzzler said:

I love this idea.

  1. Is there a way to make the button box the same size as the other 5? I think you can control the placement, but not the size.
  2. Is there any way to make it so the button is activated by using the number 6? This way it would act like the other slots and when pressing 6 it would open...let's say the backpack. This would ensure it was a seamless integration. 

Again, great idea! Thanks for your work.

I already asked the same question a while ago but it seems FP doesnt let you bind keys anymore

  • Sad 1
negan.gbg

Posted

of course you can control size and placement just adjust the coordinates in the config

  • Love 1
UserLeftRust

Posted

yeah FP doesnt like you button binding from plugs anymore and when you look at the achors.... (although its different between screens, so may look correct on yours and not on others) Min and Max it bottom left to top right

  • Love 1
Bumfuzzler

Posted

2 hours ago, MikeHawke said:

yeah FP doesnt like you button binding from plugs anymore and when you look at the achors.... (although its different between screens, so may look correct on yours and not on others) Min and Max it bottom left to top right

Are you suggesting no matter what coordinates I put in that it will differ from resolution/computer to computer?

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 6
  • Love 3

User Feedback

1.6m

Downloads

Total number of downloads.

7.7k

Customers

Total customers served.

115.4k

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.