Craft Panel

Craft Panel 1.5.4

Icons for the resources needed for crafting now load directly from the game, thus optimizing the display.
I have had to disable the button that appears from being picked up. Because if you don't pick up the button with the hammer, it won't let you pick up the workbench.
Edit 1.5.2: I had to move the button to the right to allow an industrial processor to be placed.
With the June Update Facepunch has eliminated the intermediate screen that appeared when opening a workbench. This screen showed a button to open the Craft Panel menu.

This button now becomes a reality in the Workbench itself. Since in the Workbench that is placed, if the player has the permission of: craftpanel.btnworkbench An interactive button will be placed on the workbench.

I think it's the best way to solve this problem and at the same time make it more visual and interactive for players.

After more than a year without updates in Craft Panel, I have improved several important points, I hope you like the changes.
  • Added scroll bar to the crafting item menu. Eliminating traditional pagination.
  • It is now easier to click on menu items.
  • Interface loading has been optimized. Now when an item is selected, the entire screen is not refreshed, only the item information.
  • The images of the default items are now hosted on my own server and not on imgur which sometimes causes problems. The current size of header images is 900x400 pixels.
  • The close button has been removed from the error message, it really didn't make much sense since it disappears after a few seconds.
  • Fixed duplicate permission messages in case you use the same permissions for multiple items.
  • The interface will now always remain at the same size even if the player changes its scale.
  • Some color and design touch-ups have been made. Now it is more in line with the style of BetterTC and some of the game's menus.
Config changes:
  • The following items are added to the default configuration: Tugboat, Attack Helicopter and Pump Jack.
  • A new field [ID Item Default] has been added to the config to set the default Item, before it was always item with ID 1, now you can set the id of the item that you want to show when opening /craft.
  • A new field has been added to the config to activate or deactivate the display of items without permissions.
  • IMPORTANT: The configuration has changed. If you are going to apply this update you must delete the previous configuration (save it before in another place). Then update the plugin, it will generate a new configuration file similar to the previous one but with some changes.
  • IMPORTANT 2: A new field has been added in the configuration called ID, this must ALWAYS be a numeric and incremental value. In addition, it must not be repeated and must be the same as the order shown on the screen. If this is not respected you may have errors in the plugin.
  • A new field (Enabled) has also been added to enable or disable an article in the plugin. If it is disabled it will not be displayed at all.
  • Now you can change the font size of each description from the config.
  • Added a boolean to allow or disallow the custom article name. If it is false it will use the name Vanilla. (This is for those articles that are native to the game, that is, they are found on the F1 console)
  • A hint has been applied that will allow items with skins to be used as specific ingredients.
  • Now the label that appears on the screen that notifies that Workbench is required will appear in different colors depending on the level required: Green - Workbench 1. Blue - Workbench 2. Red - Workbench 3.
  • Now if the player does not have the use permission to craft an item it will not appear in the list, no more locked padlock icon.
CONFIG UPDATE It is recommended to save backup of the config, delete the plugin config and reinstall the plugin from scratch. Only a few fields at the beginning of the config change, so the settings for what can be crafted have not changed.
- A new configuration option has been added to show a button to open the panel when opening a workbench.
- Added a new permission so that players can see the button in the workbench (if the previous config is false, even if it has the permission it is not shown).
  • Like
Reactions: pinoysaboteur
A new configuration parameter is added to show a lock image on the locked items. That is, for articles whose user does not have permission to create.

Attachments

  • block.jpg
    block.jpg
    430.3 KB · Views: 198
  • Like
Reactions: pinoysaboteur
With this update you will no longer have limits to add items to craft.

Now if you have more than 16 items, a button will be shown to go to the next page or go back.

At the same time I have improved the code a bit.

Disadvantage or problem encountered: I have forced the option to show all items although the player will not have permission to craft if they do not have it authorized. When the item was not shown, it produced an error since the information did not correspond to the selected item.

If you find any error let me know!
  • Love
Reactions: wuge321
Now you can show the items even if the player does not have permission. But you won't be able to craft it.

- A new line of text is also automatically added to the lang.